aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-storage-set-view.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-09-10 05:43:46 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-09-10 05:43:46 +0800
commit3d7fc19a83c4c3835e2c5c6821b45f4a27dcae73 (patch)
treedd0ff4f52e31599ba8190d85d0f1ab2932784bf3 /shell/e-storage-set-view.c
parent93ce4979954074c5f7d6061958e523efb7bfb356 (diff)
downloadgsoc2013-evolution-3d7fc19a83c4c3835e2c5c6821b45f4a27dcae73.tar.gz
gsoc2013-evolution-3d7fc19a83c4c3835e2c5c6821b45f4a27dcae73.tar.zst
gsoc2013-evolution-3d7fc19a83c4c3835e2c5c6821b45f4a27dcae73.zip
Use the name of the storage or the folder in the storage set view,
instead of just the last segment of the path, so that we can support display names correctly. svn path=/trunk/; revision=5296
Diffstat (limited to 'shell/e-storage-set-view.c')
-rw-r--r--shell/e-storage-set-view.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c
index b90f556286..670df6f920 100644
--- a/shell/e-storage-set-view.c
+++ b/shell/e-storage-set-view.c
@@ -489,16 +489,26 @@ etree_icon_at (ETreeModel *etree, ETreePath *tree_path, void *model_data)
static void*
etree_value_at (ETreeModel *etree, ETreePath *tree_path, int col, void *model_data)
{
+ EStorageSetView *storage_set_view;
+ EStorageSet *storage_set;
+ EStorage *storage;
+ EFolder *folder;
char *path;
- char *last_separator;
- path = (char*)e_tree_model_node_get_data (etree, tree_path);
+ storage_set_view = E_STORAGE_SET_VIEW (model_data);
+ storage_set = storage_set_view->priv->storage_set;
- last_separator = strrchr (path, G_DIR_SEPARATOR);
+ path = (char *) e_tree_model_node_get_data (etree, tree_path);
+
+ folder = e_storage_set_get_folder (storage_set, path);
+ if (folder != NULL)
+ return (void *) e_folder_get_name (folder);
- g_return_val_if_fail (last_separator != NULL, NULL);
+ storage = e_storage_set_get_storage (storage_set, path + 1);
+ if (storage != NULL)
+ return (void *) e_storage_get_name (storage);
- return last_separator + 1;
+ return NULL;
}
static void
class='commitgraph'>* Upgrade to version 1.43edwin2005-02-241-5/+10 * When running ngrep as non-root, the program tried to drop theedwin2004-04-181-1/+4 * fix portdocs while we're at it. (sorry should have been done earlier)edwin2004-03-291-1/+1 * Upgrade of net/ngrep to version 1.42edwin2004-03-291-4/+3 * Fix problems which where there during running of the program:edwin2004-02-281-6/+4 * move the check for the necessarity for the additional patchesedwin2003-11-181-1/+1 * Unbreak build on -stable while keep it buildable on -current.edwin2003-11-121-2/+8 * Fix build on -current, thanks to a patch from walt <wa1ter@myrealbox.com>edwin2003-11-091-1/+4 * De-pkg-comment.knu2003-02-211-0/+1 * Pass maintainership to Edwin Groothuis <edwin@mavetju.org> from ports@petef2002-03-021-1/+1 * Update to version 1.40.1.obrien2002-02-281-2/+2 * Update to 1.40.obrien2001-08-231-4/+8 * Update to version 1.38.obrien2000-08-091-2/+2 * Update with the new PORTNAME/PORTVERSION variablescpiazza2000-04-101-2/+2 * Restore useless version required comments.obrien2000-03-221-0/+1 * Remove the "version required" line.obrien2000-03-201-1/+0 * Style nits in the ports I maintain.obrien2000-02-131-2/+2