mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-21 14:24:19 +00:00
entrycompletion: Realize toplevel before attempting a grab
Otherwise, gtk_widget_get_window returns NULL and we can't successfully perform a grab via the later gdk_set_grab call. This fixes the entry completion in the file chooser not working.
This commit is contained in:
parent
af0d876bb7
commit
4d36a0bf35
@ -1592,6 +1592,7 @@ gtk_entry_completion_popup (GtkEntryCompletion *completion)
|
||||
|
||||
gtk_window_set_display (GTK_WINDOW (completion->priv->popup_window),
|
||||
gtk_widget_get_display (completion->priv->entry));
|
||||
gtk_widget_realize (completion->priv->popup_window);
|
||||
|
||||
if (completion->priv->device)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user