SF.net SVN: geany: [1230] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Thu Jan 25 16:25:35 UTC 2007


Revision: 1230
          http://svn.sourceforge.net/geany/?rev=1230&view=rev
Author:   eht16
Date:     2007-01-25 08:25:35 -0800 (Thu, 25 Jan 2007)

Log Message:
-----------
Applied patch from Jeff Pohlmeyer to make the window title Gnome HIG compatible.

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-01-25 15:45:14 UTC (rev 1229)
+++ trunk/ChangeLog	2007-01-25 16:25:35 UTC (rev 1230)
@@ -2,6 +2,8 @@
 
  * src/vte.c: Applied patch from Jeff Pohlmeyer to improve loading of
               the VTE library.
+ * src/ui_utils.c: Applied patch from Jeff Pohlmeyer to make the
+                   window title Gnome HIG compatible.
 
 
 2007-01-24  Enrico Tröger  <enrico.troeger at uvena.de>

Modified: trunk/src/ui_utils.c
===================================================================
--- trunk/src/ui_utils.c	2007-01-25 15:45:14 UTC (rev 1229)
+++ trunk/src/ui_utils.c	2007-01-25 16:25:35 UTC (rev 1230)
@@ -140,9 +140,11 @@
 
 	if (index >= 0)
 	{
-		title = g_strdup_printf("Geany: %s %s",
-				DOC_FILENAME(index),
-				doc_list[index].changed ? _("(Unsaved)") : "");
+		gchar *basename = g_path_get_basename(DOC_FILENAME(index));
+		title = g_strdup_printf("%s%s - Geany",
+				doc_list[index].changed ? "*" : "",
+				basename);
+		g_free(basename);
 		gtk_window_set_title(GTK_WINDOW(app->window), title);
 		g_free(title);
 	}


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