Adapt focus widget check for status text in location

The location no longer a GtkComboBox.
This commit is contained in:
Christian Dywan 2011-05-01 01:18:53 +02:00
parent 12f353f8ea
commit 6de7c26c53

View file

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