Odp: callbacks




I need to send a gint to a callback in addition to the widget which
emitted the signal and the user_data.  Is there anyway to do this??  Any
help would be appreciated.  Thanks a lot.  (I would usually push enter a
few times and sign my name now, but evolution crashes when I push
<enter>)

Maybe something like this?:

struct X
{
   void callback(int){}
};

...

struct X x;

int some_int;

some_signal.connect(bind(slot(&x,&X::callback),some_int));

Maciek






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