barrier: Make type derivable again
This was used gala to implement hot corners, and the way the barrier API works, there isn't really any practical reasons to not make it derivable, since the backend is a separate type and object. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2626>
This commit is contained in:
parent
cc9d2065e1
commit
af65a01057
@ -23,11 +23,6 @@
|
||||
#include "backends/native/meta-barrier-native.h"
|
||||
#endif
|
||||
|
||||
struct _MetaBarrier
|
||||
{
|
||||
GObject parent;
|
||||
};
|
||||
|
||||
typedef struct _MetaBarrierPrivate
|
||||
{
|
||||
MetaBackend *backend;
|
||||
|
@ -28,8 +28,13 @@ typedef enum
|
||||
|
||||
#define META_TYPE_BARRIER (meta_barrier_get_type ())
|
||||
META_EXPORT
|
||||
G_DECLARE_FINAL_TYPE (MetaBarrier, meta_barrier,
|
||||
META, BARRIER, GObject)
|
||||
G_DECLARE_DERIVABLE_TYPE (MetaBarrier, meta_barrier,
|
||||
META, BARRIER, GObject)
|
||||
|
||||
struct _MetaBarrierClass
|
||||
{
|
||||
GObjectClass parent_class;
|
||||
};
|
||||
|
||||
typedef struct _MetaBarrierEvent MetaBarrierEvent;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user