aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-memo-shell-backend.c
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/calendar/e-memo-shell-backend.c
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/calendar/e-memo-shell-backend.c')
-rw-r--r--modules/calendar/e-memo-shell-backend.c3
1 files changed, 2 insertions, 1 deletions
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);