Re: forwarding a signal
- From: "Murray Cumming" <murrayc murrayc com>
- To: picca synchrotron-soleil fr
- Cc: gtkmm-list gnome org
- Subject: Re: forwarding a signal
- Date: Wed, 2 Aug 2006 13:23:46 +0200 (CEST)
> On Wed, 2 Aug 2006 12:37:18 +0200 (CEST)
> "Murray Cumming" <murrayc murrayc com> wrote:
>
>> I do this by defining a new signal and then emitting that signal, in
>> response to the first signal.
>>
>> I would like some generic signal delegation/forward technique, for use
>> with a deep parent-child hierarchy of widgets, but I haven't thought of
>> one yet.
>
> How can I do that ?
>
> I tried to add a
>
> public:
> Glib::SignalProxy0<void> signal_value_changed(void);
> to my class an a:
>
> protected:
> virtual void on_signal_changed(void);
>
> But I do not know how to implement all this.
This appendix in the gtkmm book explains how to do it so that it's similar
to a gtkmm signal:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/apc.html
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]