diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2013-09-19 13:35:00 -0700 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-09-25 20:06:43 -0400 |
commit | 6f9fed45ef99f609829dcfd5ddaea2f48a181e37 (patch) | |
tree | fdb3804e12a3c163566b4955497b2d38735fef1e /gtk/gtkentrycompletion.c | |
parent | 61c4b17ac4a2614f493dd61f8c743dae8cf53498 (diff) | |
download | gtk+-6f9fed45ef99f609829dcfd5ddaea2f48a181e37.tar.gz |
entrycompletion: set the GtkWindow as attached to the GtkEntry
This way themes can easily select that window to apply custom styles.
https://bugzilla.gnome.org/show_bug.cgi?id=708414
Diffstat (limited to 'gtk/gtkentrycompletion.c')
-rw-r--r-- | gtk/gtkentrycompletion.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c index 582287a422..c947210f7f 100644 --- a/gtk/gtkentrycompletion.c +++ b/gtk/gtkentrycompletion.c @@ -2683,6 +2683,8 @@ _gtk_entry_completion_disconnect (GtkEntryCompletion *completion) unset_accessible_relation (completion->priv->popup_window, completion->priv->entry); + gtk_window_set_attached_to (GTK_WINDOW (completion->priv->popup_window), + NULL); completion->priv->entry = NULL; } @@ -2695,6 +2697,8 @@ _gtk_entry_completion_connect (GtkEntryCompletion *completion, set_accessible_relation (completion->priv->popup_window, completion->priv->entry); + gtk_window_set_attached_to (GTK_WINDOW (completion->priv->popup_window), + completion->priv->entry); connect_completion_signals (completion); } |