summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Yuan <li.yuan@sun.com>2009-02-25 09:55:14 +0000
committerLi Yuan <liyuan@src.gnome.org>2009-02-25 09:55:14 +0000
commit01aa0c39325a08a4baf8c61b0e3a7f43613dbd06 (patch)
treedbc003521a26a0fd499b860fc766c7172fad6fa9
parent7eff2404d07c7d53af3743b78acbaf5bf3f7bd5b (diff)
downloadgdk-pixbuf-01aa0c39325a08a4baf8c61b0e3a7f43613dbd06.tar.gz
Bug #325809. Get the cell from the coordinates based on bin_window.
2009-02-25 Li Yuan <li.yuan@sun.com> * gailtreeview.c: (gail_tree_view_ref_accessible_at_point): Bug #325809. Get the cell from the coordinates based on bin_window. svn path=/trunk/; revision=22405
-rw-r--r--modules/other/gail/ChangeLog6
-rw-r--r--modules/other/gail/gailtreeview.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/modules/other/gail/ChangeLog b/modules/other/gail/ChangeLog
index 1057cd83c..8551fb8e8 100644
--- a/modules/other/gail/ChangeLog
+++ b/modules/other/gail/ChangeLog
@@ -1,5 +1,11 @@
2009-02-25 Li Yuan <li.yuan@sun.com>
+ * gailtreeview.c: (gail_tree_view_ref_accessible_at_point):
+ Bug #325809. Get the cell from the coordinates based on
+ bin_window.
+
+2009-02-25 Li Yuan <li.yuan@sun.com>
+
* gailentry.c: (gail_entry_real_notify_gtk),
(gail_entry_idle_notify_insert), (_gail_entry_insert_text_cb):
Bug #520395. Notify the insert signal in the idle function. Let
diff --git a/modules/other/gail/gailtreeview.c b/modules/other/gail/gailtreeview.c
index 0604ecec5..d615a4575 100644
--- a/modules/other/gail/gailtreeview.c
+++ b/modules/other/gail/gailtreeview.c
@@ -1074,6 +1074,7 @@ gail_tree_view_ref_accessible_at_point (AtkComponent *component,
GtkTreePath *path;
GtkTreeViewColumn *tv_column;
gint x_pos, y_pos;
+ gint bx, by;
gboolean ret_val;
widget = GTK_ACCESSIBLE (component)->widget;
@@ -1084,8 +1085,9 @@ gail_tree_view_ref_accessible_at_point (AtkComponent *component,
tree_view = GTK_TREE_VIEW (widget);
atk_component_get_extents (component, &x_pos, &y_pos, NULL, NULL, coord_type);
+ gtk_tree_view_convert_widget_to_bin_window_coords (tree_view, x, y, &bx, &by);
ret_val = gtk_tree_view_get_path_at_pos (tree_view,
- x - x_pos, y - y_pos,
+ bx - x_pos, by - y_pos,
&path, &tv_column, NULL, NULL);
if (ret_val)
{