bug with Gtk2::ActionGroup->add_radio_actions() ?


I try to add a number of radio actions to a menu without setting one of them active yet. (The reason for this is that I want the "on_change" callback to be called when I later set the default value from the applications config file).

The C api reference say about the "value" argument to "add_radio_actions()"

        the value of the action to activate initially, or -1 if no
        action should be activated

I tried setting this value to -1 and to undef, but somehow the first radio action is always set active.

Could this be a bug in the perl bindings or do I need to look elsewhere ?

-- Jaap <pardus cpan org>

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