Re: [java-gnome-hackers] Widget ref and unref
Brought to you by:
afcowie
From: Philip A. C. <pc...@td...> - 2002-08-31 13:47:07
|
Perhaps we create a static method to GObject which will return the queue. Since all java-gnome objects will use the same queue, a static call should be fine. Of course, a reference to the queue itself would have to be a static member of the class. We then create a protected method setHandle(int handle) to GObject and make the member handle private. We'd have to change all constructors to call setHandle rather than to use handle directly. We could then add the code to queue an object into GObject.setHandle() since you know that you've allocated native memory at that point. This doesn't change the fact that we have to change every constructor, but at least it's only a one line change. On Sat, 2002-08-31 at 07:40, Mark Howard wrote: > The problem I see with this is specifying the location of the > targetQueue. I can't think of any robust way to do this without > modifying the constructor of every widget. >=20 > Does anyone on the list have any ideas? > --=20 >=20 > +----------------------------------------------+ > | Mark Howard cam.ac.uk mh344@ | > | http://www.tildemh.com tildemh.com mh@ | > +----------------------------------------------+ --=20 Philip A. Chapman |