Show current document in bold in tab popup menu.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3808 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
9164411390
commit
3b9840dafb
@ -2,6 +2,8 @@
|
||||
|
||||
* src/editor.c:
|
||||
Fix multiline indent when selection covers text on the last line.
|
||||
* src/notebook.c:
|
||||
Show current document in bold in tab popup menu.
|
||||
|
||||
|
||||
2009-05-19 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include "treeviews.h"
|
||||
#include "support.h"
|
||||
#include "callbacks.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define GEANY_DND_NOTEBOOK_TAB_TYPE "geany_dnd_notebook_tab"
|
||||
|
||||
@ -199,6 +200,7 @@ static GtkMenu *get_tab_bar_popup_menu(void)
|
||||
GeanyDocument *doc;
|
||||
guint i, len;
|
||||
gchar *base_name;
|
||||
GeanyDocument *current_doc = document_get_current();
|
||||
|
||||
if (G_UNLIKELY(menu == NULL))
|
||||
menu = gtk_menu_new();
|
||||
@ -224,6 +226,11 @@ static GtkMenu *get_tab_bar_popup_menu(void)
|
||||
gtk_widget_modify_fg(menu_item_label, GTK_STATE_NORMAL, color);
|
||||
gtk_widget_modify_fg(menu_item_label, GTK_STATE_ACTIVE, color);
|
||||
|
||||
if (doc == current_doc)
|
||||
{
|
||||
setptr(base_name, g_strconcat("<b>", base_name, "</b>", NULL));
|
||||
gtk_label_set_markup(GTK_LABEL(menu_item_label), base_name);
|
||||
}
|
||||
g_free(base_name);
|
||||
}
|
||||
menu_item = gtk_separator_menu_item_new();
|
||||
|
Loading…
x
Reference in New Issue
Block a user