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,6 +36,7 @@ gtk_icon_entry_set_icon_from_pixbuf (GtkEntry* entry,
|
||||||
gtk_widget_show (widget);
|
gtk_widget_show (widget);
|
||||||
|
|
||||||
if ((window = gtk_widget_get_toplevel (widget)))
|
if ((window = gtk_widget_get_toplevel (widget)))
|
||||||
|
if (GTK_IS_WINDOW (window))
|
||||||
gtk_window_set_focus (GTK_WINDOW (window), widget);
|
gtk_window_set_focus (GTK_WINDOW (window), widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue