diff options
author | Kristian Rietveld <kris@imendio.com> | 2007-06-13 13:27:00 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2007-06-13 13:27:00 +0000 |
commit | 4e4748e890f3c19b6d1e8cb72f316c33e25b846a (patch) | |
tree | 35edc1f9e5948e1f907d9f46c9498169266e4d4a /tests/testtooltips.c | |
parent | 56efde1a2f0d0f3f172c1906f16033d46bcfd534 (diff) | |
download | gtk+-4e4748e890f3c19b6d1e8cb72f316c33e25b846a.tar.gz |
Audit of GtkTreeView coordinate system usage. (#142494).
2007-06-13 Kristian Rietveld <kris@imendio.com>
Audit of GtkTreeView coordinate system usage. (#142494).
* gtk/gtktreeview.[ch]: general documentation updates,
(gtk_tree_view_scroll_to_cell), (gtk_tree_view_get_dest_row_at_pos):
update coordinate translations,
(gtk_tree_view_tree_to_widget_coords),
(gtk_tree_view_widget_to_tree_coords): Deprecated,
(gtk_tree_view_convert_.*_coords): 6 new functions for doing
transformations between coordinate systems.
* gtk/gtk.symbols: updated.
* tests/testtooltips.c (query_tooltip_tree_view_cb): fix testcase
with new gtk_tree_view_convert_widget_to_bin_window_coords().
* docs/reference/gtk/Makefile.am
* docs/reference/gtk/images/tree-view-coordinates.png: add new image.
* docs/reference/gtk/tmpl/gtktreeview.sgml: eloborate on the
different coordinate systems.
svn path=/trunk/; revision=18119
Diffstat (limited to 'tests/testtooltips.c')
-rw-r--r-- | tests/testtooltips.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/testtooltips.c b/tests/testtooltips.c index 7c3c98a62c..35652117c8 100644 --- a/tests/testtooltips.c +++ b/tests/testtooltips.c @@ -117,8 +117,14 @@ query_tooltip_tree_view_cb (GtkWidget *widget, } else { + gint bin_x, bin_y; + + gtk_tree_view_convert_widget_to_bin_window_coords (tree_view, x, y, + &bin_x, &bin_y); + /* Mouse mode */ - if (!gtk_tree_view_get_path_at_pos (tree_view, x, y, &path, NULL, NULL, NULL)) + if (!gtk_tree_view_get_path_at_pos (tree_view, bin_x, bin_y, + &path, NULL, NULL, NULL)) return FALSE; } |