[gtk+/treeview-refactor] Revert "Temporary fix to make separator rows request enough space for the expander size."
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/treeview-refactor] Revert "Temporary fix to make separator rows request enough space for the expander size."
- Date: Tue, 7 Dec 2010 06:19:44 +0000 (UTC)
commit 1b336983842d302f6898f700e96512f163eda498
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Tue Dec 7 14:09:26 2010 +0900
Revert "Temporary fix to make separator rows request enough space for the expander size."
This reverts commit 515af9ce702d77c5d1ab0a089c51564c31cd2247.
gtk/gtktreeview.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index c2a611c..d6e290d 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -6148,6 +6148,7 @@ validate_row (GtkTreeView *tree_view,
{
row_height += vertical_separator;
height = MAX (height, row_height);
+ height = MAX (height, tree_view->priv->expander_size);
}
else
{
@@ -6157,10 +6158,6 @@ validate_row (GtkTreeView *tree_view,
height = 2 + 2 * focus_pad;
}
- /* XXX Expander size is also used to draw the separator rows,
- * maybe that should not be the case ? */
- height = MAX (height, tree_view->priv->expander_size);
-
if (gtk_tree_view_is_expander_column (tree_view, column))
{
padding += horizontal_separator + (depth - 1) * tree_view->priv->level_indentation;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]