Make sure that the icon entry parent really is a GtkWindow
This commit is contained in:
parent
2379e7ac75
commit
4001396443
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue