Apply the attached patch and use None as the iter. (fixed in CVS)
Cheers, Matt On Thu, Dec 06, 2001 at 09:53:55AM -0500, Robert Nikander wrote: > On 2001.12.05 21:09 James Henstridge wrote: > > > iter = model.get_iter(1, 6) > > > > > Ah. I was confused about tuples/paths vs iterators. > Thanks a ton to both Matt and James for answering all my questions. > > How about getting the number of children in the list? > > According to GTK docs it is model.iter_n_childen( NULL ) > ... but how to get a PyObject Iterator that is wrapped around NULL? > > > I appreciate the help, thanks, > > Rob > _______________________________________________ > pygtk mailing list [EMAIL PROTECTED] > http://www.daa.com.au/mailman/listinfo/pygtk
Index: gtk/gtk.defs =================================================================== RCS file: /cvs/gnome/gnome-python/pygtk/gtk/gtk.defs,v retrieving revision 1.83 diff -u -r1.83 gtk.defs --- gtk/gtk.defs 2001/12/04 07:17:42 1.83 +++ gtk/gtk.defs 2001/12/06 17:20:53 @@ -12704,7 +12704,7 @@ (c-name "gtk_tree_model_iter_n_children") (return-type "gint") (parameters - '("GtkTreeIter*" "iter") + '("GtkTreeIter*" "iter" (null-ok)) ) ) @@ -12714,7 +12714,7 @@ (return-type "gboolean") (parameters '("GtkTreeIter*" "iter") - '("GtkTreeIter*" "parent") + '("GtkTreeIter*" "parent" (null-ok)) '("gint" "n") ) )