Revision: 3720 http://geany.svn.sourceforge.net/geany/?rev=3720&view=rev Author: eht16 Date: 2009-04-21 20:53:23 +0000 (Tue, 21 Apr 2009)
Log Message: ----------- Ellipsize long filenames also in the window title.
Modified Paths: -------------- trunk/src/ui_utils.c
Modified: trunk/src/ui_utils.c =================================================================== --- trunk/src/ui_utils.c 2009-04-21 20:53:11 UTC (rev 3719) +++ trunk/src/ui_utils.c 2009-04-21 20:53:23 UTC (rev 3720) @@ -272,13 +272,13 @@ g_string_append(str, DOC_FILENAME(doc)); else { - gchar *base_name = g_path_get_basename(DOC_FILENAME(doc)); + gchar *short_name = document_get_basename_for_display(doc, 30); gchar *dirname = g_path_get_dirname(DOC_FILENAME(doc));
- g_string_append(str, base_name); + g_string_append(str, short_name); g_string_append(str, " - "); g_string_append(str, dirname ? dirname : ""); - g_free(base_name); + g_free(short_name); g_free(dirname); } g_string_append(str, " - ");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.