Esempio n. 1
0
        public GLib.IAction LookupAction(string action_name)
        {
            IntPtr native_action_name = GLib.Marshaller.StringToPtrGStrdup(action_name);
            IntPtr raw_ret            = g_action_map_lookup_action(Handle, native_action_name);

            GLib.IAction ret = GLib.ActionAdapter.GetObject(raw_ret, false);
            GLib.Marshaller.Free(native_action_name);
            return(ret);
        }
Esempio n. 2
0
        public GLib.IAction CreateAction(string key)
        {
            IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup(key);
            IntPtr raw_ret    = g_settings_create_action(Handle, native_key);

            GLib.IAction ret = GLib.ActionAdapter.GetObject(raw_ret, false);
            GLib.Marshaller.Free(native_key);
            return(ret);
        }
Esempio n. 3
0
 public void AddAction(GLib.IAction action)
 {
     g_action_map_add_action(Handle, action == null ? IntPtr.Zero : ((action is GLib.Object) ? (action as GLib.Object).Handle : (action as GLib.ActionAdapter).Handle));
 }