[Glade-users] radiobuttons




Thanks for the information about the radiobutton groups. I have the
following:

4 x RB

I'm pointing them to eachother in many different configurations. However the
only configuration I seem to be able to get to work results in this error:

Gtk-CRITICAL **: gtk_radio_button_set_group: assertion `!g_slist_find
(group, radio_button)' failed

This really is a high quality app but is there a more intuative way for
radiobutton grouping to be performed in glade?




Tristan Van Berkom wrote:

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


_______________________________________________
Glade-users maillist  -  Glade-users at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-users



-- 
View this message in context: http://www.nabble.com/radiobuttons-tf3751992.html#a10639326
Sent from the Gnome - Glade - User mailing list archive at Nabble.com.





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