java-gobject-introspection r138 - trunk/src/org/gnome/gir/gobject



Author: walters
Date: Fri Nov 28 23:36:21 2008
New Revision: 138
URL: http://svn.gnome.org/viewvc/java-gobject-introspection?rev=138&view=rev

Log:
Reset srcId to 0 after async handler has fired

This makes the isDone() method of the AsyncFuture work; otherwise
we'd keep thinking the task was pending.

Modified:
   trunk/src/org/gnome/gir/gobject/MainLoop.java

Modified: trunk/src/org/gnome/gir/gobject/MainLoop.java
==============================================================================
--- trunk/src/org/gnome/gir/gobject/MainLoop.java	(original)
+++ trunk/src/org/gnome/gir/gobject/MainLoop.java	Fri Nov 28 23:36:21 2008
@@ -324,7 +324,8 @@
 				synchronized (handle) {
 					int idleId = rawInvokeLater(new Runnable() {
 						@Override
-						public void run() {	
+						public void run() {
+							handle.srcId = 0;
 							handler.handle(proxy);
 						}
 					});



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]