Re: determining which radiobutton is active?



On Wed, 2003-08-20 at 15:32, Jacob Kolding wrote:
Can anyone guide me to some example code that shows
how to dertermin which button is active in a group of
radiobuttons?

The simplest way is to set a callback to write to a variable when the
item is selected.

The other way is to get the list of widgets in the group from
gtk_radio_button_get_group and iterate through it, and use
gtk_toggle_button_get_active to get it's state.

Michael



/Jacob Kolding

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
-- 
Michael L Torrie <torriem chem byu edu>



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