Re: [gtk-list] Perl GtkCList question



Ho!

>Hello!
>
>I'm writing a program in Perl/Gtk-0.2.2 and have run into a stump.
>When using a GtkCList, I am unable to find out what the selection is.
>I was expecting a method called selection which returns the selected
>rows, similiar to GtkList.


/snip/


OK, the patch for selection is attached. If you want more of them take a
look at http://www.iskon.hr/~pmc/gnome-perl.html. There is also an extended
test.pl file which uses the patches to demonstrate how to use new methods.

Please note that list->selection() method returns list of references to the
rows selected. The clist->selection()method returns the list of row numbers
selected (not references to rows!).

A note to Kenneth: would you like to review this code if it is done in
'proper' way (it is mainly copy&paste) since I am rather new to perlxs.

BTW, the patch included is against perl/gtk 0.2_03.

bb4now,
PMC

GtkCList_selection.patch



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