diff options
author | Timm Bäder <mail@baedert.org> | 2018-01-19 15:15:09 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2018-01-19 22:39:23 +0100 |
commit | 4d36a0bf352cc69e85a065e49119a7f6804bc9e2 (patch) | |
tree | f3cd812f91a422c7f9e4783eda35382b1f23e6e5 | |
parent | af0d876bb7da883af10fc4517de67d2318bf099b (diff) | |
download | gtk+-4d36a0bf352cc69e85a065e49119a7f6804bc9e2.tar.gz |
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.
-rw-r--r-- | gtk/gtkentrycompletion.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c index ae3f895b42..c80f8b0061 100644 --- a/gtk/gtkentrycompletion.c +++ b/gtk/gtkentrycompletion.c @@ -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) { |