diff options
author | Kristian Rietveld <kris@gtk.org> | 2003-11-17 22:02:21 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2003-11-17 22:02:21 +0000 |
commit | 18154a2ea475a1249d55cd3e23fbbd34cbb2cce9 (patch) | |
tree | 467b9b1e07150f541dab61464e874b20e07dc1a9 /gtk/gtkentry.c | |
parent | 2a9551f54e1751ca85ad981bc4dc514ec4196b2e (diff) | |
download | gtk+-18154a2ea475a1249d55cd3e23fbbd34cbb2cce9.tar.gz |
add _gtk_entry_completion_resize_popup.
Mon Nov 17 22:56:09 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkentryprivate.h: add _gtk_entry_completion_resize_popup.
* gtk/gtkentry.c (gtk_entry_completion_timeout): popup when not
mapped, else resize_popup.
* gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup),
(_gtk_entry_completion_popup): moved all popup resizing code to
_gtk_entry_completion_resize_popup, and show the window when there
are more than zero items in the completion list again (sigh).
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r-- | gtk/gtkentry.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 3e97af9f82..e9af219373 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -4515,7 +4515,12 @@ gtk_entry_completion_timeout (gpointer data) actions = gtk_tree_model_iter_n_children (GTK_TREE_MODEL (completion->priv->actions), NULL); if (matches > 0 || actions > 0) - _gtk_entry_completion_popup (completion); + { + if (! GTK_WIDGET_MAPPED (completion->priv->popup_window)) + _gtk_entry_completion_popup (completion); + else + _gtk_entry_completion_resize_popup (completion); + } } GDK_THREADS_LEAVE (); |