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:
Timm Bäder 2018-01-19 15:15:09 +01:00
parent af0d876bb7
commit 4d36a0bf35

View File

@ -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)
{