John,

Thanks for the help.

Don

On Mon, 2004-04-26 at 02:47, John Finlay wrote:
> Don Allingham wrote:
> 
> > The problem is that filter_new() requires a parameter, and will not take
> >
> >None.
> >
> >self.sort_model = gtk.TreeModelSort(self.person_model).filter_new()
> >TypeError: GtkTreeModel.filter_new() takes exactly 1 argument (0 given)
> >
> >self.sort_model = gtk.TreeModelSort(self.person_model).filter_new(None)
> >TypeError: could not convert root to a GtkTreePath
> >
> >  
> >
> Update to the CVS version to fix this or apply this patch and rebuild, etc.:
> 
> --- gtk/gtk.defs    18 Apr 2004 05:53:26 -0000    1.167
> +++ gtk/gtk.defs    18 Apr 2004 07:40:52 -0000    1.168
> @@ -17156,7 +17156,7 @@
>    (c-name "gtk_tree_model_filter_new")
>    (return-type "GtkTreeModel*")
>    (parameters
> -    '("GtkTreePath*" "root")
> +    '("GtkTreePath*" "root" (null-ok) (default "NULL"))
>    )
>  )
>  
> 
> John
> 
-- 
Don Allingham <[EMAIL PROTECTED]>
GRAMPS - Open Source Genealogy

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to