[mutter] idle-monitor: Use G_DECLARE_FINAL_TYPE()
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] idle-monitor: Use G_DECLARE_FINAL_TYPE()
- Date: Tue, 18 May 2021 13:53:59 +0000 (UTC)
commit dcf953ad3b97b313ef340a47511e3c4acc77e334
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Mon Apr 19 16:16:04 2021 +0200
idle-monitor: Use G_DECLARE_FINAL_TYPE()
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1859>
src/meta/meta-idle-monitor.h | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
---
diff --git a/src/meta/meta-idle-monitor.h b/src/meta/meta-idle-monitor.h
index b8b38a6063..8cc9bf2bf7 100644
--- a/src/meta/meta-idle-monitor.h
+++ b/src/meta/meta-idle-monitor.h
@@ -23,18 +23,11 @@
#include <glib-object.h>
#include <meta/types.h>
-#define META_TYPE_IDLE_MONITOR (meta_idle_monitor_get_type ())
-#define META_IDLE_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), META_TYPE_IDLE_MONITOR,
MetaIdleMonitor))
-#define META_IDLE_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), META_TYPE_IDLE_MONITOR,
MetaIdleMonitorClass))
-#define META_IS_IDLE_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), META_TYPE_IDLE_MONITOR))
-#define META_IS_IDLE_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), META_TYPE_IDLE_MONITOR))
-#define META_IDLE_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), META_TYPE_IDLE_MONITOR,
MetaIdleMonitorClass))
-
-typedef struct _MetaIdleMonitor MetaIdleMonitor;
-typedef struct _MetaIdleMonitorClass MetaIdleMonitorClass;
-
+#define META_TYPE_IDLE_MONITOR (meta_idle_monitor_get_type ())
META_EXPORT
-GType meta_idle_monitor_get_type (void);
+G_DECLARE_FINAL_TYPE (MetaIdleMonitor, meta_idle_monitor,
+ META, IDLE_MONITOR,
+ GObject)
typedef void (*MetaIdleMonitorWatchFunc) (MetaIdleMonitor *monitor,
guint watch_id,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]