[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-app-devel
Subject:    Re: How to handle radio buttons ?
From:       Holger Berndt <berndth () gmx ! de>
Date:       2007-03-20 17:06:37
Message-ID: 4600149D.5000605 () gmx ! de
[Download RAW message or body]

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
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic