From: Christian Dywan Date: Sun, 12 Jul 2009 11:54:59 +0000 (+0200) Subject: Make sure that the icon entry parent really is a GtkWindow X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=400139644371c0b675723f9a986ddab4445a8794;p=midori Make sure that the icon entry parent really is a GtkWindow --- diff --git a/midori/gtkiconentry.c b/midori/gtkiconentry.c index bfbf5fd5..6882eb49 100644 --- a/midori/gtkiconentry.c +++ b/midori/gtkiconentry.c @@ -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