diff --git a/ChangeLog b/ChangeLog index 99628416..4f956b77 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/src/notebook.c b/src/notebook.c index 11d0093a..4aebff4f 100644 --- a/src/notebook.c +++ b/src/notebook.c @@ -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("", base_name, "", NULL)); + gtk_label_set_markup(GTK_LABEL(menu_item_label), base_name); + } g_free(base_name); } menu_item = gtk_separator_menu_item_new();