From: Axel S. <Axe...@in...> - 2012-12-20 06:57:35
|
On 20.12.2012, at 04:07, José Romildo Malaquias wrote: > Hello. > > When inserting the first row into a tree model where this model is > associated with a sorted model of a tree view, I am getting a gtk+ > critical error: > > Gtk-CRITICAL **: IA__gtk_tree_model_get_iter: assertion `path- > >depth > 0' failed > > The row is being inserted with the the action: > > treeStoreInsert rawmodel [] counter ("="++ show counter, counter) > I think you need to use [0] and we need some documentation for this. See: http://developer.gnome.org/gtk3/stable/GtkTreeModel.html#gtk-tree-path-new-first I didn't add this function back then since writing [0] is so much easier. Cheers, Axel > where counter is an integer number. It is 0 for the first insertion. > > Is this a known bug? Or am I doing something wrong? > > The test program is attached. > > Romildo > < > TreeTest1 > .hs > > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add > services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d_______________________________________________ > Gtk2hs-users mailing list > Gtk...@li... > https://lists.sourceforge.net/lists/listinfo/gtk2hs-users |