summaryrefslogtreecommitdiff
path: root/gtk/gtkentrycompletion.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-10-28 20:35:11 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-10-28 20:35:11 +0000
commit6a40c2488bbf667c94c288205e9d7da2bfd6d692 (patch)
tree50895a549f8ee288e089eb4bcc44b0502b23154e /gtk/gtkentrycompletion.c
parentc50df41b521e5cfb3d041857a3e2eb111784c7c1 (diff)
downloadgtk+-6a40c2488bbf667c94c288205e9d7da2bfd6d692.tar.gz
Add the popup window to the toplevels window group. (#319912, Christian
2005-10-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Add the popup window to the toplevels window group. (#319912, Christian Persch)
Diffstat (limited to 'gtk/gtkentrycompletion.c')
-rw-r--r--gtk/gtkentrycompletion.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index 92a850185e..b5974698d0 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -1417,6 +1417,7 @@ _gtk_entry_completion_popup (GtkEntryCompletion *completion)
{
GtkTreeViewColumn *column;
GList *renderers;
+ GtkWidget *toplevel;
if (GTK_WIDGET_MAPPED (completion->priv->popup_window))
return;
@@ -1438,6 +1439,11 @@ _gtk_entry_completion_popup (GtkEntryCompletion *completion)
_gtk_entry_completion_resize_popup (completion);
+ toplevel = gtk_widget_get_toplevel (completion->priv->entry);
+ if (GTK_IS_WINDOW (toplevel))
+ gtk_window_group_add_window (_gtk_window_get_group (GTK_WINDOW (toplevel)),
+ GTK_WINDOW (completion->priv->popup_window));
+
gtk_widget_show (completion->priv->popup_window);
gtk_grab_add (completion->priv->popup_window);