diff --git a/src/EWS/camel/camel-ews-utils.c b/src/EWS/camel/camel-ews-utils.c index 0707f72..1e71954 100644 --- a/src/EWS/camel/camel-ews-utils.c +++ b/src/EWS/camel/camel-ews-utils.c @@ -1552,7 +1552,18 @@ ews_utils_save_category_changes (GHashTable *old_categories, /* gchar *guid ~> C evo_labels = g_ptr_array_new_full (5, g_free); - settings = g_settings_new ("org.gnome.evolution.mail"); + { + g_autoptr(GSettingsSchemaSource) schema_source; + g_autoptr(GSettingsSchema) schema; + schema_source = g_settings_schema_source_new_from_directory("@evo@", + g_settings_schema_source_get_default(), + TRUE, + NULL); + schema = g_settings_schema_source_lookup(schema_source, + "org.gnome.evolution.mail", + FALSE); + settings = g_settings_new_full(schema, NULL, NULL); + } strv = g_settings_get_strv (settings, "labels"); for (ii = 0; strv && strv[ii]; ii++) { diff --git a/src/EWS/common/e-ews-calendar-utils.c b/src/EWS/common/e-ews-calendar-utils.c index 6deda60..9b44cc7 100644 --- a/src/EWS/common/e-ews-calendar-utils.c +++ b/src/EWS/common/e-ews-calendar-utils.c @@ -413,7 +413,18 @@ ews_get_configured_icaltimezone (void) gchar *location; ICalTimezone *zone = NULL; - settings = g_settings_new ("org.gnome.evolution.calendar"); + { + g_autoptr(GSettingsSchemaSource) schema_source; + g_autoptr(GSettingsSchema) schema; + schema_source = g_settings_schema_source_new_from_directory("@evo@", + g_settings_schema_source_get_default(), + TRUE, + NULL); + schema = g_settings_schema_source_lookup(schema_source, + "org.gnome.evolution.calendar", + FALSE); + settings = g_settings_new_full(schema, NULL, NULL); + } location = g_settings_get_string (settings, "timezone"); if (location) { zone = i_cal_timezone_get_builtin_timezone (location); diff --git a/src/Microsoft365/camel/camel-m365-store.c b/src/Microsoft365/camel/camel-m365-store.c index ff1b8e3..4f876c0 100644 --- a/src/Microsoft365/camel/camel-m365-store.c +++ b/src/Microsoft365/camel/camel-m365-store.c @@ -309,7 +309,18 @@ m365_store_save_category_changes (GHashTable *old_categories, /* gchar *id ~> Ca evo_labels = g_ptr_array_new_full (5, g_free); - settings = g_settings_new ("org.gnome.evolution.mail"); + { + g_autoptr(GSettingsSchemaSource) schema_source; + g_autoptr(GSettingsSchema) schema; + schema_source = g_settings_schema_source_new_from_directory("@evo@", + g_settings_schema_source_get_default(), + TRUE, + NULL); + schema = g_settings_schema_source_lookup(schema_source, + "org.gnome.evolution.mail", + FALSE); + settings = g_settings_new_full(schema, NULL, NULL); + } strv = g_settings_get_strv (settings, "labels"); for (ii = 0; strv && strv[ii]; ii++) {