From 400139644371c0b675723f9a986ddab4445a8794 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 12 Jul 2009 13:54:59 +0200 Subject: [PATCH] Make sure that the icon entry parent really is a GtkWindow --- midori/gtkiconentry.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5