aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@gnome-db.org>2011-10-13 19:44:58 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-10-13 19:44:58 +0800
commit74317a21839e419614e1c8fd91dcc3d601f1b858 (patch)
treeb6290720e1a32244b912ba687e5cdb63f5761e00 /modules
parenta7fd5679e4bfa01dca4b2036c40118a6d3c21c4b (diff)
downloadgsoc2013-evolution-74317a21839e419614e1c8fd91dcc3d601f1b858.tar
gsoc2013-evolution-74317a21839e419614e1c8fd91dcc3d601f1b858.tar.gz
gsoc2013-evolution-74317a21839e419614e1c8fd91dcc3d601f1b858.tar.bz2
gsoc2013-evolution-74317a21839e419614e1c8fd91dcc3d601f1b858.tar.lz
gsoc2013-evolution-74317a21839e419614e1c8fd91dcc3d601f1b858.tar.xz
gsoc2013-evolution-74317a21839e419614e1c8fd91dcc3d601f1b858.tar.zst
gsoc2013-evolution-74317a21839e419614e1c8fd91dcc3d601f1b858.zip
NULL-terminate arrays that we pass to g_settings_set_strv
Diffstat (limited to 'modules')
-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);