aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary-mail.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-08-09 03:40:51 +0800
committerDan Winship <danw@src.gnome.org>2002-08-09 03:40:51 +0800
commita2726b7dc3a10c8660fc8377334c2a9f279387a8 (patch)
tree5f6cd51c8891e160edd760f72aa4b913b8417d2c /my-evolution/e-summary-mail.c
parentaab9b5cce1eece7cfc7c17057f3fa632982fa44e (diff)
downloadgsoc2013-evolution-a2726b7dc3a10c8660fc8377334c2a9f279387a8.tar.gz
gsoc2013-evolution-a2726b7dc3a10c8660fc8377334c2a9f279387a8.tar.zst
gsoc2013-evolution-a2726b7dc3a10c8660fc8377334c2a9f279387a8.zip
Only get folder info if this is a folder we're displaying.
* e-summary-mail.c (update_folder_cb): Only get folder info if this is a folder we're displaying. svn path=/trunk/; revision=17746
Diffstat (limited to 'my-evolution/e-summary-mail.c')
-rw-r--r--my-evolution/e-summary-mail.c36
1 files changed, 10 insertions, 26 deletions
diff --git a/my-evolution/e-summary-mail.c b/my-evolution/e-summary-mail.c
index aa9f81e57e..5ec4e4b8be 100644
--- a/my-evolution/e-summary-mail.c
+++ b/my-evolution/e-summary-mail.c
@@ -259,36 +259,20 @@ update_folder_cb (EvolutionStorageListener *listener,
int unread_count,
StorageInfo *si)
{
- char *evolution_dir;
- char *proto;
- char *uri;
-
- if (strcmp (si->name, _("VFolders")) == 0) {
- evolution_dir = gnome_util_prepend_user_home ("evolution/vfolder");
- uri = g_strdup_printf ("vfolder:%s#%s", evolution_dir,
- path + 1);
- g_free (evolution_dir);
- } else if (strcmp (si->name, _("Local Folders")) == 0) {
- evolution_dir = gnome_util_prepend_user_home ("evolution/local");
- proto = g_strconcat ("file://", evolution_dir, NULL);
- g_free (evolution_dir);
- uri = e_path_to_physical (proto, path);
- } else {
- GNOME_Evolution_Folder *folder;
- CORBA_Environment ev;
+ ESummaryMailFolder *mail_folder;
+ GList *p;
- CORBA_exception_init (&ev);
- folder = GNOME_Evolution_Storage_getFolderAtPath (si->storage, path, &ev);
+ mail_folder = g_hash_table_lookup (folder_store->folders, path);
+ if (mail_folder == NULL) {
+ return;
+ }
- if (BONOBO_EX (&ev))
+ for (p = folder_store->shown; p; p = p->next) {
+ if (p->data == mail_folder) {
+ g_idle_add (e_summary_mail_idle_get_info, mail_folder->path);
return;
-
- uri = g_strdup (folder->physicalUri);
- CORBA_free (folder);
- CORBA_exception_free (&ev);
+ }
}
-
- g_idle_add (e_summary_mail_idle_get_info, uri);
}
static void