Esempio n. 1
0
        public bool IsInhibited(Gtk.ApplicationInhibitFlags flags)
        {
            bool raw_ret = gtk_application_is_inhibited(Handle, (int)flags);
            bool ret     = raw_ret;

            return(ret);
        }
Esempio n. 2
0
        public uint Inhibit(Gtk.Window window, Gtk.ApplicationInhibitFlags flags, string reason)
        {
            IntPtr native_reason = GLib.Marshaller.StringToPtrGStrdup(reason);
            uint   raw_ret       = gtk_application_inhibit(Handle, window == null ? IntPtr.Zero : window.Handle, (int)flags, native_reason);
            uint   ret           = raw_ret;

            GLib.Marshaller.Free(native_reason);
            return(ret);
        }