Re: Glib::ParamSpec->enum or boxed



On 23/01/2008, muppet <scott asofyet org> wrote:
Super easy.  Changes to your code inline below:

Thanks. Perfect.

In the mean time, it occurred to me that it would be generally useful
to be able to do something like:

my $pr = Gtk2::Ex::Simple::RadioButtonGroup->new(all => 'All',
                                                 current => 'Current',
                                                 selected => 'Selected');

where the keys to the hash are what would be returned by get_active(),
and the values would be the button titles. But I don't see how to pass
the keys to Glib::Type->register_enum before initialising the object.

Any ideas?

Jeff



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