diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 9a1cc90bbd..73c37c1099 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -6131,6 +6131,7 @@ validate_row (GtkTreeView *tree_view, GtkTreePath *path) { GtkTreeViewColumn *column; + GtkStyleContext *context; GList *list, *first_column, *last_column; gint height = 0; gint horizontal_separator; @@ -6179,6 +6180,10 @@ validate_row (GtkTreeView *tree_view, first_column = first_column->next) ; + context = gtk_widget_get_style_context (GTK_WIDGET (tree_view)); + gtk_style_context_save (context); + gtk_style_context_add_class (context, GTK_STYLE_CLASS_CELL); + for (list = tree_view->priv->columns; list; list = list->next) { gint padding = 0; @@ -6244,6 +6249,8 @@ validate_row (GtkTreeView *tree_view, retval = TRUE; } + gtk_style_context_restore (context); + if (draw_hgrid_lines) height += grid_line_width;