Re: [sigc] Connect signal to a signal?



On Fri, 2012-03-09 at 16:49 +0000, Rui Maciel wrote:
> Is there a way to connect a signal to another signal so that emitting 
> signal A would cause signal B to be emitted?

Try this:

typedef sigc::signal<a,b,c> signal_b_t; // typeof(signal_b)
signal_a.connect( sigc::mem_fun( signal_b, &signal_b_t::emit ) );

> 
> 
> Thanks in advance,
> Rui Maciel
> _______________________________________________
> libsigc-list mailing list
> libsigc-list gnome org
> http://mail.gnome.org/mailman/listinfo/libsigc-list




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