settings: use WpSpaJson instead of raw string in WpSettingsChangedCallback

Avoids users to construct a WpSpaJson every time the callback is triggered.
This commit is contained in:
Julian Bouzas
2022-09-01 08:22:56 -04:00
parent a512ddaaf3
commit d28d7d4278
5 changed files with 76 additions and 79 deletions

View File

@@ -563,7 +563,7 @@ get_settings (WpDefaultNodes *self, const gchar *setting)
void
wp_settings_changed_callback (WpSettings *obj, const gchar *setting,
const gchar *raw_value, gpointer user_data)
WpSpaJson *value, gpointer user_data)
{
WpDefaultNodes *self = WP_DEFAULT_NODES (user_data);
g_return_if_fail (self);