Re: Undefined class

David Pirotte <[email protected]> Mon, 20 Jun 2016 14:39:26 -0300
Newsgroups gmane.lisp.guile.gtk
Message-ID <20160620143926.7948931d@capac>
--===============8942755295921842844==
Content-Type: multipart/signed; micalg=pgp-sha256;
 boundary="Sig_/pX8adW2NO2Xhmq694.0jAeF"; protocol="application/pgp-signature"

--Sig_/pX8adW2NO2Xhmq694.0jAeF
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hi Tommi,

> It seems that class <gtk-radio-group> is not defined in the guile-gnome
> environment although it is used in some function declarations.

> I'm using guile-gnome-platform version 2.16.4.

	great, it is indeed the latest.

The class is called <gtk-radio-group*>, but it is a 'special' class which y=
ou can't
instantiate 'by yourself', you need to grab the radio group instantiated by=
 Gtk and
specially wrapped by Guile-GNOME so you can use it for the buttons of a sam=
e group,
here is an example:

	scheme@(guile-user)> ,use (gnome-2)
	scheme@(guile-user)> ,use (gnome gtk)
	scheme@(guile-user)> (gtk-radio-button-new #f) ;; #f means create a new gr=
oup
	$2 =3D #<<gtk-radio-button> 185a680>
	scheme@(guile-user)> (get-group $2)
	$3 =3D #<gw:wcp <gtk-radio-group*> 0x1d149b0>
	scheme@(guile-user)> (gtk-radio-button-new $3)
	$4 =3D #<<gtk-radio-button> 17bf9e0>
	scheme@(guile-user)>=20

Cheers,
David

--Sig_/pX8adW2NO2Xhmq694.0jAeF
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXaCpOAAoJEPN0/ZOjBXrXZRYIAKYw9pWvi3SIM5QYFN9NrUGs
CFxRBWQ7NERv+XqoVbfUedtO7xhpqR8r6haaKWGs0EFedKE7Arhse9s8ZmadazLJ
RUD8lT/0Q/Eefb/ck12Gu7MQbbhpbmNpPVmr0xNhPiAbJazAAsjnFfJuTsblTYF4
dSKUcJxjZdFApheQtyWyofNkRO/UvR3oNhqnSa+3YIwbX9CN+Sdodd2ul5sq0Uyb
s+Xv87zDBi/zaeErQZsVAdk/cwfgBb/G3Pz1IBkmCDqZsQh65uosJLhKiP7Jw1Zj
QKjHugcSlasDwLtvcwMFqXUp2vvkmfpqGSxLxKaiZhWNNf5B8XvIqRhGbgwFnms=
=tiFq
-----END PGP SIGNATURE-----

--Sig_/pX8adW2NO2Xhmq694.0jAeF--


--===============8942755295921842844==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
guile-gtk-general mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/guile-gtk-general

--===============8942755295921842844==--