[gimp/soc-2009-dynamics] Use the right area for click detection on treeview cells
- From: zhenfeng zhao <zhenfengz src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp/soc-2009-dynamics] Use the right area for click detection on treeview cells
- Date: Mon, 27 Jul 2009 17:42:56 +0000 (UTC)
commit 23ab1a6ac282cac328aad17e4ed3bed30d5c384e
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]