Next: Gtk2::TreeSortable | Previous: Gtk2::TreeRowReference | [Gtk2-Perl - Table of Contents] | [Gtk2-Perl - Index] |
Gtk2::TreeSelection
Glib::Object +----Gtk2::TreeSelection
Call $func on every selected row in $selection's view.
Since most of the time you are only interested in the iter, get_selected
returns only the iter in scalar context.
Returns the Gtk2::TreePath of each selected row, or an empty list if no
rows are selected. The model is not returned, as documented in the C
API reference. To get the model, try
$selection->get_tree_view->get_model
.
Since: gtk+ 2.2
'none' / 'GTK_SELECTION_NONE'
'single' / 'GTK_SELECTION_SINGLE'
'browse' / 'GTK_SELECTION_BROWSE'
'multiple' / 'GTK_SELECTION_MULTIPLE'
'extended' / 'GTK_SELECTION_EXTENDED'
Copyright (C) 2003-2008 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.