[Java-gnome-developer] [ java-gnome-Bugs-823976 ] CustomEvents initialization
Brought to you by:
afcowie
From: SourceForge.net <no...@so...> - 2003-10-15 08:52:33
|
Bugs item #823976, was opened at 2003-10-15 11:52 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101522&aid=823976&group_id=1522 Category: other Group: defect Status: Open Resolution: None Priority: 5 Submitted By: Jonas Berlin (xkr47) Assigned to: Nobody/Anonymous (nobody) Summary: CustomEvents initialization Initial Comment: If the CustomWidgets event handler is not activated before Gtk. main(), then it gets activated only after some other event arrives. Thus, if your program starts adding CustomEvents to the queue before clicking even one button, then the events aren't handled until some other event gets processed. The quick-hack solution is to put CustomEvents.addEvent(new Runnable() { public void run() { }}); before Gtk.main() but a better solution would be to either a) always initialize the CustomEvents component before Gtk.main(), automatically, without user internvention, or b) require the user to call some method, for example CustomEvents. initialize() before Gtk.main(). Case a) could probably be implemented as a part of the java and/or native code of Gtk.main(). Or then maybe Gtk.init(). What do you think? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101522&aid=823976&group_id=1522 |