I would appreciate it if the attached patch could be applied to CVS.
This is to resolve bugzilla report #125172, which involves the
TreeSortModel. The bug was incorrectly marked as a duplicate of another
bug, yet the patch for the other bug does not fix the problem, as can be
seen by the testcase supplied with #125172. 

I've reopened the bug and attached the new patch, but I haven't heard
back or seen a commit.

The symptom is that when TreeModelSort is used to create a sortable
model, the pygtk_generic_tree_model_iter_n_children function is called
with the iter parameter set to NULL.  

The attached patch will catch and handle the NULL pointer.

Please apply the patch (or a better one if one can be found). Until this
problem is fixed, the TreeModelSort is not usable.

Thanks.

Don

-- 
Don Allingham <[EMAIL PROTECTED]>
GRAMPS - Open Source Genealogy
Index: pygtk/gtk/pygtktreemodel.c
===================================================================
RCS file: /cvs/gnome/gnome-python/pygtk/gtk/pygtktreemodel.c,v
retrieving revision 1.17
diff -r1.17 pygtktreemodel.c
550d549
<     g_return_val_if_fail(iter != NULL, FALSE);
560c559
<     py_iter = (PyObject *)iter->user_data;
---
>     py_iter = (iter) ? (PyObject *)iter->user_data : NULL;
_______________________________________________
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