RE: How to force emit of signal attached to built-in widget?
- From: "JJ Harrison" <noodle_snacks yahoo com au>
- To: "'Toralf Lund'" <toralf procaptura com>, "'Gtk-- Mailing List'" <gtkmm-list gnome org>
- Subject: RE: How to force emit of signal attached to built-in widget?
- Date: Mon, 17 Dec 2007 21:06:37 +1100
>From: gtkmm-list-bounces gnome org [mailto:gtkmm-list-bounces gnome org] On
Behalf Of Toralf Lund
>Sent: Monday, 17 December 2007 8:34 PM
>To: Gtk-- Mailing List
>Subject: How to force emit of signal attached to built-in widget?
>
>Is there any way I cat force an "emit" on the signals of the normal
>Gtkmm widgets? I mean the signals returned via the signal_<something>()
>methods? I want to be able to do something like
>
>myButtonWidget.signal_clicked().emit()
>
>(but with other signals, too), only I can't, because the "signal" method
>returns a Glib SignalProxy (and not a SigC signal), which doesn't have
>an emit(), as far as I can tell.
>
>- Toralf
Why not just connect another signal to the callback function and call emit
on it?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]