Re: select more than one row in TreeView



Hi,

Am Sonntag, 8. Oktober 2006 21:34 schrieb Torsten Schoenfeld:
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;

Thank you for your advice.

--Michael



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