SF.net SVN: geany:[3808] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Wed May 20 15:01:04 UTC 2009


Revision: 3808
          http://geany.svn.sourceforge.net/geany/?rev=3808&view=rev
Author:   ntrel
Date:     2009-05-20 15:01:04 +0000 (Wed, 20 May 2009)

Log Message:
-----------
Show current document in bold in tab popup menu.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/notebook.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-05-20 14:42:55 UTC (rev 3807)
+++ trunk/ChangeLog	2009-05-20 15:01:04 UTC (rev 3808)
@@ -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>

Modified: trunk/src/notebook.c
===================================================================
--- trunk/src/notebook.c	2009-05-20 14:42:55 UTC (rev 3807)
+++ trunk/src/notebook.c	2009-05-20 15:01:04 UTC (rev 3808)
@@ -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 @@
 	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 @@
 		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();


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list