treeview: Apply column-header region always

... so that invisible columns get it, too.

Works around weird effects seen when buttons are animated and columns
get hidden/shown.
This commit is contained in:
Benjamin Otte 2014-09-10 16:47:16 +02:00
parent e9ce9a814b
commit 1741de47db

View File

@ -8767,6 +8767,11 @@ gtk_tree_view_get_path_for_child (GtkContainer *container,
if (gtk_tree_view_column_get_visible (column))
visible_columns = g_list_prepend (visible_columns, column);
else if (gtk_tree_view_column_get_widget (column) == child ||
gtk_tree_view_column_get_button (column) == child)
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_widget_path_iter_add_region (path, gtk_widget_path_length (path) - 2, GTK_STYLE_REGION_COLUMN_HEADER, 0);
G_GNUC_END_IGNORE_DEPRECATIONS
}
if (!rtl)