Re: [glade--]How to get hold of the widgets



Peter F Bradshaw wrote:
Hi;

I'm new to Gtk, glade and glademm so I'm sure this question has been
answered many times before.

My question is how do I get hold of the widgets that glademm creates.

For instance, if I have a top level window called MainWindow then
glademm creates a base class called MainWindow_glade. In the ctor of
this class the widgets are created and pointed to by local pointers. How
do I access these widgets in MainWindow (or else where).

most frequently asked question: mark its visibility as protected (or even public) instead of private.

See the glademm user's guide. Any idea on where to put this information more prominently? (perhaps a comment at the start of the window1_glade.cc file?)

   Christof





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