public void Insert(string prefix, GLib.IActionGroup action_group) { IntPtr native_prefix = GLib.Marshaller.StringToPtrGStrdup(prefix); gtk_action_muxer_insert(Handle, native_prefix, action_group == null ? IntPtr.Zero : ((action_group is GLib.Object) ? (action_group as GLib.Object).Handle : (action_group as GLib.ActionGroupAdapter).Handle)); GLib.Marshaller.Free(native_prefix); }
public GLib.IActionGroup Lookup(string prefix) { IntPtr native_prefix = GLib.Marshaller.StringToPtrGStrdup(prefix); IntPtr raw_ret = gtk_action_muxer_lookup(Handle, native_prefix); GLib.IActionGroup ret = GLib.ActionGroupAdapter.GetObject(raw_ret, false); GLib.Marshaller.Free(native_prefix); return(ret); }
public unsafe uint ExportActionGroup(string object_path, GLib.IActionGroup action_group) { IntPtr native_object_path = GLib.Marshaller.StringToPtrGStrdup(object_path); IntPtr error = IntPtr.Zero; uint raw_ret = g_dbus_connection_export_action_group(Handle, native_object_path, action_group == null ? IntPtr.Zero : ((action_group is GLib.Object) ? (action_group as GLib.Object).Handle : (action_group as GLib.ActionGroupAdapter).Handle), out error); uint ret = raw_ret; GLib.Marshaller.Free(native_object_path); if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }
public PadController(Gtk.Window window, GLib.IActionGroup group, Gdk.Device pad) : base(IntPtr.Zero) { if (GetType() != typeof(PadController)) { var vals = new List <GLib.Value> (); var names = new List <string> (); if (window != null) { names.Add("pad"); vals.Add(new GLib.Value(pad)); } CreateNativeObject(names.ToArray(), vals.ToArray()); return; } Raw = gtk_pad_controller_new(window == null ? IntPtr.Zero : window.Handle, group == null ? IntPtr.Zero : ((group is GLib.Object) ? (group as GLib.Object).Handle : (group as GLib.ActionGroupAdapter).Handle), pad == null ? IntPtr.Zero : pad.Handle); }