aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary-mail.c
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-09-18 04:47:33 +0800
committerIain Holmes <iain@src.gnome.org>2001-09-18 04:47:33 +0800
commit1a6a89e26527557cd09b186d1e47e7467db29e23 (patch)
tree81488f57e0be12f978a5f27bf2f8441063056e01 /my-evolution/e-summary-mail.c
parent45edb0148a8d013fe2520461f3ad3439b285cc61 (diff)
downloadgsoc2013-evolution-1a6a89e26527557cd09b186d1e47e7467db29e23.tar
gsoc2013-evolution-1a6a89e26527557cd09b186d1e47e7467db29e23.tar.gz
gsoc2013-evolution-1a6a89e26527557cd09b186d1e47e7467db29e23.tar.bz2
gsoc2013-evolution-1a6a89e26527557cd09b186d1e47e7467db29e23.tar.lz
gsoc2013-evolution-1a6a89e26527557cd09b186d1e47e7467db29e23.tar.xz
gsoc2013-evolution-1a6a89e26527557cd09b186d1e47e7467db29e23.tar.zst
gsoc2013-evolution-1a6a89e26527557cd09b186d1e47e7467db29e23.zip
Only update the display when we receive a notify about a mail folder we are displaying
svn path=/trunk/; revision=12909
Diffstat (limited to 'my-evolution/e-summary-mail.c')
-rw-r--r--my-evolution/e-summary-mail.c22
1 files changed, 19 insertions, 3 deletions
diff --git a/my-evolution/e-summary-mail.c b/my-evolution/e-summary-mail.c
index 71ab1c6cfa..a8f6d28ba1 100644
--- a/my-evolution/e-summary-mail.c
+++ b/my-evolution/e-summary-mail.c
@@ -254,6 +254,7 @@ mail_change_notify (BonoboListener *listener,
GNOME_Evolution_FolderInfo_MessageCount *count;
ESummaryMail *mail;
ESummaryMailFolder *folder;
+ GList *p;
mail = summary->mail;
@@ -267,9 +268,24 @@ mail_change_notify (BonoboListener *listener,
folder->count = count->count;
folder->unread = count->unread;
- /* Regen HTML */
- e_summary_mail_generate_html (summary);
- e_summary_draw (summary);
+ /* Are we displaying this folder? */
+ for (p = summary->preferences->display_folders; p; p = p->next) {
+ char *uri;
+
+ uri = g_strconcat ("file://", p->data, NULL);
+
+ g_print ("uri: %s\t%s\n", uri, folder->path);
+ if (strcmp (uri, folder->path) == 0) {
+ /* Regen HTML */
+ e_summary_mail_generate_html (summary);
+ e_summary_draw (summary);
+
+ g_free (uri);
+ return;
+ }
+
+ g_free (uri);
+ }
}
static void