Re: [gtk-list] Perl GtkCList question
- From: "Marin Purgar - PMC" <pmc iskon hr>
- To: <gtk-list redhat com>
- Cc: <bhirt berkhirt com>, <kjahds kjahds com>
- Subject: Re: [gtk-list] Perl GtkCList question
- Date: Tue, 28 Jul 1998 15:58:43 +0200
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]