Exemplo n.º 1
0
 static void BeginNotUndoableAction_cb(IntPtr inst)
 {
     try {
         IUndoManagerImplementor __obj = GLib.Object.GetObject(inst, false) as IUndoManagerImplementor;
         __obj.BeginNotUndoableAction();
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
Exemplo n.º 2
0
 public UndoManagerAdapter(IUndoManagerImplementor 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;
 }
Exemplo n.º 3
0
 static bool CanRedo_cb(IntPtr inst)
 {
     try {
         IUndoManagerImplementor __obj = GLib.Object.GetObject(inst, false) as IUndoManagerImplementor;
         bool __result;
         __result = __obj.CanRedo();
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }