diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-11-26 03:34:07 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-11-26 03:34:07 +0800 |
commit | 5b52c5ac764f007457fc12f3abcb644011c76b43 (patch) | |
tree | 22140a646fb596a7c7419dfba3483863f58e05f6 /shell/evolution-storage-set-view.c | |
parent | 98a522b22e81746773fe26ef831b0a76743cc1bb (diff) | |
download | gsoc2013-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/evolution-storage-set-view.c')
-rw-r--r-- | shell/evolution-storage-set-view.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/shell/evolution-storage-set-view.c b/shell/evolution-storage-set-view.c index 0674356162..c4eadc7ec7 100644 --- a/shell/evolution-storage-set-view.c +++ b/shell/evolution-storage-set-view.c @@ -285,7 +285,7 @@ impl_StorageSetView__set_checkedFolders (PortableServer_Servant servant, BonoboObject *bonobo_object; EvolutionStorageSetView *storage_set_view; EvolutionStorageSetViewPrivate *priv; - GList *path_list = NULL; + GSList *path_list = NULL; int i; bonobo_object = bonobo_object_from_servant (servant); @@ -296,13 +296,14 @@ impl_StorageSetView__set_checkedFolders (PortableServer_Servant servant, if (strncmp (list->_buffer[i].evolutionUri, "evolution:", 10) != 0) continue; - path_list = g_list_append (path_list, g_strdup (list->_buffer[i].evolutionUri + 10)); + path_list = g_slist_append (path_list, g_strdup (list->_buffer[i].evolutionUri + 10)); } e_storage_set_view_set_checkboxes_list (E_STORAGE_SET_VIEW (priv->storage_set_view_widget), path_list); - e_free_string_list (path_list); + g_slist_foreach (path_list, (GFunc) g_free, NULL); + g_slist_free (path_list); } static GNOME_Evolution_FolderList * @@ -314,8 +315,8 @@ impl_StorageSetView__get_checkedFolders (PortableServer_Servant servant, EvolutionStorageSetViewPrivate *priv; EStorageSet *storage_set; GNOME_Evolution_FolderList *return_list; - GList *path_list; - GList *p; + GSList *path_list; + GSList *p; int num_folders; int i; @@ -324,7 +325,7 @@ impl_StorageSetView__get_checkedFolders (PortableServer_Servant servant, priv = storage_set_view->priv; path_list = e_storage_set_view_get_checkboxes_list (E_STORAGE_SET_VIEW (priv->storage_set_view_widget)); - num_folders = g_list_length (path_list); + num_folders = g_slist_length (path_list); return_list = GNOME_Evolution_FolderList__alloc (); return_list->_maximum = num_folders; @@ -356,7 +357,8 @@ impl_StorageSetView__get_checkedFolders (PortableServer_Servant servant, g_free (evolution_uri); } - e_free_string_list (path_list); + g_slist_foreach (path_list, (GFunc) g_free, NULL); + g_slist_free (path_list); CORBA_sequence_set_release (return_list, TRUE); return return_list; |