public bool IsInhibited(Gtk.ApplicationInhibitFlags flags) { bool raw_ret = gtk_application_is_inhibited(Handle, (int)flags); bool ret = raw_ret; return(ret); }
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); }