This is the mail archive of the
guile-gtk@sources.redhat.com
mailing list for the Guile project.
Bug in guile-gtk.c, procedure sgtk_build_args
- From: Michael Brickenstein <bricken at rhrk dot uni-kl dot de>
- To: "guile-gtk at sources dot redhat dot com" <guile-gtk at sources dot redhat dot com>
- Date: Tue, 19 Mar 2002 09:41:49 +0100
- Subject: Bug in guile-gtk.c, procedure sgtk_build_args
Hello!
I 've found the following bug in gnome-guile-0.20, as I noticed, that
expressions like
(gnome-canvas-item-new group 'GnomeCanvasLine 'points
(gnome-canvas-points-from-coords #(0 0 500 500)))
fail with error-message:
no such arg for type `GnomeCanvasLine': points
The problem is:
sgtk_build_args tries to find out the
if (args[i].type == GTK_TYPE_INVALID)
then error-message
But if this condition is true, this does not mean, that there is in fact an
invalid argument, I found out; this sounds really ugly.
But:
First I found out GTK_TYPE_INVALID==0
secondly I looked at
gnometypebuiltins_vars.c, as it is distributed in gnome-libs-1.4.1.4
There are many types, among them GTK_TYPE_GNOME_CANVAS_POINTS, set to 0,
which is equal to GTK_TYPE_INVALID.
I am not very experienced with gnome and gtk, but this sounds to me either to
be a bug in gnome-guile or in gnome-libs.
Yours sincerely
Michael Brickenstein