[Xfce4-commits] <midori:master> Use page title for inspector window tile

Christian Dywan noreply at xfce.org
Thu Feb 17 21:42:01 CET 2011


Updating branch refs/heads/master
         to 00b116a9405a5474946743a828a0371b4fdb21b8 (commit)
       from d19396a06575679ef7aa2d6c051bbe9e274fdb66 (commit)

commit 00b116a9405a5474946743a828a0371b4fdb21b8
Author: Paweł Forysiuk <tuxator at o2.pl>
Date:   Thu Feb 17 21:38:54 2011 +0100

    Use page title for inspector window tile

 midori/midori-view.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/midori/midori-view.c b/midori/midori-view.c
index 8d0ca85..4eb6318 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -3458,6 +3458,7 @@ midori_view_web_inspector_construct_window (gpointer       inspector,
                                             MidoriView*    view)
 {
     gchar* title;
+    gchar* label;
     GtkWidget* window;
     GtkWidget* toplevel;
     GdkScreen* screen;
@@ -3466,10 +3467,12 @@ midori_view_web_inspector_construct_window (gpointer       inspector,
     GdkPixbuf* icon;
     GdkPixbuf* gray_icon;
 
-    title = g_strdup_printf (_("Inspect page - %s"), "");
+    label = g_strdup (midori_view_get_display_title (view));
+    title = g_strdup_printf (_("Inspect page - %s"), label);
     window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
     gtk_window_set_title (GTK_WINDOW (window), title);
     g_free (title);
+    g_free (label);
 
     toplevel = gtk_widget_get_toplevel (GTK_WIDGET (view));
     if (gtk_widget_is_toplevel (toplevel))



More information about the Xfce4-commits mailing list