aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-storage-set.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-07-19 02:16:18 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-07-19 02:16:18 +0800
commitd2d0eebd74237b46adb8115b2f89e2b1eb2a3898 (patch)
treeb03350f63b15335e4527cebe95404ac3c4d67bb7 /shell/e-storage-set.c
parent85e032b504cc9a12affba776150df6908d84bea3 (diff)
downloadgsoc2013-evolution-d2d0eebd74237b46adb8115b2f89e2b1eb2a3898.tar
gsoc2013-evolution-d2d0eebd74237b46adb8115b2f89e2b1eb2a3898.tar.gz
gsoc2013-evolution-d2d0eebd74237b46adb8115b2f89e2b1eb2a3898.tar.bz2
gsoc2013-evolution-d2d0eebd74237b46adb8115b2f89e2b1eb2a3898.tar.lz
gsoc2013-evolution-d2d0eebd74237b46adb8115b2f89e2b1eb2a3898.tar.xz
gsoc2013-evolution-d2d0eebd74237b46adb8115b2f89e2b1eb2a3898.tar.zst
gsoc2013-evolution-d2d0eebd74237b46adb8115b2f89e2b1eb2a3898.zip
Removed unused variable.
* evolution-storage-set-view.c (impl_StorageSetView__set_checkedFolders): Removed unused variable. * e-shell-folder-title-bar.c (e_shell_folder_title_bar_construct): Removed unused variable. * e-storage.c (e_storage_path_is_absolute) (e_storage_path_is_relative) (e_storage_async_xfer_folder) * e-storage-set.c (make_full_path) (get_storage_for_path) (signal_new_folder_for_all_folders_under_paths) (signal_new_folder_for_all_folders_in_storage) (e_storage_set_get_path_for_physical_uri) * e-storage-set-view.c (storage_sort_callback) (new_storage_cb) (removed_storage_cb) (new_folder_cb) * e-shortcuts-view.c (get_shortcut_info): * e-shell-view.c (handle_current_folder_removed) * e-shell-utils.c (e_shell_folder_name_is_valid): * e-local-storage.c (construct): * e-folder-tree.c (get_parent_path) (get_parent_path) (e_folder_tree_destroy) (e_folder_tree_add) (e_folder_tree_foreach) * e-folder-dnd-bridge.c (handle_data_received_path) * evolution-storage.c (make_full_uri): * e-shell-constants.h: New #defines E_PATH_SEPARATOR and E_PATH_SEPARATOR_S. * e-local-storage.c (load_folder): Don't add the folder if its type isn't registered. svn path=/trunk/; revision=17510
Diffstat (limited to 'shell/e-storage-set.c')
-rw-r--r--shell/e-storage-set.c30
1 files changed, 16 insertions, 14 deletions
diff --git a/shell/e-storage-set.c b/shell/e-storage-set.c
index 0eb7b48014..f4e91594e7 100644
--- a/shell/e-storage-set.c
+++ b/shell/e-storage-set.c
@@ -24,7 +24,10 @@
#include <config.h>
#endif
-#include <string.h>
+#include "e-storage-set.h"
+
+#include "e-storage-set-view.h"
+#include "e-shell-constants.h"
#include <glib.h>
#include <gtk/gtkobject.h>
@@ -33,8 +36,7 @@
#include <gal/util/e-util.h>
-#include "e-storage-set-view.h"
-#include "e-storage-set.h"
+#include <string.h>
#define PARENT_TYPE GTK_TYPE_OBJECT
@@ -154,14 +156,14 @@ make_full_path (EStorage *storage,
storage_name = e_storage_get_name (storage);
- if (strcmp (path, G_DIR_SEPARATOR_S) == 0)
- full_path = g_strconcat (G_DIR_SEPARATOR_S, storage_name,
+ if (strcmp (path, E_PATH_SEPARATOR_S) == 0)
+ full_path = g_strconcat (E_PATH_SEPARATOR_S, storage_name,
NULL);
else if (! g_path_is_absolute (path))
- full_path = g_strconcat (G_DIR_SEPARATOR_S, storage_name,
- G_DIR_SEPARATOR_S, path, NULL);
+ full_path = g_strconcat (E_PATH_SEPARATOR_S, storage_name,
+ E_PATH_SEPARATOR_S, path, NULL);
else
- full_path = g_strconcat (G_DIR_SEPARATOR_S, storage_name,
+ full_path = g_strconcat (E_PATH_SEPARATOR_S, storage_name,
path, NULL);
return full_path;
@@ -238,16 +240,16 @@ get_storage_for_path (EStorageSet *storage_set,
const char *first_separator;
g_return_val_if_fail (g_path_is_absolute (path), NULL);
- g_return_val_if_fail (path[1] != G_DIR_SEPARATOR, NULL);
+ g_return_val_if_fail (path[1] != E_PATH_SEPARATOR, NULL);
/* Skip initial separator. */
path++;
- first_separator = strchr (path, G_DIR_SEPARATOR);
+ first_separator = strchr (path, E_PATH_SEPARATOR);
if (first_separator == NULL || first_separator[1] == 0) {
storage = e_storage_set_get_storage (storage_set, path);
- *subpath_return = G_DIR_SEPARATOR_S;
+ *subpath_return = E_PATH_SEPARATOR_S;
} else {
storage_name = g_strndup (path, first_separator - path);
storage = e_storage_set_get_storage (storage_set, storage_name);
@@ -273,7 +275,7 @@ signal_new_folder_for_all_folders_under_paths (EStorageSet *storage_set,
path = (const char *) p->data;
- path_with_storage = g_strconcat (G_DIR_SEPARATOR_S, e_storage_get_name (storage), path, NULL);
+ path_with_storage = g_strconcat (E_PATH_SEPARATOR_S, e_storage_get_name (storage), path, NULL);
gtk_signal_emit (GTK_OBJECT (storage_set), signals[NEW_FOLDER], path_with_storage);
g_free (path_with_storage);
@@ -291,7 +293,7 @@ signal_new_folder_for_all_folders_in_storage (EStorageSet *storage_set,
{
GList *path_list;
- path_list = e_storage_get_subfolder_paths (storage, G_DIR_SEPARATOR_S);
+ path_list = e_storage_get_subfolder_paths (storage, E_PATH_SEPARATOR_S);
signal_new_folder_for_all_folders_under_paths (storage_set, storage, path_list);
@@ -763,7 +765,7 @@ e_storage_set_get_path_for_physical_uri (EStorageSet *storage_set,
if (storage_path != NULL) {
char *storage_set_path;
- storage_set_path = g_strconcat (G_DIR_SEPARATOR_S,
+ storage_set_path = g_strconcat (E_PATH_SEPARATOR_S,
e_storage_get_name (storage),
storage_path,
NULL);