]> spindle.queued.net Git - midori/commitdiff
Make sure that the icon entry parent really is a GtkWindow
authorChristian Dywan <christian@twotoasts.de>
Sun, 12 Jul 2009 11:54:59 +0000 (13:54 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 12 Jul 2009 11:54:59 +0000 (13:54 +0200)
midori/gtkiconentry.c

index bfbf5fd5a47f71b1379bfb3c62cd3aa15614440d..6882eb49d46dba6c686f398741003ff1596f03ab 100644 (file)
@@ -36,7 +36,8 @@ gtk_icon_entry_set_icon_from_pixbuf (GtkEntry*            entry,
     gtk_widget_show (widget);
 
     if ((window = gtk_widget_get_toplevel (widget)))
-        gtk_window_set_focus (GTK_WINDOW (window), widget);
+        if (GTK_IS_WINDOW (window))
+            gtk_window_set_focus (GTK_WINDOW (window), widget);
 }
 
 #else