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.
    }
}




--
Brian



_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list



-- 
muppet <scott at asofyet dot org>



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