summaryrefslogtreecommitdiff
path: root/gtk/gtkentry.c
diff options
context:
space:
mode:
authorChristian Dywan <cdywan@src.gnome.org>2008-09-03 12:38:32 +0000
committerChristian Dywan <cdywan@src.gnome.org>2008-09-03 12:38:32 +0000
commit446fd7d72afabb397fbe98279ac8b66765133940 (patch)
tree9d356222f0b72e121e6f9afe512bc502c64f9e89 /gtk/gtkentry.c
parentebbe9743db12dbbe994f6fd06c4e4dfdc115aef1 (diff)
downloadgtk+-446fd7d72afabb397fbe98279ac8b66765133940.tar.gz
Bug 547449 – Entry/ Combo popup misplaced after resize
svn path=/trunk/; revision=21263
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r--gtk/gtkentry.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 4383057ee3..76d17b64ab 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -1581,6 +1581,7 @@ gtk_entry_size_allocate (GtkWidget *widget,
* be affected by the usize of the entry, if set
*/
gint x, y, width, height;
+ GtkEntryCompletion* completion;
get_widget_window_size (entry, &x, &y, &width, &height);
@@ -1593,6 +1594,10 @@ gtk_entry_size_allocate (GtkWidget *widget,
x, y, width, height);
gtk_entry_recompute (entry);
+
+ completion = gtk_entry_get_completion (entry);
+ if (completion && GTK_WIDGET_MAPPED (completion->priv->popup_window))
+ _gtk_entry_completion_resize_popup (completion);
}
}