static void ActivateAction_cb(IntPtr inst, IntPtr action_name, IntPtr parameter) { try { IActionGroupImplementor __obj = GLib.Object.GetObject(inst, false) as IActionGroupImplementor; __obj.ActivateAction(GLib.Marshaller.Utf8PtrToString(action_name), new GLib.Variant(parameter)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
public ActionGroupAdapter(IActionGroupImplementor 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 GetActionParameterType_cb(IntPtr inst, IntPtr action_name) { try { IActionGroupImplementor __obj = GLib.Object.GetObject(inst, false) as IActionGroupImplementor; GLib.VariantType __result; __result = __obj.GetActionParameterType(GLib.Marshaller.Utf8PtrToString(action_name)); return(__result == null ? IntPtr.Zero : __result.Handle); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static bool GetActionEnabled_cb(IntPtr inst, IntPtr action_name) { try { IActionGroupImplementor __obj = GLib.Object.GetObject(inst, false) as IActionGroupImplementor; bool __result; __result = __obj.GetActionEnabled(GLib.Marshaller.Utf8PtrToString(action_name)); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static IntPtr ListActions_cb(IntPtr inst) { try { IActionGroupImplementor __obj = GLib.Object.GetObject(inst, false) as IActionGroupImplementor; string __result; __result = __obj.ListActions(); return(GLib.Marshaller.StringToPtrGStrdup(__result)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static bool QueryAction_cb(IntPtr inst, IntPtr action_name, out bool enabled, IntPtr parameter_type, IntPtr state_type, IntPtr state_hint, IntPtr state) { try { IActionGroupImplementor __obj = GLib.Object.GetObject(inst, false) as IActionGroupImplementor; bool __result; __result = __obj.QueryAction(GLib.Marshaller.Utf8PtrToString(action_name), out enabled, new GLib.VariantType(parameter_type), new GLib.VariantType(state_type), new GLib.Variant(state_hint), new GLib.Variant(state)); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
public ActionGroupAdapter (IActionGroupImplementor 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; }