1
0
Fork 0

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:
Jonas Ådahl 2022-09-15 10:13:57 +02:00 committed by Marge Bot
parent cc9d2065e1
commit af65a01057
2 changed files with 7 additions and 7 deletions

View file

@ -23,11 +23,6 @@
#include "backends/native/meta-barrier-native.h"
#endif
struct _MetaBarrier
{
GObject parent;
};
typedef struct _MetaBarrierPrivate
{
MetaBackend *backend;

View file

@ -28,9 +28,14 @@ typedef enum
#define META_TYPE_BARRIER (meta_barrier_get_type ())
META_EXPORT
G_DECLARE_FINAL_TYPE (MetaBarrier, meta_barrier,
G_DECLARE_DERIVABLE_TYPE (MetaBarrier, meta_barrier,
META, BARRIER, GObject)
struct _MetaBarrierClass
{
GObjectClass parent_class;
};
typedef struct _MetaBarrierEvent MetaBarrierEvent;
META_EXPORT