Linking button handler to data structure



I'm an experienced programmer having trouble with my first real
Gtk/Perl program.

I've built a scrollable list of CheckButtons, each with the name
of some datum from an external source:

        [ ] Item1
        [ ] Item2
        ...
        [ ] ItemN

I want all buttons to have the same handler, and to determine
which button was click by having the handler get the label text,
eg. "Item1" ... "ItemN".

I'm stumped -- how do I reference the Label text that I know is
attached with the CheckButton widget here?

Any hints appreciated.

tomj




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