testsuite: Fix casts in reftests

This commit is contained in:
David King 2024-01-19 11:04:37 +00:00
parent 76bc2a5713
commit 05a12b1c5f

View File

@ -381,7 +381,7 @@ enforce_default_settings (void)
klass = g_type_class_ref (G_OBJECT_TYPE (settings));
pspecs = g_object_class_list_properties (klass, &n_pspecs);
pspecs = g_object_class_list_properties (G_OBJECT_CLASS (klass), &n_pspecs);
for (i = 0; i < n_pspecs; i++)
{
GParamSpec *pspec = pspecs[i];
@ -394,7 +394,7 @@ enforce_default_settings (void)
continue;
value = g_param_spec_get_default_value (pspec);
g_object_set_property (settings, pspec->name, value);
g_object_set_property (G_OBJECT (settings), pspec->name, value);
}
g_free (pspecs);