1
0
Fork 0

clutter: Mark FixedLayout as derivable

As GNOME Shell derives this type

Fixes: 5b527ac89 ("fixed-layout: Use macros for subclassing
boilerplate")

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3509>
This commit is contained in:
Bilal Elmoussaoui 2024-01-10 12:18:10 +01:00
parent 38fd27b528
commit 8ae87ce041
2 changed files with 13 additions and 12 deletions

View file

@ -39,14 +39,9 @@
#include "clutter/clutter-fixed-layout.h"
#include "clutter/clutter-private.h"
struct _ClutterFixedLayout
{
ClutterLayoutManager parent_instance;
};
G_DEFINE_FINAL_TYPE (ClutterFixedLayout,
clutter_fixed_layout,
CLUTTER_TYPE_LAYOUT_MANAGER);
G_DEFINE_TYPE (ClutterFixedLayout,
clutter_fixed_layout,
CLUTTER_TYPE_LAYOUT_MANAGER);
static void
clutter_fixed_layout_get_preferred_width (ClutterLayoutManager *manager,

View file

@ -35,10 +35,16 @@ G_BEGIN_DECLS
#define CLUTTER_TYPE_FIXED_LAYOUT (clutter_fixed_layout_get_type ())
CLUTTER_EXPORT
G_DECLARE_FINAL_TYPE (ClutterFixedLayout,
clutter_fixed_layout,
CLUTTER, FIXED_LAYOUT,
ClutterLayoutManager)
G_DECLARE_DERIVABLE_TYPE (ClutterFixedLayout,
clutter_fixed_layout,
CLUTTER, FIXED_LAYOUT,
ClutterLayoutManager)
struct _ClutterFixedLayoutClass
{
/*< private >*/
ClutterLayoutManagerClass parent_class;
};
CLUTTER_EXPORT
ClutterLayoutManager *clutter_fixed_layout_new (void);