From 4f3a4c8234238faaac1dea1ae68cae4d5dca3a5c Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Thu, 2 Nov 2000 00:42:35 +0000 Subject: Moving the executive summarys now :) mail-summary now has clickable names to change to that view executive summary remembers what components are running when you close. selection now blocks ES updating so it won't be cleared. svn path=/trunk/; revision=6330 --- mail/ChangeLog | 10 ++++++++++ mail/mail-summary.c | 15 ++++++++++----- 2 files changed, 20 insertions(+), 5 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index b1a9474903..276e1e2462 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,13 @@ +2000-10-30 Iain Holmes + + * mail-summary.c (generate_folder_summaries): Fix spelling :) + Set folder->uri to NULL for the Inbox. + +2000-10-26 Iain Holmes + + * mail-summary.c (generate_html_summary): Add view:// uris to + switch the display to that folder. + 2000-11-01 Jeffrey Stedfast * folder-browser-factory.c: Hmmm, someone can't spell Filder, diff --git a/mail/mail-summary.c b/mail/mail-summary.c index 560fba8a05..9fa9023022 100644 --- a/mail/mail-summary.c +++ b/mail/mail-summary.c @@ -48,6 +48,7 @@ typedef struct { CamelFolder *folder; char *name; + char *uri; int total, unread; } FolderSummary; @@ -129,6 +130,7 @@ static void folder_free (FolderSummary *folder) { g_free (folder->name); + g_free (folder->uri); } static void @@ -162,7 +164,7 @@ generate_html_summary (MailSummary *summary) /* Inbox first */ fs = summary->folders[0]; - tmp = g_strdup_printf ("
%s:" + tmp = g_strdup_printf ("", fs->name, fs->unread, fs->total); @@ -171,9 +173,9 @@ generate_html_summary (MailSummary *summary) char *tmp2; fs = summary->folders[i]; - tmp2 = g_strdup_printf ("" + tmp2 = g_strdup_printf ("" "", - fs->name, fs->unread, fs->total); + fs->uri, fs->name, fs->unread, fs->total); tmp = ret_html; ret_html = g_strconcat (ret_html, tmp2, NULL); @@ -260,7 +262,7 @@ message_changed_cb (CamelObject *folder, } static void -generate_folder_summarys (MailSummary *summary) +generate_folder_summaries (MailSummary *summary) { int numfolders = 1; /* Always at least the Inbox */ char *user, *system; @@ -289,9 +291,11 @@ generate_folder_summarys (MailSummary *summary) /* Inbox */ fs = summary->folders[0] = g_new (FolderSummary, 1); fs->name = g_strdup ("Inbox"); + fs->uri = NULL; mail_tool_camel_lock_up (); ex = camel_exception_new (); fs->folder = mail_tool_get_local_inbox (ex); + fs->total = camel_folder_get_message_count (fs->folder); fs->unread = camel_folder_get_unread_message_count (fs->folder); camel_exception_free (ex); @@ -318,6 +322,7 @@ generate_folder_summarys (MailSummary *summary) uri = g_strconcat ("vfolder:", rule->name, NULL); mail_tool_camel_lock_up (); fs->folder = vfolder_uri_to_folder (uri, ex); + fs->uri = g_strconcat ("evolution:/VFolders/", rule->name, NULL); g_free (uri); fs->total = camel_folder_get_message_count (fs->folder); @@ -355,7 +360,7 @@ create_summary_view (ExecutiveSummaryComponent *component, summary->folder_to_summary = g_hash_table_new (NULL, NULL); summary->view = view; - generate_folder_summarys (summary); + generate_folder_summaries (summary); html = generate_html_summary (summary); -- cgit v1.2.3
%s:" "%d/%d
%s:
%s:%d/%d