Re: select more than one row in TreeView



On Sun, 2006-10-08 at 21:26 +0200, Michael Hartmann wrote:

I have a Gtk2::TreeView with just one column containing text (Glib::String). 
However I want to be able to select more than one row at a time. Is that 
possible?

Yes. Set the selection mode to 'multiple' and use one of the various
selection methods.  For example:

        $view->get_selection->set_mode ('multiple');
        $view->get_selection->select_all;

-- 
Bye,
-Torsten




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]