aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-08-20 09:27:59 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-08-20 09:27:59 +0800
commite135a96c078be4a7d2c25e4ec84473c75f6382b2 (patch)
tree43fedafc6d4f06225bbe16db3629bd45c502ca38
parent6bf0ba97e25261e2efc5c685c08cf52a75816d3b (diff)
downloadgsoc2013-evolution-e135a96c078be4a7d2c25e4ec84473c75f6382b2.tar
gsoc2013-evolution-e135a96c078be4a7d2c25e4ec84473c75f6382b2.tar.gz
gsoc2013-evolution-e135a96c078be4a7d2c25e4ec84473c75f6382b2.tar.bz2
gsoc2013-evolution-e135a96c078be4a7d2c25e4ec84473c75f6382b2.tar.lz
gsoc2013-evolution-e135a96c078be4a7d2c25e4ec84473c75f6382b2.tar.xz
gsoc2013-evolution-e135a96c078be4a7d2c25e4ec84473c75f6382b2.tar.zst
gsoc2013-evolution-e135a96c078be4a7d2c25e4ec84473c75f6382b2.zip
Also use the display name for the storage.
* e-shortcuts.c (load_shortcuts): Also use the display name for the storage. svn path=/trunk/; revision=12233
-rw-r--r--shell/ChangeLog5
-rw-r--r--shell/e-shortcuts.c20
2 files changed, 18 insertions, 7 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 11ae22875f..deeb935b5b 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,5 +1,10 @@
2001-08-19 Ettore Perazzoli <ettore@ximian.com>
+ * e-shortcuts.c (load_shortcuts): Also use the display name for
+ the storage.
+
+2001-08-19 Ettore Perazzoli <ettore@ximian.com>
+
* e-shortcuts.c (load_shortcuts): Use xmlMemStrdup() to override
the type as it's expected to be allocated by libxml later on.
Also, get the icon for the storage if the shortcut points to a
diff --git a/shell/e-shortcuts.c b/shell/e-shortcuts.c
index 5572207e60..28b74d239c 100644
--- a/shell/e-shortcuts.c
+++ b/shell/e-shortcuts.c
@@ -345,15 +345,21 @@ load_shortcuts (EShortcuts *shortcuts,
storage = e_storage_set_get_storage (priv->storage_set,
uri + E_SHELL_URI_PREFIX_LEN + 1);
- if (type != NULL)
- xmlFree (type);
+ if (storage != NULL) {
+ if (type != NULL)
+ xmlFree (type);
+ storage_type = e_storage_get_toplevel_node_type (storage);
+
+ if (storage_type == NULL)
+ type = NULL;
+ else
+ type = xmlMemStrdup (storage_type);
- storage_type = e_storage_get_toplevel_node_type (storage);
+ if (name != NULL)
+ xmlFree (name);
- if (storage_type == NULL)
- type = NULL;
- else
- type = xmlMemStrdup (storage_type);
+ name = xmlMemStrdup (e_storage_get_display_name (storage));
+ }
}
}