[gtk+/treeview-refactor-staging: 9/10] Fixed GtkTreeViewColumn allocation to only subtract the depth padding/indentation from the expander
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/treeview-refactor-staging: 9/10] Fixed GtkTreeViewColumn allocation to only subtract the depth padding/indentation from the expander
- Date: Thu, 2 Dec 2010 04:27:00 +0000 (UTC)
commit c74ccab57c7a1ec95c08921b55d882cce2ea2067
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Wed Dec 1 17:12:32 2010 +0900
Fixed GtkTreeViewColumn allocation to only subtract the depth padding/indentation from the expander column.
gtk/gtktreeview.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index f470719..cc97dec 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -2579,10 +2579,15 @@ gtk_tree_view_get_column_padding (GtkTreeView *tree_view,
"grid-line-width", &grid_line_width,
NULL);
- padding = horizontal_separator + (tree_view->priv->deepest_depth - 1) * tree_view->priv->level_indentation;
+ padding = horizontal_separator;
- if (TREE_VIEW_DRAW_EXPANDERS (tree_view))
- padding += tree_view->priv->deepest_depth * tree_view->priv->expander_size;
+ if (gtk_tree_view_is_expander_column (tree_view, column))
+ {
+ padding += (tree_view->priv->deepest_depth - 1) * tree_view->priv->level_indentation;
+
+ if (TREE_VIEW_DRAW_EXPANDERS (tree_view))
+ padding += tree_view->priv->deepest_depth * tree_view->priv->expander_size;
+ }
if (tree_view->priv->grid_lines == GTK_TREE_VIEW_GRID_LINES_VERTICAL ||
tree_view->priv->grid_lines == GTK_TREE_VIEW_GRID_LINES_BOTH)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]