Re: [gtkmm] Function pointers question (gtkmm related)



On Sunday 18 January 2004 1:36 pm, Drinkin Park wrote:

[snip]

> MyToolbar::MyToolbar() {
>   ...
>   push_back(StockElem(Gtk::Stock::NEW,
>     SigC::slot(*this, &OtherClass::newButtonClicked),  "New"));
                 ^^^^^^

You are not passing the right object to the slot.  You need to pass an object 
of type OtherClass.

Chris.





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