mirror of
https://github.com/brl/mutter.git
synced 2025-02-17 21:54:10 +00:00
window/wayland: Use G_DECLARE_FINAL_TYPE
https://gitlab.gnome.org/GNOME/mutter/merge_requests/907
This commit is contained in:
parent
4bf5b7d78d
commit
cc444d4991
@ -99,6 +99,8 @@ typedef enum
|
|||||||
#define META_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), META_TYPE_WINDOW))
|
#define META_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), META_TYPE_WINDOW))
|
||||||
#define META_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), META_TYPE_WINDOW, MetaWindowClass))
|
#define META_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), META_TYPE_WINDOW, MetaWindowClass))
|
||||||
|
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC (MetaWindow, g_object_unref)
|
||||||
|
|
||||||
typedef struct _MetaWindowClass MetaWindowClass;
|
typedef struct _MetaWindowClass MetaWindowClass;
|
||||||
|
|
||||||
META_EXPORT
|
META_EXPORT
|
||||||
|
@ -31,17 +31,10 @@
|
|||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define META_TYPE_WINDOW_WAYLAND (meta_window_wayland_get_type())
|
#define META_TYPE_WINDOW_WAYLAND (meta_window_wayland_get_type())
|
||||||
#define META_WINDOW_WAYLAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), META_TYPE_WINDOW_WAYLAND, MetaWindowWayland))
|
G_DECLARE_FINAL_TYPE (MetaWindowWayland, meta_window_wayland,
|
||||||
#define META_WINDOW_WAYLAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), META_TYPE_WINDOW_WAYLAND, MetaWindowWaylandClass))
|
META, WINDOW_WAYLAND,
|
||||||
#define META_IS_WINDOW_WAYLAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), META_TYPE_WINDOW_WAYLAND))
|
MetaWindow)
|
||||||
#define META_IS_WINDOW_WAYLAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), META_TYPE_WINDOW_WAYLAND))
|
|
||||||
#define META_WINDOW_WAYLAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), META_TYPE_WINDOW_WAYLAND, MetaWindowWaylandClass))
|
|
||||||
|
|
||||||
GType meta_window_wayland_get_type (void);
|
|
||||||
|
|
||||||
typedef struct _MetaWindowWayland MetaWindowWayland;
|
|
||||||
typedef struct _MetaWindowWaylandClass MetaWindowWaylandClass;
|
|
||||||
|
|
||||||
MetaWindow * meta_window_wayland_new (MetaDisplay *display,
|
MetaWindow * meta_window_wayland_new (MetaDisplay *display,
|
||||||
MetaWaylandSurface *surface);
|
MetaWaylandSurface *surface);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user