Re: using member functions as callback for Gtk::TreeModelFilter



On Fri, 2009-02-06 at 01:28 -0800, danielrichter wrote:
> Hello,
> 
> I'm creating a little program with a filtered listStore and a combobox to
> choose the filter.
> 
> I have found the Gtk::TreeModelFilter, which allows exactly what I need. In
> this time I use a static callback function for sorting. The problem is, that
> I need data, which are stored on my List object, which is derived from a
> ListView. To access the data, I have to assign a member function, but I
> don't know how I can do that.

sigc::mem_func() ?

> What can I give a member function to set_visible_func()?
> 
> At the moment I use a workaround, which assigns a pointer to the object as
> static member to the class, but this doesn't seem to be a clear solution.
> 
> Hope anyone can help me.
-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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