RE: [java-gnome-hackers] Debugging Native code
Brought to you by:
afcowie
From: Jeffrey M. <Jef...@Br...> - 2002-09-03 14:21:48
|
You can overload the constructor and make it private. -Jeff > I agree that it is a bad thing for About to not inherit from Dialog. > Again, my concern is that an unecessary (from About's point > of view, not > unecessary for Dialog). I'll look into this further to see if there's > another solution. > > I never ment the change to be perminant. I did it while trying to get > things to work, and wrote to you about it so you'd know what I was > thinking. I'll change the inheritance back if you haven't already. > > On Tue, 2002-09-03 at 08:44, Jeffrey Morgan wrote: > > It is very important that we maintain the same > > object hierarchy that exists in the native libs. > > If we don't, calls on parent methods will fail. > > About must inherit from Dialog. > > > > -Jeff > > > > > Since About extended Dialog, Dialog's empty parameter > constructor was > > > run. This constructor makes a native call which allocates > > > memory for a > > > gtk dialog which is never used. Maybe we don't care since it > > > should be > > > cleaned up in the finalize event? I changed About so > that it extends > > > Window, but am not sure that this the *correct* answer. > -- > Philip A. Chapman > |