summaryrefslogtreecommitdiff
path: root/core/vapi/AstalInhibitManager.vapi
diff options
context:
space:
mode:
authorkotontrion <[email protected]>2024-09-24 10:47:14 +0200
committerkotontrion <[email protected]>2024-09-24 10:47:14 +0200
commit122112c320e62e52b3f0acc5d03c445c44bd8c4c (patch)
tree5fd80f779b938e767595f5ad37ecf87e7799a717 /core/vapi/AstalInhibitManager.vapi
parentba7d92df104f374a3796c0c95f3a9cda04976f6a (diff)
core: add window inhibit property
Diffstat (limited to 'core/vapi/AstalInhibitManager.vapi')
-rw-r--r--core/vapi/AstalInhibitManager.vapi13
1 files changed, 13 insertions, 0 deletions
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 {
+ }
+
+}