Re: determining which radiobutton is active?



Jacob Kolding <jacob omnia dk> writes:

Can anyone guide me to some example code that shows
how to dertermin which button is active in a group of
radiobuttons?

A GtkRadioButton inherits GtkCheckButton which inherits
GtkToggleButton, so you can use

        gtk_toggle_button_get_active (
            GTK_TOGGLE_BUTTON (radio_button))

to find out if a radio button is active.


Søren



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