diff options
author | kotontrion <[email protected]> | 2024-09-24 11:02:45 +0200 |
---|---|---|
committer | kotontrion <[email protected]> | 2024-09-24 11:02:45 +0200 |
commit | 0922ff6a5bec16bea77923576e4ab241fcf23de0 (patch) | |
tree | bd5e33ff040b0e8181e3e919f973a3f7aeda7f13 /core | |
parent | 122112c320e62e52b3f0acc5d03c445c44bd8c4c (diff) |
core: inhibitor remove debug statement
Diffstat (limited to 'core')
-rw-r--r-- | core/src/idle-inhibit.c | 6 | ||||
-rw-r--r-- | core/src/idle-inhibit.h | 1 | ||||
-rw-r--r-- | core/vapi/AstalInhibitManager.vapi | 2 |
3 files changed, 1 insertions, 8 deletions
diff --git a/core/src/idle-inhibit.c b/core/src/idle-inhibit.c index b08efd7..95eaa45 100644 --- a/core/src/idle-inhibit.c +++ b/core/src/idle-inhibit.c @@ -25,12 +25,6 @@ typedef struct { G_DEFINE_TYPE_WITH_PRIVATE(AstalInhibitManager, astal_inhibit_manager, G_TYPE_OBJECT) -void astal_inhibitor_free(AstalInhibitor* inhibitor) { - g_print("free inhibitor\n"); - g_assert_nonnull(inhibitor); - zwp_idle_inhibitor_v1_destroy(inhibitor); -} - AstalInhibitor* astal_inhibit_manager_inhibit(AstalInhibitManager *self, GtkWindow *window) { AstalInhibitManagerPrivate* priv = astal_inhibit_manager_get_instance_private(self); g_assert_true(priv->init); diff --git a/core/src/idle-inhibit.h b/core/src/idle-inhibit.h index a342f52..a33fd69 100644 --- a/core/src/idle-inhibit.h +++ b/core/src/idle-inhibit.h @@ -12,7 +12,6 @@ G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(AstalInhibitManager, astal_inhibit_manager, ASTAL, INHIBIT_MANAGER, GObject) typedef struct zwp_idle_inhibitor_v1 AstalInhibitor; -void astal_inhibitor_free(AstalInhibitor* inhibitor); AstalInhibitManager* astal_inhibit_manager_get_default(); AstalInhibitor* astal_inhibit_manager_inhibit(AstalInhibitManager *self, GtkWindow *window); diff --git a/core/vapi/AstalInhibitManager.vapi b/core/vapi/AstalInhibitManager.vapi index 33a6304..4902f94 100644 --- a/core/vapi/AstalInhibitManager.vapi +++ b/core/vapi/AstalInhibitManager.vapi @@ -5,7 +5,7 @@ namespace Astal { public static unowned InhibitManager? get_default(); public Inhibitor inhibit (Gtk.Window window); } - [CCode (cheader_filename = "idle-inhibit.h", free_function = "astal_inhibitor_free")] + [CCode (cheader_filename = "idle-inhibit.h", free_function = "zwp_idle_inhibitor_v1_destroy")] [Compact] public class Inhibitor { } |