anjuta r3909 - in trunk: . plugins/document-manager
- From: jhs svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r3909 - in trunk: . plugins/document-manager
- Date: Thu, 1 May 2008 13:10:31 +0100 (BST)
Author: jhs
Date: Thu May 1 12:10:31 2008
New Revision: 3909
URL: http://svn.gnome.org/viewvc/anjuta?rev=3909&view=rev
Log:
2008-05-01 Johannes Schmid <jhs gnome org>
* plugins/document-manager/plugin.c (update_title):
Fixed bug broken titles for new files
Modified:
trunk/ChangeLog
trunk/plugins/document-manager/plugin.c
Modified: trunk/plugins/document-manager/plugin.c
==============================================================================
--- trunk/plugins/document-manager/plugin.c (original)
+++ trunk/plugins/document-manager/plugin.c Thu May 1 12:10:31 2008
@@ -496,12 +496,19 @@
if (doc_plugin->project_name)
{
- title = g_strdup_printf ("%s (%s) - %s", real_filename, dir,
- doc_plugin->project_name);
+ if (dir)
+ title = g_strdup_printf ("%s (%s) - %s", real_filename, dir,
+ doc_plugin->project_name);
+ else
+ title = g_strdup_printf ("%s - %s", real_filename,
+ doc_plugin->project_name);
}
else
{
- title = g_strdup_printf ("%s (%s)", real_filename, dir);
+ if (dir)
+ title = g_strdup_printf ("%s (%s)", real_filename, dir);
+ else
+ title = g_strdup_printf ("%s (%s)", real_filename, dir);
}
g_free (real_filename);
g_free (dir);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]