[Glade-users] radiobuttons

Tristan Van Berkom tvb at gnome.org
Mon May 14 09:56:18 EDT 2007


On Mon, 2007-05-14 at 05:10 -0700, beginner.c wrote:
> Can somebody please tell me how I go about setting up groups for my radio
> buttons and changing the text of my radio buttons (in my app, not in Glade)?

In your app, well then you should reffer to:
   http://developer.gnome.org/doc/API/2.0/gtk/GtkRadioButton.html

> It doesn't seem very obvious in Glade.

In glade, you take one radio button and set its "group" property
to another radio button (there's a dialog that will display all
other possible radio buttons in the project for the "group" property).

If you have at least 2 radio buttons in the project, then you can 
just point them to eachother with the "group" property and this
will have the same effect as using gtk_radio_button_set_group()
when parsing the glade file with libglade.

Cheers,
                   -Tristan




More information about the Glade-users mailing list