feedback-theme: Allow to get and set parent theme name

If set the parent theme's feedbackd and profiles should be merged into
this theme.
This commit is contained in:
Guido Günther
2022-12-08 10:05:47 +01:00
parent e10b2cc150
commit ada82a0ed1
3 changed files with 49 additions and 0 deletions
+4
View File
@@ -65,6 +65,7 @@ test_fbd_feedback_theme_parse (void)
const char *json =" "
"{ "
" \"name\" : \"test\", "
" \"parent-name\" : \"parent-test\", "
" \"profiles\" : [ "
" { "
" \"name\" : \"full\", "
@@ -106,6 +107,9 @@ test_fbd_feedback_theme_parse (void)
name = fbd_feedback_theme_get_name (theme);
g_assert_cmpstr ("test", ==, name);
name = fbd_feedback_theme_get_parent_name (theme);
g_assert_cmpstr ("parent-test", ==, name);
profile = fbd_feedback_theme_get_profile (theme, "full");
g_assert_true (FBD_IS_FEEDBACK_PROFILE(profile));
g_assert_cmpstr ("full", ==,