Example #1
0
 static IntPtr GetSourceObjectCallback(IntPtr async_result)
 {
     try {
         GLib.AsyncResultImplementor __obj = GLib.Object.GetObject(async_result, false) as GLib.AsyncResultImplementor;
         GLib.Object __result = __obj.SourceObject;
         return(__result == null ? IntPtr.Zero : __result.Handle);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Example #2
0
 static IntPtr GetUserDataCallback(IntPtr async_result)
 {
     try {
         GLib.AsyncResultImplementor __obj = GLib.Object.GetObject(async_result, false) as GLib.AsyncResultImplementor;
         IntPtr __result = __obj.UserData;
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }