[Xfce4-commits] <midori:master> Adapt focus widget check for status text in location

Christian Dywan noreply at xfce.org
Sun May 1 02:16:01 CEST 2011


Updating branch refs/heads/master
         to 6de7c26c53e46f424a40d75cd9402f5706bd127f (commit)
       from 12f353f8ea2aa817232613f312fe87832e7bce50 (commit)

commit 6de7c26c53e46f424a40d75cd9402f5706bd127f
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sun May 1 01:18:53 2011 +0200

    Adapt focus widget check for status text in location
    
    The location no longer a GtkComboBox.

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

diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index 98c7c13..4d982e8 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -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));
 



More information about the Xfce4-commits mailing list