aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-28 20:49:26 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:21 +0800
commit8afd0b13add0e6dd11a4dd49ece236f1cec0e61d (patch)
tree0917864f4eb53db632c60d0db13ff1c2d1264a93 /mail/em-folder-tree.c
parent3f67582bbd4aaa034413bf3bc9bdf3e476f48c9f (diff)
downloadgsoc2013-evolution-8afd0b13add0e6dd11a4dd49ece236f1cec0e61d.tar
gsoc2013-evolution-8afd0b13add0e6dd11a4dd49ece236f1cec0e61d.tar.gz
gsoc2013-evolution-8afd0b13add0e6dd11a4dd49ece236f1cec0e61d.tar.bz2
gsoc2013-evolution-8afd0b13add0e6dd11a4dd49ece236f1cec0e61d.tar.lz
gsoc2013-evolution-8afd0b13add0e6dd11a4dd49ece236f1cec0e61d.tar.xz
gsoc2013-evolution-8afd0b13add0e6dd11a4dd49ece236f1cec0e61d.tar.zst
gsoc2013-evolution-8afd0b13add0e6dd11a4dd49ece236f1cec0e61d.zip
Remove display_name from EMFolderTreeModelStoreInfo.
It was only being used to look up an EAccount UID, but we already had the CamelStore, and the CamelStore UID is the same as the EAccount UID.
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r--mail/em-folder-tree.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index ab1273aeb1..1a045991ed 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -551,11 +551,10 @@ folder_tree_maybe_expand_row (EMFolderTreeModel *model,
EMFolderTree *folder_tree)
{
EMFolderTreePrivate *priv = folder_tree->priv;
- struct _EMFolderTreeModelStoreInfo *si;
CamelStore *store;
- EAccount *account;
gchar *full_name;
gchar *key;
+ const gchar *uid;
struct _selected_uri *u;
gtk_tree_model_get (
@@ -563,16 +562,8 @@ folder_tree_maybe_expand_row (EMFolderTreeModel *model,
COL_STRING_FULL_NAME, &full_name,
COL_POINTER_CAMEL_STORE, &store, -1);
- si = em_folder_tree_model_lookup_store_info (model, store);
- if ((account = e_get_account_by_name (si->display_name))) {
- key = g_strdup_printf ("%s/%s", account->uid, full_name ? full_name : "");
- } else if (CAMEL_IS_VEE_STORE (store)) {
- /* vfolder store */
- key = g_strdup_printf ("vfolder/%s", full_name ? full_name : "");
- } else {
- /* local store */
- key = g_strdup_printf ("local/%s", full_name ? full_name : "");
- }
+ uid = camel_service_get_uid (CAMEL_SERVICE (store));
+ key = g_strdup_printf ("%s/%s", uid, full_name ? full_name : "");
u = g_hash_table_lookup (priv->select_uris_table, key);
if (u) {