Re: gtk-tree-model-filter-set-visible-func problem

Andy Wingo <[email protected]>
Newsgroups gmane.lisp.guile.gtk
Message-ID <[email protected]>
Hi Stanislas,

On Thu, 2007-03-22 at 13:15 +0100, Stanislas Pinte wrote:
> (gtk-tree-model-filter-set-visible-func filter-model
>                     (lambda (iter)
>                       #t)
>                     #f
>                     #f)
> 
> test-tree-model-filter.scm:27:1: In procedure
> gtk-tree-model-filter-set-visible-func in expression
> (gtk-tree-model-filter-set-visible-func filter-model (lambda # #t) ...):
> test-tree-model-filter.scm:27:1: Wrong type argument in position 2:
> #<procedure #f (iter)>

Any procedure that takes a function needs a custom wrapper in
guile-gnome. You can file a patch :-)
gtk-tree-view_column_set_cell_data_func is a suitable example; see
_wrap_gtk_tree_view_column_set_cell_data_func in
gtk/gnome/gw/gtk-support.[ch], and the set_cell_data_func form in
gtk/gnome/overrides/gtk.defs.

Regards,

Andy.
-- 
http://wingolog.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.