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



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)

PNG image



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