monitor-config: Modernize type declaration
https://bugzilla.gnome.org/show_bug.cgi?id=777732
This commit is contained in:
parent
63ed134165
commit
0637537355
@ -91,10 +91,6 @@ struct _MetaMonitorConfig {
|
|||||||
gboolean lid_is_closed;
|
gboolean lid_is_closed;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _MetaMonitorConfigClass {
|
|
||||||
GObjectClass parent;
|
|
||||||
};
|
|
||||||
|
|
||||||
G_DEFINE_TYPE (MetaMonitorConfig, meta_monitor_config, G_TYPE_OBJECT);
|
G_DEFINE_TYPE (MetaMonitorConfig, meta_monitor_config, G_TYPE_OBJECT);
|
||||||
|
|
||||||
static gboolean meta_monitor_config_assign_crtcs (MetaConfiguration *config,
|
static gboolean meta_monitor_config_assign_crtcs (MetaConfiguration *config,
|
||||||
|
@ -26,13 +26,8 @@
|
|||||||
#include "meta-monitor-manager-private.h"
|
#include "meta-monitor-manager-private.h"
|
||||||
|
|
||||||
#define META_TYPE_MONITOR_CONFIG (meta_monitor_config_get_type ())
|
#define META_TYPE_MONITOR_CONFIG (meta_monitor_config_get_type ())
|
||||||
#define META_MONITOR_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), META_TYPE_MONITOR_CONFIG, MetaMonitorConfig))
|
G_DECLARE_FINAL_TYPE (MetaMonitorConfig, meta_monitor_config,
|
||||||
#define META_MONITOR_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), META_TYPE_MONITOR_CONFIG, MetaMonitorConfigClass))
|
META, MONITOR_CONFIG, GObject)
|
||||||
#define META_IS_MONITOR_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), META_TYPE_MONITOR_CONFIG))
|
|
||||||
#define META_IS_MONITOR_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), META_TYPE_MONITOR_CONFIG))
|
|
||||||
#define META_MONITOR_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), META_TYPE_MONITOR_CONFIG, MetaMonitorConfigClass))
|
|
||||||
|
|
||||||
GType meta_monitor_config_get_type (void) G_GNUC_CONST;
|
|
||||||
|
|
||||||
MetaMonitorConfig *meta_monitor_config_new (void);
|
MetaMonitorConfig *meta_monitor_config_new (void);
|
||||||
|
|
||||||
|
@ -47,7 +47,6 @@
|
|||||||
#include "meta-dbus-display-config.h"
|
#include "meta-dbus-display-config.h"
|
||||||
#include "meta-cursor.h"
|
#include "meta-cursor.h"
|
||||||
|
|
||||||
typedef struct _MetaMonitorConfigClass MetaMonitorConfigClass;
|
|
||||||
typedef struct _MetaMonitorConfig MetaMonitorConfig;
|
typedef struct _MetaMonitorConfig MetaMonitorConfig;
|
||||||
|
|
||||||
typedef struct _MetaMonitor MetaMonitor;
|
typedef struct _MetaMonitor MetaMonitor;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user