[Glade-users] setting a radio button group

Hi Tristan, 

Thanks for your reply.

So, just to be clear, the way glade-3 now works is as 
described here.  In olden glade, the user specified (typed in) the 
group for the first radio button and all the others in the same group.
That is not how new glade-3 works.

In glade-3, the group is set by subsequent radio buttons in the group
attaching themselves (somehow) to the first radio button in the group.


Yes, as you predict, test-libglade makes the new radiobuttons 
work properly.



On Thu, Nov 01, 2007 at 02:53:21PM -0200, Tristan Van Berkom wrote:
On 11/1/07, Paul Emsley <emsley at ysbl.york.ac.uk> wrote:


I am having trouble setting the group of a radio button.
When I add a the first radio button, the group field is
not editable.

When I add the second radio button I then use "..." to select
the (group of?) the first radio button.

Now radiobutton2 has a group but radiobutton1 does not.

I save.

I restart.

I get the message:
(glade-3:13776): Gtk-CRITICAL **: gtk_radio_menu_item_get_group: assertion
`GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed

So I'm doing something wrong.  It is not clear to me how
to do this correctly.

Advice appreciated.

(Using latest stable glade)

That warning message has been fixed in a recent patch, it shouldnt
be affecting the resulting glade file though (sounds like you have a
radio group that should work).

to make a real test, just run the ./test-libglade program that comes
with the libglade tarball, the radio buttons with your setup should be
working well.


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