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).
This commit is contained in:
committed by
Kristian Rietveld
parent
06e735a652
commit
22554a161f
@ -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
|
||||
|
||||
Reference in New Issue
Block a user