diff options
author | Christian Dywan <cdywan@src.gnome.org> | 2008-09-03 12:38:32 +0000 |
---|---|---|
committer | Christian Dywan <cdywan@src.gnome.org> | 2008-09-03 12:38:32 +0000 |
commit | 446fd7d72afabb397fbe98279ac8b66765133940 (patch) | |
tree | 9d356222f0b72e121e6f9afe512bc502c64f9e89 /gtk/gtkentry.c | |
parent | ebbe9743db12dbbe994f6fd06c4e4dfdc115aef1 (diff) | |
download | gtk+-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.c | 5 |
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); } } |