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
iconview-selection#not-empty might be connected up to make a delete button sensitive only when the user has selected a row.
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.
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
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/.