static void SetActionTargetValue_cb(IntPtr inst, IntPtr target_value) { try { IActionableImplementor __obj = GLib.Object.GetObject(inst, false) as IActionableImplementor; __obj.ActionTargetValue = new GLib.Variant(target_value); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
static void SetActionName_cb(IntPtr inst, IntPtr action_name) { try { IActionableImplementor __obj = GLib.Object.GetObject(inst, false) as IActionableImplementor; __obj.ActionName = GLib.Marshaller.Utf8PtrToString(action_name); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
public ActionableAdapter(IActionableImplementor 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; }
static IntPtr GetActionTargetValue_cb(IntPtr inst) { try { IActionableImplementor __obj = GLib.Object.GetObject(inst, false) as IActionableImplementor; GLib.Variant __result; __result = __obj.ActionTargetValue; return(__result == null ? IntPtr.Zero : __result.Handle); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static IntPtr GetActionName_cb(IntPtr inst) { try { IActionableImplementor __obj = GLib.Object.GetObject(inst, false) as IActionableImplementor; string __result; __result = __obj.ActionName; return(GLib.Marshaller.StringToPtrGStrdup(__result)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }