Re: copying sigc::signals
- From: Jonathon Jongsma <jonathon quotidian org>
- To: gtkmm-list gnome org
- Subject: Re: copying sigc::signals
- Date: Fri, 05 Mar 2010 08:27:07 -0600
On Fri, 2010-03-05 at 10:07 +0100, Mark Roberts wrote:
> Dear Jonner et al
>
> > When you copy a signal, any slots that you connect to the copied signal
> > will also be triggered when you emit the original signal.
>
> If this is so, I would expect it to work the other way round as well. Does
> it? If (after the copy) I connect a slot to the original signal, will it
> be triggered when I emit the copied signal?
>
> Mark
Yes, it works both ways. All copies of a sigc::signal object share the
same slot registration table, so any changes to one will affect all
others.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]