From: Axel S. <Axe...@in...> - 2010-12-15 18:12:10
|
Hi José, On Dec 15, 2010, at 13:46, José Romildo Malaquias wrote: > On Tue, Dec 14, 2010 at 06:40:55PM -0200, José Romildo Malaquias > wrote: >> Hello. >> >> I want to filter the rows to be presented to the user in a tree >> view in >> the application I am writing. > > An updated version of my demo program is attached. > > I have enabled updating the tree view model with data from the entries > in the table. > > A screenshot can be found at > http://www.iceb.ufop.br/decom/prof/romildo/misc/MyTreeViewDemo.png > > > Unfortunatly it is not working yet. When updating the model with data > from the entries, I am getting the error messages: > > ** (MyFilterDemo:16914): CRITICAL **: gtk2hs_store_get_value: > assertion > `iter->stamp == store->stamp' failed > > (MyFilterDemo:16914): GLib-GObject-CRITICAL **: g_value_get_boolean: > assertion `G_VALUE_HOLDS_BOOLEAN (value)' failed > > (MyFilterDemo:16914): GLib-GObject-CRITICAL **: g_value_unset: > assertion > `G_IS_VALUE (value)' failed > I think you might have passed the wrong model to cellLayoutSetAttributes. It needs to be passed the model that contains the data, not the FilterModel. Hope this helps, Axel > > Any help is welcome to solve this. > > Also comments on the way I am stucturing this demo are welcome. > > Romildo > < > MyFilterDemo > .hs > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d_______________________________________________ > Gtk2hs-users mailing list > Gtk...@li... > https://lists.sourceforge.net/lists/listinfo/gtk2hs-users |