]> Pileus Git - ~andy/gtk/commitdiff
treeview: center expander allocated space
authorCosimo Cecchi <cosimoc@gnome.org>
Sat, 23 Feb 2013 00:53:03 +0000 (19:53 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Fri, 1 Mar 2013 18:55:05 +0000 (13:55 -0500)
This patch centers the expander in the extra space allocated by the
horizontal-separator style property.

https://bugzilla.gnome.org/show_bug.cgi?id=650424

gtk/gtktreeview.c

index abde2677cd7b22d05edc7436e0e5a1279d224e61..505f41b588eca0e786c522e7b97655ae0de34240 100644 (file)
@@ -9274,6 +9274,7 @@ gtk_tree_view_get_arrow_xrange (GtkTreeView *tree_view,
         total_width += gtk_tree_view_column_get_width (tmp_column);
     }
 
+  x_offset += (expander_size - expander_render_size);
 
   if (indent_expanders)
     {