Kaydet (Commit) 3b9840da authored tarafından Nick Treleaven's avatar Nick Treleaven

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
üst 91644113
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment