Re: [gtkmm] Problems with TreeModelFilter



On Fri, 2004-10-22 at 12:30 +0200, Murray Cumming wrote:
> On Tue, 2004-10-12 at 22:23 +0200, Murray Cumming wrote:
> [snip]
> > > glibmm-WARNING **: Glib::ConstructParams::ConstructParams(): object
> > > class `gtkmm__GtkTreeModelFilter' has no property named `root'
> > 
> > Ah, I guess you are the first to test this.
> > 
> > The Gtk::TreeModelFilter constructor needs to do the same as
> > gtk_tree_model_filter_new(). Normally those _new() functions should just
> > pass the parameters to g_object_new(), but this one does some extra stuff
> > that we can't do from outide.
> 
> I was wrong about that. This should be fixed in the next gtkmm 2.4.x
> release, and in cvs in the next few minutes.
> 
> Maybe you could make an example for us? I suggest copying one of the
> existing examples/book/treeview examples and modifying it to use
> TreeModelFilter.
> 

Well I quickly copy&pasted the treeview example and created this:
http://2ndpoint.fi/tume/test.cpp

Didn't know what was the right way to attach it so I just put it on the
net.

And I don't know how helpful this is because I don't know how that
TreeModelFilter should be used and I "guessed" it would be something
like that. The source does compile but gives errors and segfaults when
ran at least with my gtkmm-2.4.5. 

I also tried using those gtk functions with Glib::Wrap() and I got it
working expect I didn't find any way to pass data to those functions
( visible_func or modify_func) and I had to declare them as static so I
couldn't access the class members either...






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]