Re: Simple menu example - append throws error

David Pirotte <[email protected]> Sun, 21 Aug 2016 22:32:44 -0300
Newsgroups gmane.lisp.guile.gtk
Message-ID <20160821223244.7013d409@capac>
--===============9053530721501243502==
Content-Type: multipart/signed; micalg=pgp-sha256;
 boundary="Sig_/xQb_tDrNTVow3WPripKzxEK"; protocol="application/pgp-signature"

--Sig_/xQb_tDrNTVow3WPripKzxEK
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hi Patricio,

> ...
> ERROR: In procedure append:
> ERROR: In procedure append: Wrong type argument in position 1 (expecting =
empty
> list): #<<gtk-menu> 9049940>

> The second append line fails with the same error above.  Replacing
> both lines with gtk-menu-shell-append solves the issue and the demo runs =
fine:

>     (gtk-menu-shell-append filemenu quit)
>     ;(append filemenu quit)
>     (gtk-menu-shell-append menubar file)
>     ;(append menubar file)

Yes, indeed, I'm sorry about this, but you'll have to use the 'long names' =
for know.
Although the append method is properly defined for a GtkMenuShell and its c=
hild,
see:

	http://git.savannah.gnu.org/cgit/guile-gnome.git/tree/defs/gnome/defs/gtk.=
defs#n11977

and not being overridden anywhere, AFAICT, it does not make its way to the =
user :)

> ...
> ii  guile-cairo-dev     1.4.0-3.1    ...

This an almost 10y old version :). Not your fault of course, but I strongly
recommend you to purge this version ('aptitude purge' or 'apt-get purge') a=
nd
install using this tarball instead (an official release is on its way, but =
I've no
idea when, so better grab this version now :)):


	http://download.savannah.gnu.org/releases/grip/guile-cairo/
		guile-cairo-1.10.0.tar.gz
	=09

https://www.gnu.org/software/guile-gnome/


 	http://download.savannah.gnu.org/releases/grip/guile-cairo/
 		guile-cairo-1.10.0.tar.gz
 		guile-cairo-1.10.0.tar.gz.sig [1]

 	[ Downloads will redirect to your nearest mirror site.
 	[ Files on mirrors may be subject to a replication delay of up to 24 hour=
s.
 	[ In case of problems use
 	[   http://download-mirror.savannah.gnu.org/releases/

	gpg --verify guile-cairo-1.10.0.tar.gz.sig
	tar zxf  guile-cairo-1.10.0.tar.gz
	cd guile-cairo-1.10.0
	./configure [--prefix=3D/your/prefix]
	make
	make check
	make install

	[ please report any problem here

> ...
> ii  guile-gnome2-dev    2.16.2-2     ...
> ii  guile-gnome2-glib   2.16.2-2     ...
> ii  guile-gnome2-gtk    2.16.2-2     ...

Dito, I recommend to purge all guile-gnome-* packages and install using the=
 latest
stable release:

	https://www.gnu.org/software/guile-gnome/download.html

	Except for guile-cairo which you should install as described above,
	carefully read the instructions and you will be fine!

	[ please report any problem here

Cheers,
David

[1]

Use a .sig file to verify that the corresponding file (without the .sig suf=
fix) is
intact.  First, be sure to download both the .sig file and the corresponding
tarball.  Then, run a command like this:

        gpg --verify guile-cairo-1.10.0.tar.gz.sig

If that command fails because you don't have the required public key, then =
run this
command to import it:

        gpg --keyserver keys.gnupg.net --recv-keys A3057AD7

--Sig_/xQb_tDrNTVow3WPripKzxEK
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

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

iQEcBAEBCAAGBQJXulY8AAoJEPN0/ZOjBXrXtlAH/A10uHayl7njTKgK2yuy4FV7
59S2pPqpqAnjgYp4DOU5Kbj5kav8FfOr4EFcHJ0EK/mcn8O2qrJXpFMcF0rXb0w3
AJy6gU5PSAMuehugrbQGF4D2i8YsT9cjSqoRIC2jhvi6dID68OYbPL/rq/735Dti
Azi4csfsH/i6HIZmVjKNWoWm/W3jpAcOf9MDeqgdgb7BceCYvOj1NhG+eJXGz3YK
JQ/vntdetBbytE0aQ1e826a+jprRwugBPkVhtdRSh6dXxm9Dpp+3He415t28vYMM
Z4LBVkjzLYrgFs36MFCsH0G2nIVO2C6+Vse241//iM8aX70KggJxnMq4MXzXGGo=
=BET9
-----END PGP SIGNATURE-----

--Sig_/xQb_tDrNTVow3WPripKzxEK--


--===============9053530721501243502==
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

--===============9053530721501243502==--