[gtk+] treeview: center expander allocated space



commit 50065b7ba07fe08f5c71e42101fedf5b6e810982
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Feb 22 19:53:03 2013 -0500

    treeview: center expander allocated space
    
    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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index abde267..505f41b 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -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)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]