mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 00:11:29 +00:00
parent
697aa95c7e
commit
7dd54b5789
@ -5545,6 +5545,7 @@ validate_row (GtkTreeView *tree_view,
|
|||||||
gboolean is_separator = FALSE;
|
gboolean is_separator = FALSE;
|
||||||
gboolean draw_vgrid_lines, draw_hgrid_lines;
|
gboolean draw_vgrid_lines, draw_hgrid_lines;
|
||||||
gint expander_size;
|
gint expander_size;
|
||||||
|
int separator_height;
|
||||||
|
|
||||||
/* double check the row needs validating */
|
/* double check the row needs validating */
|
||||||
if (! GTK_TREE_RBNODE_FLAG_SET (node, GTK_TREE_RBNODE_INVALID) &&
|
if (! GTK_TREE_RBNODE_FLAG_SET (node, GTK_TREE_RBNODE_INVALID) &&
|
||||||
@ -5573,6 +5574,8 @@ validate_row (GtkTreeView *tree_view,
|
|||||||
first_column = first_column->next)
|
first_column = first_column->next)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
separator_height = get_separator_height (tree_view);
|
||||||
|
|
||||||
context = gtk_widget_get_style_context (GTK_WIDGET (tree_view));
|
context = gtk_widget_get_style_context (GTK_WIDGET (tree_view));
|
||||||
gtk_style_context_save (context);
|
gtk_style_context_save (context);
|
||||||
gtk_style_context_add_class (context, GTK_STYLE_CLASS_CELL);
|
gtk_style_context_add_class (context, GTK_STYLE_CLASS_CELL);
|
||||||
@ -5604,7 +5607,7 @@ validate_row (GtkTreeView *tree_view,
|
|||||||
|
|
||||||
if (is_separator)
|
if (is_separator)
|
||||||
{
|
{
|
||||||
height = get_separator_height (tree_view);
|
height = separator_height;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user