[gtk+/composite-templates] treeview: Invalidate children properly
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/composite-templates] treeview: Invalidate children properly
- Date: Sat, 6 Oct 2012 17:10:00 +0000 (UTC)
commit 461d8ffdbbb925869fdcfed55bcb32467262885d
Author: Benjamin Otte <otte redhat com>
Date: Mon Oct 1 11:54:18 2012 +0200
treeview: Invalidate children properly
GtkTreeView still uses regions (yay!), so we need to invalidate the
regions when hiding/showing children, and not their siblings.
gtk/gtktreeview.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 0b1599e..182374c 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -11922,7 +11922,7 @@ _gtk_tree_view_reset_header_styles (GtkTreeView *tree_view)
if (!header_widget)
header_widget = gtk_tree_view_column_get_button (column);
- _gtk_widget_invalidate_style_context (header_widget, GTK_CSS_CHANGE_POSITION | GTK_CSS_CHANGE_SIBLING_POSITION);
+ _gtk_widget_invalidate_style_context (header_widget, GTK_CSS_CHANGE_PARENT_REGION);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]