[pygtk] Re: Pango AttrRise bug ?

2004-08-31 Thread Vitaly Ostanin
Vitaly Ostanin wrote: Hello. I found strange problem in pango layout. Attached example paint text layout (wrapped by words): "First second three". Word "three" have AttrRise and AttrWeight. Pango layout width changed when main window resized. Try to decrease width of main

[pygtk] Pango AttrRise bug ?

2004-08-31 Thread Vitaly Ostanin
Hello. I found strange problem in pango layout. Attached example paint text layout (wrapped by words): "First second three". Word "three" have AttrRise and AttrWeight. Pango layout width changed when main window resized. Try to decrease width of main window. Word "three" should be wrapped to n

[pygtk] Re: Invalid TreeIter from custom treemodel

2004-08-12 Thread Vitaly Ostanin
John Finlay wrote: Your custom model has a couple of broken methods: on_iter_n_children() and on_iter_nth_child() These do not properly handle the case where iter or parent is None. These special cases indicate the toplevel rows should be used. See: file:///usr/local/doc/pygtk2reference/class-gt

Re: [pygtk] Invalid TreeIter from custom treemodel

2004-08-11 Thread Vitaly Ostanin
John Finlay wrote: Execution of my program output on stderr: ** (pix.py:11897): CRITICAL **: file pygtktreemodel.c: line 739 (pygtk_generic_tree_model_ref_node): assertion `VALID_ITER(iter, tree_model)' failed Please, tell me, how I can get valid custom iters from XML node pointer ? pygtk-2.3.9

[pygtk] Invalid TreeIter from custom treemodel

2004-08-11 Thread Vitaly Ostanin
Hello. I write custom TreeModel, derived from gtk.GenericTreeModel. This TreeModel works with XML tree from libxml2-python. Iters values is XML node references by libxml2-python: def on_get_iter(self, path): node = self.doc.getRootElement() for i in path[1:]: if no