From 122112c320e62e52b3f0acc5d03c445c44bd8c4c Mon Sep 17 00:00:00 2001 From: kotontrion Date: Tue, 24 Sep 2024 10:47:14 +0200 Subject: core: add window inhibit property --- core/vapi/AstalInhibitManager.vapi | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 core/vapi/AstalInhibitManager.vapi (limited to 'core/vapi') diff --git a/core/vapi/AstalInhibitManager.vapi b/core/vapi/AstalInhibitManager.vapi new file mode 100644 index 0000000..33a6304 --- /dev/null +++ b/core/vapi/AstalInhibitManager.vapi @@ -0,0 +1,13 @@ +[CCode (cprefix = "Astal", gir_namespace = "Astal", lower_case_cprefix = "astal_")] +namespace Astal { + [CCode (cheader_filename = "idle-inhibit.h", type_id = "astal_idle_inhibit_manager_get_type()")] + public class InhibitManager : GLib.Object { + public static unowned InhibitManager? get_default(); + public Inhibitor inhibit (Gtk.Window window); + } + [CCode (cheader_filename = "idle-inhibit.h", free_function = "astal_inhibitor_free")] + [Compact] + public class Inhibitor { + } + +} -- cgit v1.2.3