mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
monitor-manager-dummy: Use GObject type declaration macro
Use G_DECLARE_FINAL_TYPE instead of old multiple macro definitions way. https://bugzilla.gnome.org/show_bug.cgi?id=785381
This commit is contained in:
parent
d53b79f8c3
commit
7603bb5fd5
@ -25,16 +25,8 @@
|
|||||||
|
|
||||||
#include "meta-monitor-manager-private.h"
|
#include "meta-monitor-manager-private.h"
|
||||||
|
|
||||||
#define META_TYPE_MONITOR_MANAGER_DUMMY (meta_monitor_manager_dummy_get_type ())
|
#define META_TYPE_MONITOR_MANAGER_DUMMY (meta_monitor_manager_dummy_get_type ())
|
||||||
#define META_MONITOR_MANAGER_DUMMY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), META_TYPE_MONITOR_MANAGER_DUMMY, MetaMonitorManagerDummy))
|
G_DECLARE_FINAL_TYPE (MetaMonitorManagerDummy, meta_monitor_manager_dummy,
|
||||||
#define META_MONITOR_MANAGER_DUMMY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), META_TYPE_MONITOR_MANAGER_DUMMY, MetaMonitorManagerDummyClass))
|
META, MONITOR_MANAGER_DUMMY, MetaMonitorManager)
|
||||||
#define META_IS_MONITOR_MANAGER_DUMMY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), META_TYPE_MONITOR_MANAGER_DUMMY))
|
|
||||||
#define META_IS_MONITOR_MANAGER_DUMMY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), META_TYPE_MONITOR_MANAGER_DUMMY))
|
|
||||||
#define META_MONITOR_MANAGER_DUMMY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), META_TYPE_MONITOR_MANAGER_DUMMY, MetaMonitorManagerDummyClass))
|
|
||||||
|
|
||||||
typedef struct _MetaMonitorManagerDummyClass MetaMonitorManagerDummyClass;
|
|
||||||
typedef struct _MetaMonitorManagerDummy MetaMonitorManagerDummy;
|
|
||||||
|
|
||||||
GType meta_monitor_manager_dummy_get_type (void);
|
|
||||||
|
|
||||||
#endif /* META_MONITOR_MANAGER_DUMMY_H */
|
#endif /* META_MONITOR_MANAGER_DUMMY_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user