diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ChangeLog | 4 | ||||
-rw-r--r-- | shell/evolution-storage-set-view.c | 14 |
2 files changed, 10 insertions, 8 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index d4cf410a3f..cb1478b7c2 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,7 +1,9 @@ 2002-07-11 Ettore Perazzoli <ettore@ximian.com> * evolution-storage-set-view.c - (impl_StorageSetView__set_checkedFolders): Remove extra braces. + (impl_StorageSetView__set_checkedFolders): Handle + Folder.evolutionUri as a URI, not as a path. Also use + e_free_string_list(). 2002-07-11 Ettore Perazzoli <ettore@ximian.com> diff --git a/shell/evolution-storage-set-view.c b/shell/evolution-storage-set-view.c index 4253ea3158..0e0c4c16f7 100644 --- a/shell/evolution-storage-set-view.c +++ b/shell/evolution-storage-set-view.c @@ -314,16 +314,16 @@ impl_StorageSetView__set_checkedFolders (PortableServer_Servant servant, priv = storage_set_view->priv; for (i = 0; i < list->_length; i++) { - path_list = g_list_append (path_list, g_strdup (list->_buffer[i].evolutionUri)); - } - - e_storage_set_view_set_checkboxes_list (E_STORAGE_SET_VIEW (priv->storage_set_view_widget), path_list); + if (strncmp (list->_buffer[i].evolutionUri, "evolution:", 10) != 0) + continue; - for (p = path_list; p; p = p->next) { - g_free (p->data); + path_list = g_list_append (path_list, g_strdup (list->_buffer[i].evolutionUri + 10)); } - g_list_free (path_list); + e_storage_set_view_set_checkboxes_list (E_STORAGE_SET_VIEW (priv->storage_set_view_widget), + path_list); + + e_free_string_list (path_list); } static GNOME_Evolution_FolderList * |