org.gnu.glib
public final class CustomEvents extends GObject
For multithreaded Gtk/Gnome applications, all gui modifications must be done from within the main loop. The methods of this class allow you to do this.
As events run on the main glib loop, only short methods should be executed in it.
Method Summary | |
---|---|
static void | addEvent(Runnable target)
Adds a new event to the queue. |
static void | addEventAndWait(Runnable target)
Adds a new event to the queue. |
static void | runEvents()
Executes the pending events. |
target.run()
will be called
in the next iteration of the glib (gtk) main loop. This method will
return immediately after adding the item to the queue.target.run()
will be called
in the next iteration of the glib (gtk) main loop. This method waits
until the method call has completed before returning.