Re: [sigc] Connect signal to a signal?
- From: cheshirekow <cheshirekow gmail com>
- To: Rui Maciel <rui maciel gmail com>
- Cc: libsigc-list gnome org
- Subject: Re: [sigc] Connect signal to a signal?
- Date: Fri, 09 Mar 2012 12:32:17 -0500
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]