Re: How to handle radio buttons ?



minux centrum cz schrieb:
[Radio buttons]
But in the next step, I don't know how to get an information about which choice has been chosen :-(

Could you please send me some example or clear it up ?

Check out the GTK+ Reference Manual, page GtkRadioButton.
<Quote>
When an unselected button in the group is clicked the clicked button
receives the "toggled" signal, as does the previously selected button.
Inside the "toggled" handler, gtk_toggle_button_get_active() can be used
to determine if the button has been selected or deselected.
</Quote>

So you need to connect to the "toggled" signal.

Holger



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