GNOME Bugzilla – Bug 145109
Documentation suggestion for Gtk2::TreeView
Last modified: 2004-12-22 21:47:04 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. :)
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.