[gtk+/gtk-3-8] entrycompletion: set the GtkWindow as attached to the GtkEntry
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-8] entrycompletion: set the GtkWindow as attached to the GtkEntry
- Date: Thu, 10 Oct 2013 23:50:55 +0000 (UTC)
commit 80aca3be776573d762759e8de9f348a8d5969bbe
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Sep 19 13:35:00 2013 -0700
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
gtk/gtkentrycompletion.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index b0bf1c8..f0b7fad 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -2686,6 +2686,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;
}
@@ -2698,6 +2700,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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]