librsvg r1141 - trunk



Author: chpe
Date: Tue Jan 29 15:37:59 2008
New Revision: 1141
URL: http://svn.gnome.org/viewvc/librsvg?rev=1141&view=rev

Log:
2008-01-29  Christian Persch  <chpe gnome org>

	* test-display.c: (view_pixbuf): Add the filename to the window title.
	Bug #512797.

Modified:
   trunk/ChangeLog
   trunk/test-display.c

Modified: trunk/test-display.c
==============================================================================
--- trunk/test-display.c	(original)
+++ trunk/test-display.c	Tue Jan 29 15:37:59 2008
@@ -618,12 +618,20 @@
     } else
 #endif
     {
+        char *title;
+
         win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
 
         win_width = DEFAULT_WIDTH;
         win_height = DEFAULT_HEIGHT;
 
-        gtk_window_set_title (GTK_WINDOW (win), _("SVG Viewer"));
+        if (info->id) {
+            title = g_strdup_printf ("%s#%s â %s", info->base_uri, info->id, _("SVG Viewer"));
+        } else {
+            title = g_strdup_printf ("%s â %s", info->base_uri,  _("SVG Viewer"));
+        }
+        gtk_window_set_title (GTK_WINDOW (win), title);
+        g_free (title);
     }
 
     populate_window (win, info, xid, win_width, win_height);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]