Re: Problem With Gtk::CellLayout and Gtk::TreeModel



On Sun, 2010-05-23 at 13:27 -0400, Jim Orcheson wrote:
> 2. If I change the problem line to:
>         sigc::slot<void, Gtk::TreeIter> s = 
> sigc::ptr_fun(&FontSelector::set_family);
>         set_cell_data_func(renderer, s);
> then I get the following compiler error on the first line:
> error: no matching function for call to 'ptr_fun(void 
> (FontSelector::*)(Gtk::TreeIter))' 

Your set_family() is a member function. Surely you should be using
sigc::mem_fun(). It's iter method should probably be const & too.


-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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