Re: [Java-gnome-developer] broken link
Brought to you by:
afcowie
From: Andrew C. <an...@op...> - 2005-01-11 00:05:12
|
On Mon, 2005-10-01 at 21:05 +0000, Phil Rendell wrote: > In the same way=20 > |org.gnu.glib.CustomEvents.addEvent(Runnable r)| should be used when=20 > modifying the GUI in Gtk/Gnome applications. That's right. You do need to use CustomEvents.addEvent() I tested using it in the demo app I wrote (I've posted here about it before - if you don't know what I'm talking about, see=20 http://research.operationaldynamics.com/ but note that link is subject to change) Frankly, I hate this usage model. It's extraordinarily annoying because you're forced to make anything you want to pass in as a parameter a field of the class as opposed to just a local variable [as local variables are out of scope when you write an anonymous inner class to implement the Runnable which is the argument to addEvent()] I'm not sure what a better approach would be, but surely in Java land someone can think of something better. AfC Sydney --=20 Andrew Frederick Cowie Helping you succeed at flawlessly executing Massive Changes and Upgrades to your Mission Critical Systems http://www.operationaldynamics.com/ Sydney New York Toronto London |