From beddbc05835a5973f35b276d71cd7f533df5b4dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 9 Jul 2020 22:14:15 +0200 Subject: [PATCH] st/test-theme: Use stage from mutter Clutter application style stages not supported anymore. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1359 --- src/st/test-theme.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/st/test-theme.c b/src/st/test-theme.c index 3fe0246c3..4b6f5d4fe 100644 --- a/src/st/test-theme.c +++ b/src/st/test-theme.c @@ -26,6 +26,7 @@ #include #include #include +#include static ClutterActor *stage; static StThemeNode *root; @@ -533,6 +534,7 @@ test_inline_style (void) int main (int argc, char **argv) { + MetaBackend *backend; StTheme *theme; StThemeContext *context; PangoFontDescription *font_desc; @@ -556,7 +558,8 @@ main (int argc, char **argv) theme = st_theme_new (file, NULL, NULL); g_object_unref (file); - stage = clutter_stage_new (); + backend = meta_get_backend (); + stage = meta_backend_get_stage (backend); context = st_theme_context_get_for_stage (CLUTTER_STAGE (stage)); st_theme_context_set_theme (context, theme);