RE: [gtkmm] Where to place signals...



> Where's the best place to put the signal handlers?

Do you mean "Where's the best place to connect signal handlers?"?

> in the 
> constructor of the widget's class??

Yes, I prefer to _connect_ signal handlers in constructors. Where you
declare and implement the signal handlers is another question. My personal
preferences can be seen in examples/book/

> after the main loop?? or 
> in the main window class?? 

Murray Cumming
murrayc usa net
www.murrayc.com 



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