[Glade-users] How to get the object that generated the signal?



I am new to Glade, GTKMM, GTK+, etc...

I ran glade and create a windows with some labels, text entry objects
and buttons. I also created signals for the buttons and text entry
widgets. I told glade to generate C++ code. To my suprise the names that
I game my widgets in glade were used in the constructor for the main
window but they were not defined in the class itself. Seems like a
waste. The signal handlers for widgets are part of the top level window
but they do not get any information about which object it is handling
the signal for and since the parent _glade class does not have the names
defined in the _glade class, how do you get the object that generated
the signal?

Thx





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