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

Christof Petig <[email protected]>
Newsgroups gmane.comp.gnome.glademm
Organization Adolf Petig GmbH & Co. KG
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.