Re: Add GtkRadioGroup?



On Fri, Oct 29, 2010 at 6:26 AM, Andrew Cowie
<andrew operationaldynamics com> wrote:

> We came up with that solution for the Java bindings (because GSList, as
> such, wasn't something we exposed, and we go for strongly  typed 'n all
> that) and meanwhile Vreixo found that the Radio* API was very tricky to
> explain to people
> http://java-gnome.sourceforge.net/4.0/doc/api/org/gnome/gtk/RadioGroup.html
>
> so for example,
>
>        group = new RadioGroup();
>
>        opt1 = new RadioButton(group, "Kermit");
>        opt2 = new RadioButton(group, "Animal");
>        opt3 = new RadioButton(group, "Gonzo");
>        opt4 = new RadioButton(group, "Fozzie");

the API in gtkmm (C++ bindings) is very similar except that the
lifetime scope of "group" doesn't need to extend past the creation of
the RadioButtons. the RadioGroup has no real semantics or methods
other than to collect a set of RadioButtons into the same "group" as
they are created. does the java one add other functionality to the
RadioGroup?


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