diff options
author | Kristian Rietveld <kris@gtk.org> | 2005-07-13 11:57:10 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2005-07-13 11:57:10 +0000 |
commit | 22554a161f2001c006b5254bf835887ebd8cadec (patch) | |
tree | 9e8ee1fc1d5f47c478b0d2111f97cd37ef5e747e /gtk/gtkentrycompletion.c | |
parent | 06e735a652a9aefc787c696b44bfcc666ed61ef2 (diff) | |
download | gtk+-22554a161f2001c006b5254bf835887ebd8cadec.tar.gz |
when !separator, don't add the focus_line_width to width/height (happens
2005-07-13 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (validate_row): when !separator, don't add
the focus_line_width to width/height (happens in
_column_cell_get_size), but do add the vertical-separator to height,
we weren't taking this into account before.
* gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
take vertical-separator into account. (#309137, Ross Burton).
Diffstat (limited to 'gtk/gtkentrycompletion.c')
-rw-r--r-- | gtk/gtkentrycompletion.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c index 28b8f99511..258356f361 100644 --- a/gtk/gtkentrycompletion.c +++ b/gtk/gtkentrycompletion.c @@ -1321,6 +1321,7 @@ _gtk_entry_completion_resize_popup (GtkEntryCompletion *completion) gint matches, items, height, x_border, y_border; GdkScreen *screen; gint monitor_num; + gint vertical_separator; GdkRectangle monitor; GtkRequisition popup_req; GtkRequisition entry_req; @@ -1341,6 +1342,12 @@ _gtk_entry_completion_resize_popup (GtkEntryCompletion *completion) gtk_tree_view_column_cell_get_size (completion->priv->column, NULL, NULL, NULL, NULL, &height); + gtk_widget_style_get (GTK_WIDGET (completion->priv->tree_view), + "vertical-separator", &vertical_separator, + NULL); + + height += vertical_separator; + if (items <= 0) gtk_widget_hide (completion->priv->scrolled_window); else |