[glade--]Re: [gtkmm] Problems with using glade generated code

Christof Petig <[email protected]>
Newsgroups gmane.comp.gnome.glademm
Organization Adolf Petig GmbH & Co. KG
Message-ID <[email protected]>
Ken Miller schrieb:

>>If the widgets had been marked as accessible (=non private) the pointers
>>would be class members ;-)  -> glade: visibility!
>>
> I'm sorry but that really didn't make much sense to me.  Glade does not make
> widgets class members of anything, so how would I access them in a callback
> function?

If the widget had been marked protected or public there would have been 
a member variable in window1_glade (or similar).

Try the following (attachment) and regenerate the code. There should now 
really be a member variable.

     Christof

PS: Private widgets usually only need a local variable inside the ctor 
(which makes the classes smaller and more readable)
protected.png (image/png, 2.5 KB) - not displayed
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.