]> spindle.queued.net Git - midori/commitdiff
Adapt focus widget check for status text in location
authorChristian Dywan <christian@twotoasts.de>
Sat, 30 Apr 2011 23:18:53 +0000 (01:18 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 30 Apr 2011 23:18:53 +0000 (01:18 +0200)
The location no longer a GtkComboBox.

midori/midori-browser.c

index 98c7c13e94e70636b1c5c8616d2e17fd4531a06c..4d982e80739e1576668e08f2437e9589305c6793 100644 (file)
@@ -377,8 +377,8 @@ _midori_browser_set_statusbar_text (MidoriBrowser* browser,
                                     const gchar*   text)
 {
     GtkWidget* widget = gtk_window_get_focus (GTK_WINDOW (browser));
-    gboolean is_location = widget ?
-        GTK_IS_COMBO_BOX (gtk_widget_get_parent (widget)) : FALSE;
+    gboolean is_location = widget && GTK_IS_ENTRY (widget)
+        && GTK_IS_ALIGNMENT (gtk_widget_get_parent (widget));
 
     katze_assign (browser->statusbar_text, sokoke_format_uri_for_display (text));