clutter: Mark BinLayout as final

It doesn't make sense to subclass a layout manager

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3387>
This commit is contained in:
Bilal Elmoussaoui 2024-01-05 16:13:56 +01:00
parent 56023e3110
commit 2dca60bd1c
2 changed files with 13 additions and 20 deletions

View File

@ -54,7 +54,12 @@
#include "clutter/clutter-layout-meta.h"
#include "clutter/clutter-private.h"
G_DEFINE_TYPE (ClutterBinLayout,
struct _ClutterBinLayout
{
ClutterLayoutManager parent_instance;
};
G_DEFINE_FINAL_TYPE (ClutterBinLayout,
clutter_bin_layout,
CLUTTER_TYPE_LAYOUT_MANAGER)

View File

@ -35,24 +35,12 @@ G_BEGIN_DECLS
#define CLUTTER_TYPE_BIN_LAYOUT (clutter_bin_layout_get_type ())
CLUTTER_EXPORT
G_DECLARE_DERIVABLE_TYPE (ClutterBinLayout,
G_DECLARE_FINAL_TYPE (ClutterBinLayout,
clutter_bin_layout,
CLUTTER,
BIN_LAYOUT,
CIN_LAYOUT,
ClutterLayoutManager)
/**
* ClutterBinLayoutClass:
*
* The #ClutterBinLayoutClass structure contains only private
* data and should be accessed using the provided API
*/
struct _ClutterBinLayoutClass
{
/*< private >*/
ClutterLayoutManagerClass parent_class;
};
CLUTTER_EXPORT
ClutterLayoutManager * clutter_bin_layout_new (void);