Re: [gtk-list] radio buttons in GTK--



Max Watson <redline@pdq.net> writes:
> Can someone tell me the correct way to set a group of radio buttons in
> gtk--. I can not seem to figure it out. Any help is appreciated.

Check glib.h and from there g_slist_alloc() etc functions.

GSList *l=g_slist_alloc();
Gtk_RadioButton b1(l,"foo"),
		b2(l,"foo1"),
		b3(l,"foo2");

I.e. just give one GSList instance to constructor argument of the
Gtk_RadioButton.

-- 
-- Tero Pulkkinen -- terop@modeemi.cs.tut.fi --



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