mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -05:00
wayland: Define abstract role types as actually abstract
They should not be instantiated by themself, only as actual roles. https://gitlab.gnome.org/GNOME/mutter/merge_requests/5 https://bugzilla.gnome.org/show_bug.cgi?id=791938
This commit is contained in:
parent
d714a94d97
commit
4345906663
@ -30,7 +30,7 @@
|
||||
#include "wayland/meta-wayland-surface.h"
|
||||
#include "wayland/meta-window-wayland.h"
|
||||
|
||||
G_DEFINE_TYPE (MetaWaylandActorSurface,
|
||||
G_DEFINE_ABSTRACT_TYPE (MetaWaylandActorSurface,
|
||||
meta_wayland_actor_surface,
|
||||
META_TYPE_WAYLAND_SURFACE_ROLE)
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
#include "wayland/meta-wayland-surface.h"
|
||||
#include "wayland/meta-window-wayland.h"
|
||||
|
||||
G_DEFINE_TYPE (MetaWaylandShellSurface,
|
||||
G_DEFINE_ABSTRACT_TYPE (MetaWaylandShellSurface,
|
||||
meta_wayland_shell_surface,
|
||||
META_TYPE_WAYLAND_ACTOR_SURFACE)
|
||||
|
||||
|
@ -81,9 +81,9 @@ typedef struct _MetaWaylandSurfaceRolePrivate
|
||||
|
||||
G_DEFINE_TYPE (MetaWaylandSurface, meta_wayland_surface, G_TYPE_OBJECT);
|
||||
|
||||
G_DEFINE_TYPE_WITH_PRIVATE (MetaWaylandSurfaceRole,
|
||||
G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (MetaWaylandSurfaceRole,
|
||||
meta_wayland_surface_role,
|
||||
G_TYPE_OBJECT);
|
||||
G_TYPE_OBJECT)
|
||||
|
||||
G_DEFINE_TYPE (MetaWaylandPendingState,
|
||||
meta_wayland_pending_state,
|
||||
|
Loading…
Reference in New Issue
Block a user