MetaWaylandOutput: Cleanup type declaration
Use G_DECLARE_FINAL_TYPE instead of the set of macros. https://bugzilla.gnome.org/show_bug.cgi?id=770672
This commit is contained in:
parent
4c8dd08c77
commit
22173fde15
@ -28,14 +28,9 @@
|
|||||||
#include "backends/meta-monitor-manager-private.h"
|
#include "backends/meta-monitor-manager-private.h"
|
||||||
#include "meta-wayland-private.h"
|
#include "meta-wayland-private.h"
|
||||||
|
|
||||||
#define META_TYPE_WAYLAND_OUTPUT (meta_wayland_output_get_type ())
|
#define META_TYPE_WAYLAND_OUTPUT (meta_wayland_output_get_type ())
|
||||||
#define META_WAYLAND_OUTPUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), META_TYPE_WAYLAND_OUTPUT, MetaWaylandOutput))
|
G_DECLARE_FINAL_TYPE (MetaWaylandOutput, meta_wayland_output,
|
||||||
#define META_WAYLAND_OUTPUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), META_TYPE_WAYLAND_OUTPUT, MetaWaylandOutputClass))
|
META, WAYLAND_OUTPUT, GObject)
|
||||||
#define META_IS_WAYLAND_OUTPUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), META_TYPE_WAYLAND_OUTPUT))
|
|
||||||
#define META_IS_WAYLAND_OUTPUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), META_TYPE_WAYLAND_OUTPUT))
|
|
||||||
#define META_WAYLAND_OUTPUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), META_TYPE_WAYLAND_OUTPUT, MetaWaylandOutputClass))
|
|
||||||
|
|
||||||
typedef struct _MetaWaylandOutputClass MetaWaylandOutputClass;
|
|
||||||
|
|
||||||
struct _MetaWaylandOutput
|
struct _MetaWaylandOutput
|
||||||
{
|
{
|
||||||
@ -49,13 +44,6 @@ struct _MetaWaylandOutput
|
|||||||
GList *resources;
|
GList *resources;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _MetaWaylandOutputClass
|
|
||||||
{
|
|
||||||
GObjectClass parent_class;
|
|
||||||
};
|
|
||||||
|
|
||||||
GType meta_wayland_output_get_type (void) G_GNUC_CONST;
|
|
||||||
|
|
||||||
void meta_wayland_outputs_init (MetaWaylandCompositor *compositor);
|
void meta_wayland_outputs_init (MetaWaylandCompositor *compositor);
|
||||||
|
|
||||||
#endif /* META_WAYLAND_OUTPUTS_H */
|
#endif /* META_WAYLAND_OUTPUTS_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user