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).
This commit is contained in:
Kristian Rietveld
2003-11-17 22:02:21 +00:00
committed by Kristian Rietveld
parent 2a9551f54e
commit 18154a2ea4
8 changed files with 85 additions and 31 deletions

View File

@ -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 ();