Re: radio menuitems

B McAndrews said:
Whenever I toggle a  radio menuitem, it appears that I get 2 callbacks,
the first for the button that was 'un-toggled' and the second for the
button that was 'toggled'.  Is this expected behavior when all I want is
the callback to the button that was selected?

sub radio_menu_item_toggled_callback {
    my $item = shift;

    if ($item->get_active) {
        # we've been turned on.
        do_stuff ();
    } else {
        # we've been turned off.  ignore.


gtk-perl-list mailing list
gtk-perl-list gnome org

muppet <scott at asofyet dot org>

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