Re: How to force emit of signal attached to built-in widget?



On Mon, 2007-12-17 at 10:33 +0100, Toralf Lund wrote:
> 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.

You might be able to do it with the C API. It's not generally a good
idea. If you want your signal handler to be called then it's generally
best to just call your signal handler.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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