Esempio n. 1
0
		public AsyncResultAdapter (IAsyncResultImplementor implementor)
		{
			if (implementor == null)
				throw new ArgumentNullException ("implementor");
			else if (!(implementor is GLib.Object))
				throw new ArgumentException ("implementor must be a subclass of GLib.Object");
			this.implementor = implementor as GLib.Object;
		}
Esempio n. 2
0
 public AsyncResultAdapter(IAsyncResultImplementor implementor)
 {
     if (implementor == null)
     {
         throw new ArgumentNullException("implementor");
     }
     else if (!(implementor is GLib.Object))
     {
         throw new ArgumentException("implementor must be a subclass of GLib.Object");
     }
     this.implementor = implementor as GLib.Object;
 }
Esempio n. 3
0
 static bool IsTagged_cb(IntPtr inst, IntPtr source_tag)
 {
     try {
         IAsyncResultImplementor __obj = GLib.Object.GetObject(inst, false) as IAsyncResultImplementor;
         bool __result;
         __result = __obj.IsTagged(source_tag);
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Esempio n. 4
0
 static IntPtr GetSourceObject_cb(IntPtr inst)
 {
     try {
         IAsyncResultImplementor __obj = GLib.Object.GetObject(inst, false) as IAsyncResultImplementor;
         GLib.Object             __result;
         __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;
     }
 }
Esempio n. 5
0
 static IntPtr GetUserData_cb(IntPtr inst)
 {
     try {
         IAsyncResultImplementor __obj = GLib.Object.GetObject(inst, false) as IAsyncResultImplementor;
         IntPtr __result;
         __result = __obj.UserData;
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }