Re: Add GtkRadioGroup?
- From: Alexander Larsson <alexl redhat com>
- To: Paul Davis <paul linuxaudiosystems com>
- Cc: gtk-devel-list gnome org, Andrew Cowie <andrew operationaldynamics com>
- Subject: Re: Add GtkRadioGroup?
- Date: Sun, 31 Oct 2010 11:28:05 +0100
On Fri, 2010-10-29 at 07:02 -0400, Paul Davis wrote:
> 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?
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
alexl redhat com alexander larsson gmail com
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!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]