man Gtk2::TreeSelection () - Gtk2::TreeSelection

NAME

Gtk2::TreeSelection

HIERARCHY

  Glib::Object
  +----Gtk2::TreeSelection

METHODS

$selection->set_mode ($type)

$selection->select_all

$selection->select_iter ($iter)

$selection->select_path ($path)

Call $func on every selected row in $selection's view. Since most of the time you are only interested in the iter, CWget_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 CW$selection->get_tree_view->get_model.

$selection->unselect_all

$selection->unselect_iter ($iter)

$selection->unselect_path ($path)

SIGNALS

changed (Gtk2::TreeSelection)

ENUMS AND FLAGS

enum Gtk2::SelectionMode

* 'none' / 'GTK_SELECTION_NONE'
* 'single' / 'GTK_SELECTION_SINGLE'
* 'browse' / 'GTK_SELECTION_BROWSE'
* 'multiple' / 'GTK_SELECTION_MULTIPLE'
* 'extended' / 'GTK_SELECTION_EXTENDED'

SEE ALSO

Gtk2, Glib::Object

COPYRIGHT

Copyright (C) 2003-2005 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.