[gimp] Use the right area for click detection on treeview cells
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp] Use the right area for click detection on treeview cells
- Date: Sun, 26 Jul 2009 12:15:49 +0000 (UTC)
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]