mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 16:50:11 +00:00
Fixed GtkTreeViewColumn allocation to only subtract the depth padding/indentation from the expander column.
This commit is contained in:
parent
779125976c
commit
0baee408f2
@ -2579,10 +2579,15 @@ gtk_tree_view_get_column_padding (GtkTreeView *tree_view,
|
|||||||
"grid-line-width", &grid_line_width,
|
"grid-line-width", &grid_line_width,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
padding = horizontal_separator + (tree_view->priv->deepest_depth - 1) * tree_view->priv->level_indentation;
|
padding = horizontal_separator;
|
||||||
|
|
||||||
|
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))
|
if (TREE_VIEW_DRAW_EXPANDERS (tree_view))
|
||||||
padding += tree_view->priv->deepest_depth * tree_view->priv->expander_size;
|
padding += tree_view->priv->deepest_depth * tree_view->priv->expander_size;
|
||||||
|
}
|
||||||
|
|
||||||
if (tree_view->priv->grid_lines == GTK_TREE_VIEW_GRID_LINES_VERTICAL ||
|
if (tree_view->priv->grid_lines == GTK_TREE_VIEW_GRID_LINES_VERTICAL ||
|
||||||
tree_view->priv->grid_lines == GTK_TREE_VIEW_GRID_LINES_BOTH)
|
tree_view->priv->grid_lines == GTK_TREE_VIEW_GRID_LINES_BOTH)
|
||||||
|
Loading…
Reference in New Issue
Block a user