Re: [glade--] Never use g++-2.95 with glademm/gtkmm2 !!!



Murray Cumming wrote:
On Tue, 2002-11-26 at 12:22, Christof Petig wrote:

That seems like an over-reaction. There should be no problem if you use
a default constructor.


A default ctor for the base class IIRC.

And in glade generated code the base class takes care of creating/configuring/adding the widgets (which is of course done in the ctor, so that you can access them in your custom class ctor).


You mean that the glademm-generated class has no default constructor?

it has, but add() is called there. That's the problem.



A workaround would be to use an empty ctor and call an initialization method. But I don't plan to invest my time in this ugly hack (and its documentation) (it's better invested in using g++ 3.2).


Well I suggest that you accept a patch if it's important enough to
anybody.

Of course (though I would call absolutely requiring a method be called first in an user ctor an ugly hack). I love to totally ignore widget creation in user classes.

  Christof




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