After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 145109 - Documentation suggestion for Gtk2::TreeView
Documentation suggestion for Gtk2::TreeView
Status: RESOLVED FIXED
Product: gnome-perl
Classification: Bindings
Component: Gtk2
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtk2-perl-bugs
gtk2-perl-bugs
Depends on:
Blocks:
 
 
Reported: 2004-06-28 22:27 UTC by danflemming
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description danflemming 2004-06-28 22:27:01 UTC
In the original .pod for Gtk2::TreeView, we have:
(path, column, cell_x, cell_y) = $tree_view->get_path_at_pos ($x, $y)
 
 * $x (integer)
 * $y (integer)
 In scalar context, returns the Gtk2::TreePath, in array context, adds the
 Gtk2::TreeViewColumn, and $x and $y translated to be relative to the cell.
I believe that $x and $y are pixel coordinates. This should be made more
clear. Possibly I am wrong, in which case, the truth should still be made
more clear. :)
Comment 1 Torsten Schoenfeld 2004-07-10 15:42:10 UTC
Ok, I'll add the following:

Finds the path at the point (I<$x>, I<$y>), relative to widget
coordinates. That is, I<$x> and I<$y> are relative to an event's
coordinates. I<$x> and I<$y> must come from an event on the I<$tree_view> only
where C<$event->window == $tree_view->get_bin_window>. It is primarily for
things like popup menus.  In scalar context, returns the Gtk2::TreePath, in
array context, adds the Gtk2::TreeViewColumn, and I<$x> and I<$y> translated to
be relative to the cell.  This function is only meaningful if I<$tree_view> is
realized.