aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/calendar/e-cal-shell-backend.c3
-rw-r--r--modules/calendar/e-memo-shell-backend.c3
-rw-r--r--modules/calendar/e-task-shell-backend.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/modules/calendar/e-cal-shell-backend.c b/modules/calendar/e-cal-shell-backend.c
index 3ecb6bfb84..625969871f 100644
--- a/modules/calendar/e-cal-shell-backend.c
+++ b/modules/calendar/e-cal-shell-backend.c
@@ -935,9 +935,10 @@ e_cal_shell_backend_set_selected_calendars (ECalShellBackend *cal_shell_backend,
for (l = selected_calendars; l != NULL; l = l->next)
g_ptr_array_add (array, l->data);
+ g_ptr_array_add (array, NULL);
settings = g_settings_new ("org.gnome.evolution.calendar");
- g_settings_set_strv (settings, "selected-calendars", array->pdata);
+ g_settings_set_strv (settings, "selected-calendars", (const gchar *const *) array->pdata);
g_object_unref (settings);
g_ptr_array_free (array, FALSE);
diff --git a/modules/calendar/e-memo-shell-backend.c b/modules/calendar/e-memo-shell-backend.c
index b374afdced..abbfdf7e0f 100644
--- a/modules/calendar/e-memo-shell-backend.c
+++ b/modules/calendar/e-memo-shell-backend.c
@@ -680,9 +680,10 @@ e_memo_shell_backend_set_selected_memo_lists (EMemoShellBackend *memo_shell_back
for (l = selected_memo_lists; l != NULL; l = l->next)
g_ptr_array_add (array, l->data);
+ g_ptr_array_add (array, NULL);
settings = g_settings_new ("org.gnome.evolution.calendar");
- g_settings_set_strv (settings, "selected-memos", array->pdata);
+ g_settings_set_strv (settings, "selected-memos", (const gchar *const *) array->pdata);
g_object_unref (settings);
g_ptr_array_free (array, FALSE);
diff --git a/modules/calendar/e-task-shell-backend.c b/modules/calendar/e-task-shell-backend.c
index 19e84a6764..39dcf4e726 100644
--- a/modules/calendar/e-task-shell-backend.c
+++ b/modules/calendar/e-task-shell-backend.c
@@ -684,9 +684,10 @@ e_task_shell_backend_set_selected_task_lists (ETaskShellBackend *task_shell_back
for (l = selected_task_lists; l != NULL; l = l->next)
g_ptr_array_add (array, l->data);
+ g_ptr_array_add (array, NULL);
settings = g_settings_new ("org.gnome.evolution.calendar");
- g_settings_set_strv (settings, "selected-tasks", array->pdata);
+ g_settings_set_strv (settings, "selected-tasks", (const gchar *const *) array->pdata);
g_object_unref (settings);
g_ptr_array_free (array, FALSE);