mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
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
This commit is contained in:
parent
61c4b17ac4
commit
6f9fed45ef
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user