diff --git a/src/backends/x11/nested/meta-backend-x11-nested.c b/src/backends/x11/nested/meta-backend-x11-nested.c index 022599449..7930e3f2a 100644 --- a/src/backends/x11/nested/meta-backend-x11-nested.c +++ b/src/backends/x11/nested/meta-backend-x11-nested.c @@ -27,11 +27,6 @@ #include "wayland/meta-wayland.h" -struct _MetaBackendX11Nested -{ - MetaBackendX11 parent; -}; - G_DEFINE_TYPE (MetaBackendX11Nested, meta_backend_x11_nested, META_TYPE_BACKEND_X11) diff --git a/src/backends/x11/nested/meta-backend-x11-nested.h b/src/backends/x11/nested/meta-backend-x11-nested.h index 31ae96fa4..6f2c26576 100644 --- a/src/backends/x11/nested/meta-backend-x11-nested.h +++ b/src/backends/x11/nested/meta-backend-x11-nested.h @@ -25,7 +25,12 @@ #include "backends/x11/meta-backend-x11.h" #define META_TYPE_BACKEND_X11_NESTED (meta_backend_x11_nested_get_type ()) -G_DECLARE_FINAL_TYPE (MetaBackendX11Nested, meta_backend_x11_nested, - META, BACKEND_X11_NESTED, MetaBackendX11) +G_DECLARE_DERIVABLE_TYPE (MetaBackendX11Nested, meta_backend_x11_nested, + META, BACKEND_X11_NESTED, MetaBackendX11) + +struct _MetaBackendX11NestedClass +{ + MetaBackendX11Class parent_class; +}; #endif /* META_BACKEND_X11_NESTED_H */ diff --git a/src/tests/meta-backend-test.c b/src/tests/meta-backend-test.c index e516c8665..4abe0b739 100644 --- a/src/tests/meta-backend-test.c +++ b/src/tests/meta-backend-test.c @@ -25,10 +25,10 @@ struct _MetaBackendTest { - MetaBackendX11 parent; + MetaBackendX11Nested parent; }; -G_DEFINE_TYPE (MetaBackendTest, meta_backend_test, META_TYPE_BACKEND_X11) +G_DEFINE_TYPE (MetaBackendTest, meta_backend_test, META_TYPE_BACKEND_X11_NESTED) static void meta_backend_test_init (MetaBackendTest *backend_test) diff --git a/src/tests/meta-backend-test.h b/src/tests/meta-backend-test.h index e6662125f..4ac04e0f4 100644 --- a/src/tests/meta-backend-test.h +++ b/src/tests/meta-backend-test.h @@ -20,10 +20,10 @@ #ifndef META_BACKEND_TEST_H #define META_BACKEND_TEST_H -#include "backends/x11/meta-backend-x11.h" +#include "backends/x11/nested/meta-backend-x11-nested.h" #define META_TYPE_BACKEND_TEST (meta_backend_test_get_type ()) G_DECLARE_FINAL_TYPE (MetaBackendTest, meta_backend_test, - META, BACKEND_TEST, MetaBackendX11) + META, BACKEND_TEST, MetaBackendX11Nested) #endif /* META_BACKEND_TEST_H */