[mutter] monitor-manager-kms: Use G_DECLARE_FINAL_TYPE macro
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] monitor-manager-kms: Use G_DECLARE_FINAL_TYPE macro
- Date: Fri, 6 Oct 2017 18:23:15 +0000 (UTC)
commit d3efd73429a67de547b76469a21c0b26398c31f5
Author: Jonas Ådahl <jadahl gmail com>
Date: Tue Jul 4 11:52:46 2017 +0800
monitor-manager-kms: Use G_DECLARE_FINAL_TYPE macro
Declare the MetaMonitorManagerKms type using the helper macro, instead
of manually.
https://bugzilla.gnome.org/show_bug.cgi?id=785381
src/backends/native/meta-monitor-manager-kms.h | 15 ++++-----------
1 files changed, 4 insertions(+), 11 deletions(-)
---
diff --git a/src/backends/native/meta-monitor-manager-kms.h b/src/backends/native/meta-monitor-manager-kms.h
index c641f28..37eabb3 100644
--- a/src/backends/native/meta-monitor-manager-kms.h
+++ b/src/backends/native/meta-monitor-manager-kms.h
@@ -25,17 +25,10 @@
#include "meta-monitor-manager-private.h"
-#define META_TYPE_MONITOR_MANAGER_KMS (meta_monitor_manager_kms_get_type ())
-#define META_MONITOR_MANAGER_KMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),
META_TYPE_MONITOR_MANAGER_KMS, MetaMonitorManagerKms))
-#define META_MONITOR_MANAGER_KMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),
META_TYPE_MONITOR_MANAGER_KMS, MetaMonitorManagerKmsClass))
-#define META_IS_MONITOR_MANAGER_KMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),
META_TYPE_MONITOR_MANAGER_KMS))
-#define META_IS_MONITOR_MANAGER_KMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),
META_TYPE_MONITOR_MANAGER_KMS))
-#define META_MONITOR_MANAGER_KMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),
META_TYPE_MONITOR_MANAGER_KMS, MetaMonitorManagerKmsClass))
-
-typedef struct _MetaMonitorManagerKmsClass MetaMonitorManagerKmsClass;
-typedef struct _MetaMonitorManagerKms MetaMonitorManagerKms;
-
-GType meta_monitor_manager_kms_get_type (void);
+#define META_TYPE_MONITOR_MANAGER_KMS (meta_monitor_manager_kms_get_type ())
+G_DECLARE_FINAL_TYPE (MetaMonitorManagerKms, meta_monitor_manager_kms,
+ META, MONITOR_MANAGER_KMS,
+ MetaMonitorManager)
typedef void (*MetaKmsFlipCallback) (void *user_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]