[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ERROR: Unbound variable: gtk-list-store-clear
From: |
Patrick Bernaud |
Subject: |
Re: ERROR: Unbound variable: gtk-list-store-clear |
Date: |
Mon, 15 Aug 2005 17:47:24 +0200 |
Hello,
David Pirotte writes:
> [...]
> ERROR: Unbound variable: gtk-list-store-clear
>
The reason is that gtk_list_store_clear() is actually not wrapped. The
same apply to all gtk-list-store methods (excepting the
custom-wrapped).
They are matched by line 703 of gtk/gnome/overrides/gtk.defs. I think
that the purpose of this line is to ignore the deprecated GtkList
functions but it also mess with GtkListStore ones.
To fix it, you can delete the line, but you will have to override
GtkList functions (and you have to recompile). Or you can write your
own method as a temporary fix:
(define-method (clear (model <gtk-list-store>))
(do ((iter (get-iter-first model) (get-iter-first model)))
((not iter))
(remove model iter)))
By the way, GtkList is marked as an ignored type. Wouldn't it be
better to automatically ignore methods of ignored types?
Regards,
Patrick