Glib::Ex::ConnectProperties::Element::iconview_selection -- IconView selected item
Glib::Ex::ConnectProperties->new([$iconview, 'iconview-selection#empty'], [$another, 'something']);
This element class implements ConnectProperties access to items "selected" in a Gtk2::IconView.
iconview-selection#empty boolean, read-only iconview-selection#not-empty boolean, read-only iconview-selection#count integer, read-only iconview-selection#selected-path Gtk2::TreePath or undef
For example iconview-selection#not-empty might be connected up to make a delete button sensitive only when the user has selected a row.
iconview-selection#not-empty
iconview-selection#selected-path is the first selected row. It's intended for use with selection-mode set to "single" so there's at most one item selected. Storing to the property calls select_path() and in single mode will switch from any existing selected item to just a given new one. This could be used to synchronise the selected item in two IconViews.
iconview-selection#selected-path
selection-mode
select_path()
Selected rows in a Gtk2::TreeSelection and items in an Gtk2::IconView are similar but not quite the same and are therefore handled separately in tree-selection# and iconview-selection#.
Gtk2::TreeSelection
Gtk2::IconView
tree-selection#
iconview-selection#
Glib::Ex::ConnectProperties, Glib::Ex::ConnectProperties::Element::tree_selection, Gtk2::IconView
http://user42.tuxfamily.org/glib-ex-connectproperties/index.html
Copyright 2011, 2012, 2013 Kevin Ryde
Glib-Ex-ConnectProperties is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
Glib-Ex-ConnectProperties is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Glib-Ex-ConnectProperties. If not, see http://www.gnu.org/licenses/.
To install Glib::Ex::ConnectProperties, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Glib::Ex::ConnectProperties
CPAN shell
perl -MCPAN -e shell install Glib::Ex::ConnectProperties
For more information on module installation, please visit the detailed CPAN module installation guide.