aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution
diff options
context:
space:
mode:
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