Re: [sigc] Connect signal to a signal?



On 03/09/2012 06:00 PM, Régis Duchesne wrote:
Folks,

Fromhttp://developer.gnome.org/libsigc++/stable/classsigc_1_1signal.html  :
"If you want to connect one signal to another, use make_slot() to retrieve a functor that emits the signal when invoked."

So this can be done more nicely, with:
signal_a.connect(signal_b.make_slot());

Cheers,


I've tested your suggestion and it works flawlessly.  Nice one!

It would be nice if the tutorial-style documentation also covered signal-to-signal connections. It would be a good contribution to raise awareness of this feature.


Thanks for the help,
Rui Maciel


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