Improve positioning of entry completion popup.

2004-09-13  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
	Improve positioning of entry completion popup.
This commit is contained in:
Matthias Clasen 2004-09-13 14:15:03 +00:00 committed by Matthias Clasen
parent d04d99e947
commit 633bc9cad5

View File

@ -1279,8 +1279,6 @@ _gtk_entry_completion_resize_popup (GtkEntryCompletion *completion)
gdk_window_get_origin (completion->priv->entry->window, &x, &y); gdk_window_get_origin (completion->priv->entry->window, &x, &y);
get_borders (GTK_ENTRY (completion->priv->entry), &x_border, &y_border); get_borders (GTK_ENTRY (completion->priv->entry), &x_border, &y_border);
x += x_border;
y += 2 * y_border;
matches = gtk_tree_model_iter_n_children (GTK_TREE_MODEL (completion->priv->filter_model), NULL); matches = gtk_tree_model_iter_n_children (GTK_TREE_MODEL (completion->priv->filter_model), NULL);