aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-storage-set-view.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-11-26 03:34:07 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-11-26 03:34:07 +0800
commit5b52c5ac764f007457fc12f3abcb644011c76b43 (patch)
tree22140a646fb596a7c7419dfba3483863f58e05f6 /shell/e-storage-set-view.c
parent98a522b22e81746773fe26ef831b0a76743cc1bb (diff)
downloadgsoc2013-evolution-5b52c5ac764f007457fc12f3abcb644011c76b43.tar.gz
gsoc2013-evolution-5b52c5ac764f007457fc12f3abcb644011c76b43.tar.zst
gsoc2013-evolution-5b52c5ac764f007457fc12f3abcb644011c76b43.zip
Updated to pass a GSList to e_storage_set_view_set_checkboxes_list()
* evolution-storage-set-view.c (impl_StorageSetView__set_checkedFolders): Updated to pass a GSList to e_storage_set_view_set_checkboxes_list() [instead of a GList]. (impl_StorageSetView__get_checkedFolders): Likewise with the return value from e_storage_set_view_get_checkboxes_list(). * e-shell-config-offline.c (config_control_apply_callback): Filled in, using GConf. (init_storage_set_view_status_from_config): Likewise. * e-storage-set-view.c (e_storage_set_view_get_checkboxes_list): Return a GSList instead of a GList. (essv_add_to_list): Update for the GSList. (e_storage_set_view_set_checkboxes_list): Get a GSList instead of a GList. * apps_evolution_shell.schemas: Added /schemas/apps/evolution/shell/offline/folder_paths. svn path=/trunk/; revision=18912
Diffstat (limited to 'shell/e-storage-set-view.c')
-rw-r--r--shell/e-storage-set-view.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c
index cfa97d9583..a18d23a34d 100644
--- a/shell/e-storage-set-view.c
+++ b/shell/e-storage-set-view.c
@@ -2350,7 +2350,7 @@ e_storage_set_view_enable_search (EStorageSetView *storage_set_view,
void
e_storage_set_view_set_checkboxes_list (EStorageSetView *storage_set_view,
- GList *checkboxes)
+ GSList *checkboxes)
{
gboolean changed = FALSE;
EStorageSetViewPrivate *priv = storage_set_view->priv;
@@ -2364,7 +2364,7 @@ e_storage_set_view_set_checkboxes_list (EStorageSetView *storage_set_view,
if (checkboxes) {
priv->checkboxes = g_hash_table_new (g_str_hash, g_str_equal);
- for (; checkboxes; checkboxes = g_list_next (checkboxes)) {
+ for (; checkboxes; checkboxes = g_slist_next (checkboxes)) {
char *path = checkboxes->data;
if (g_hash_table_lookup (priv->checkboxes, path))
@@ -2387,21 +2387,22 @@ essv_add_to_list (gpointer key,
gpointer value,
gpointer user_data)
{
- GList **list = user_data;
+ GSList **list = user_data;
- *list = g_list_prepend (*list, g_strdup (key));
+ *list = g_slist_prepend (*list, g_strdup (key));
}
-GList *
+GSList *
e_storage_set_view_get_checkboxes_list (EStorageSetView *storage_set_view)
{
- GList *list = NULL;
+ GSList *list = NULL;
if (storage_set_view->priv->checkboxes) {
g_hash_table_foreach (storage_set_view->priv->checkboxes, essv_add_to_list, &list);
- list = g_list_reverse (list);
+ list = g_slist_reverse (list);
}
+
return list;
}