aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution
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
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')
-rw-r--r--my-evolution/ChangeLog5
-rw-r--r--my-evolution/e-summary-mail.c22
2 files changed, 24 insertions, 3 deletions
diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog
index b01c8b3297..49811c158f 100644
--- a/my-evolution/ChangeLog
+++ b/my-evolution/ChangeLog
@@ -1,5 +1,10 @@
2001-09-17 Iain Holmes <iain@ximian.com>
+ * e-summary-mail (mail_change_notify): Only redraw the display when
+ we receive a notify about a folder we are displaying
+
+2001-09-17 Iain Holmes <iain@ximian.com>
+
* e-summary-calendar.c (uids_to_array): Correctly use qsort.
(e_summary_calendar_event_sort_func): Dereference the e1 and e2.
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