Use page title for inspector window tile

This commit is contained in:
Paweł Forysiuk 2011-02-17 21:38:54 +01:00 committed by Christian Dywan
parent d19396a065
commit 00b116a940

View file

@ -3458,6 +3458,7 @@ midori_view_web_inspector_construct_window (gpointer inspector,
MidoriView* view) MidoriView* view)
{ {
gchar* title; gchar* title;
gchar* label;
GtkWidget* window; GtkWidget* window;
GtkWidget* toplevel; GtkWidget* toplevel;
GdkScreen* screen; GdkScreen* screen;
@ -3466,10 +3467,12 @@ midori_view_web_inspector_construct_window (gpointer inspector,
GdkPixbuf* icon; GdkPixbuf* icon;
GdkPixbuf* gray_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); window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_title (GTK_WINDOW (window), title); gtk_window_set_title (GTK_WINDOW (window), title);
g_free (title); g_free (title);
g_free (label);
toplevel = gtk_widget_get_toplevel (GTK_WIDGET (view)); toplevel = gtk_widget_get_toplevel (GTK_WIDGET (view));
if (gtk_widget_is_toplevel (toplevel)) if (gtk_widget_is_toplevel (toplevel))