gtk+ r22405 - trunk/modules/other/gail
- From: liyuan svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r22405 - trunk/modules/other/gail
- Date: Wed, 25 Feb 2009 09:55:14 +0000 (UTC)
Author: liyuan
Date: Wed Feb 25 09:55:14 2009
New Revision: 22405
URL: http://svn.gnome.org/viewvc/gtk+?rev=22405&view=rev
Log:
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.
Modified:
trunk/modules/other/gail/ChangeLog
trunk/modules/other/gail/gailtreeview.c
Modified: trunk/modules/other/gail/gailtreeview.c
==============================================================================
--- trunk/modules/other/gail/gailtreeview.c (original)
+++ trunk/modules/other/gail/gailtreeview.c Wed Feb 25 09:55:14 2009
@@ -1074,6 +1074,7 @@
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 @@
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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]