[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to use [gtk-object-]destroy ?
From: |
Jan Nieuwenhuizen |
Subject: |
Re: how to use [gtk-object-]destroy ? |
Date: |
Sun, 13 Jun 2004 14:07:23 +0200 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) |
Andreas Rottmann writes:
>> (define-method destroy
>> (of-object "GtkObject")
>> (c-name "gtk_object_destroy")
>> (return-type "none")
>> )
>
> (generic-function-methods ITEM)
Hmm:
(write (generic-function-methods item))
<unnamed port>: In procedure generic-function-methods in expression
(generic-function-methods item):
<unnamed port>: Wrong type argument in position 1 (expecting GENERICP):
#<<gnome-canvas-text> 40dbcd40>
(write (generic-function-methods <gnome-canvas-text>))
<unnamed port>: In procedure generic-function-methods in expression
(generic-function-methods <gnome-canvas-text>):
<unnamed port>: Wrong type argument in position 1 (expecting GENERICP):
#<<gobject-class> <gnome-canvas-text> 40db5960>
>> why is guile trying
>> #<<GENERIC> rather than using gtk-object-destroy?
>>
> 'Cause destroy is a generic, which should have gtk-object-destroy as a
> method.
... but it hasn't, because for some reason, gtk-object-destroy is not
wrapped or does not exist, is that it?
(gtk-object-destroy item)
<unnamed port>: Unbound variable: gtk-object-destroy
Jan.
--
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org