On Fri, 2010-10-29 at 07:02 -0400, Paul Davis wrote:
> On Fri, Oct 29, 2010 at 6:26 AM, Andrew Cowie
> <[email protected]> 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?
By the way, are there any other places where the java or C++ bindings do
"cleanup" changes like this? Some may be interesting to push into the
core now that we have the chance.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
[email protected] [email protected]
He's a suicidal alcoholic jungle king who must take medication to keep him
sane. She's a bloodthirsty belly-dancing hooker with a birthmark shaped like
Liberty's torch. They fight crime!
_______________________________________________
gtk-devel-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-devel-list