[gtkmm] Re: Signal Connection Errors



Ole answered my question on gnomemm - I needed to have GenkaraToolbox
inherit SigC::Object

Thanks, Ole!

On Mon, Mar 10, 2003 at 10:36:05AM -0800, C.J. Collier wrote:
> Hey All,
> 
> I'm having some problems with signal connection.  I've asked on #C++,
> and they seem to think my code should work.  Would someone be so kind
> as to help me debug this?
> 
> Code Attached.  Compile error below.
> 
> Thanks for the help,
> 
> C.J.
> 
> Compile error:
> ---
> 
> In file included from /usr/include/sigc++-1.2/sigc++/object_slot.h:63:
> /usr/include/sigc++-1.2/sigc++/object_slot.h: In constructor 
>    `SigC::ObjectSlotNode::ObjectSlotNode(void (*)(void*), T*, void*, T2) [with 
>    T = GenkaraToolbar, T2 = void (GenkaraToolbar::*)()]':
> /usr/include/sigc++-1.2/sigc++/slot.h:211:   instantiated from `SigC::Slot0<R>::Slot0(SigC::SlotNode*) [with R = void]'
> /usr/include/sigc++-1.2/sigc++/object_slot.h:63:   instantiated from `SigC::Slot0<R> SigC::slot(O1&, R (O2::*)()) [with R = void, O1 = GenkaraToolbar, O2 = GenkaraToolbar]'
> toolbar.cc:37:   instantiated from here
> /usr/include/sigc++-1.2/sigc++/object_slot.h:35: no matching function for call 
>    to `SigC::ObjectSlotNode::init(GenkaraToolbar*&, void*&, void 
>    (SigC::Object::*&)())'
> /usr/include/sigc++-1.2/sigc++/object_slot.h:36: candidates are: void 
>    SigC::ObjectSlotNode::init(SigC::Object*, void*, void (SigC::Object::*)())
> 
> 
> 






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