Re: Popup menu selections
- From: Murray Cumming <murrayc murrayc com>
- To: Bob Huston <rhuston mitre org>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Popup menu selections
- Date: Fri, 03 Jun 2005 08:33:46 +0200
On Tue, 2005-05-31 at 15:52 -0400, Bob Huston wrote:
> I tried to have the call back for the menu item be a method of the
> "pDropIn" class, but the compiler was not happy
I guess that pDropIn is a pointer to an instance, not a class, so,
> with anything like: SigC::slot(*this, pDropIn->PopUPCallback() )
SigC::slot(*pDropIn, &YourDropIn::PopUPCallback);
is more likely to work.
You might also investigate SigC::bind(). And it's generally best to use
the newer 2.4/2.6 API.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]