Beispiel #1
0
 public TreeDragSourceAdapter(ITreeDragSourceImplementor 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;
 }
Beispiel #2
0
 static bool DragDataDelete_cb(IntPtr inst, IntPtr path)
 {
     try {
         ITreeDragSourceImplementor __obj = GLib.Object.GetObject(inst, false) as ITreeDragSourceImplementor;
         bool __result;
         __result = __obj.DragDataDelete(path == IntPtr.Zero ? null : (Gtk.TreePath)GLib.Opaque.GetOpaque(path, typeof(Gtk.TreePath), false));
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
		public TreeDragSourceAdapter (ITreeDragSourceImplementor 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;
		}