[gtk+] entrycompletion: Realize toplevel before attempting a grab
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] entrycompletion: Realize toplevel before attempting a grab
- Date: Fri, 19 Jan 2018 21:35:50 +0000 (UTC)
commit 4d36a0bf352cc69e85a065e49119a7f6804bc9e2
Author: Timm Bäder <mail baedert org>
Date: Fri Jan 19 15:15:09 2018 +0100
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.
gtk/gtkentrycompletion.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index ae3f895..c80f8b0 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]