[gimp] Use the right area for click detection on treeview cells



commit bc51e8f98c383ec0dad495ddc218d92bb05d571f
Author: Michael Natterer <mitch gimp org>
Date:   Sun Jul 26 14:13:30 2009 +0200

    Use the right area for click detection on treeview cells
    
    Use gtk_tree_view_get_cell_area() instead of
    gtk_tree_view_get_background_area() because the latter includes things
    like expanders, indentation and padding and messes up the x coordinate
    of our naive click detection.

 app/widgets/gimpcontainertreeview.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpcontainertreeview.c b/app/widgets/gimpcontainertreeview.c
index 0e04b0c..35e8ba5 100644
--- a/app/widgets/gimpcontainertreeview.c
+++ b/app/widgets/gimpcontainertreeview.c
@@ -975,8 +975,8 @@ gimp_container_tree_view_button_press (GtkWidget             *widget,
 
       tree_view->priv->dnd_renderer = renderer;
 
-      gtk_tree_view_get_background_area (tree_view->view, path,
-                                         column, &column_area);
+      gtk_tree_view_get_cell_area (tree_view->view, path,
+                                   column, &column_area);
 
       gtk_tree_view_column_cell_set_cell_data (column,
                                                tree_view->model,



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