aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-message-browser.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-05-07 14:48:38 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-05-07 14:48:38 +0800
commit27176351ae38247a7b7c656e73727d704b12c63e (patch)
tree1ef7b1d5d6dba2fc33803dc1c512d654a4b5225a /mail/em-message-browser.c
parent3fcf0b4edc4e1a95ceae5693bd7a65690c3251f6 (diff)
downloadgsoc2013-evolution-27176351ae38247a7b7c656e73727d704b12c63e.tar.gz
gsoc2013-evolution-27176351ae38247a7b7c656e73727d704b12c63e.tar.zst
gsoc2013-evolution-27176351ae38247a7b7c656e73727d704b12c63e.zip
** See bug #57935.
2004-05-07 Not Zed <NotZed@Ximian.com> ** See bug #57935. * em-folder-view.c (emfv_set_message): add new arg, nomarkseen, don't mark the selected message seen once its loaded. (emfv_list_message_selected): clear the nomarkseen flag once we've processed the selection. (emfv_list_done_message_selected): handle the nomarkseen flag, don't mark a message seen if it was explictly selected. * em-folder-browser.c (emfb_list_built): use em_folder_view_select_message rather than doing it via the messagelist directly. svn path=/trunk/; revision=25821
Diffstat (limited to 'mail/em-message-browser.c')
-rw-r--r--mail/em-message-browser.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mail/em-message-browser.c b/mail/em-message-browser.c
index 9ddbae1327..63517d38d2 100644
--- a/mail/em-message-browser.c
+++ b/mail/em-message-browser.c
@@ -52,7 +52,7 @@ struct _EMMessageBrowserPrivate {
GtkWidget *preview; /* container for message display */
};
-static void emmb_set_message(EMFolderView *emfv, const char *uid);
+static void emmb_set_message(EMFolderView *emfv, const char *uid, int nomarkseen);
static void emmb_activate(EMFolderView *emfv, BonoboUIComponent *uic, int state);
static EMFolderViewClass *emmb_parent;
@@ -230,12 +230,12 @@ GtkWidget *em_message_browser_window_new(void)
/* ********************************************************************** */
static void
-emmb_set_message(EMFolderView *emfv, const char *uid)
+emmb_set_message(EMFolderView *emfv, const char *uid, int nomarkseen)
{
EMMessageBrowser *emmb = (EMMessageBrowser *) emfv;
CamelMessageInfo *info;
- emmb_parent->set_message(emfv, uid);
+ emmb_parent->set_message(emfv, uid, nomarkseen);
if (uid == NULL)
return;
@@ -246,7 +246,8 @@ emmb_set_message(EMFolderView *emfv, const char *uid)
}
/* Well we don't know if it got displayed (yet) ... but whatever ... */
- camel_folder_set_message_flags(emfv->folder, uid, CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN);
+ if (!nomarkseen)
+ camel_folder_set_message_flags(emfv->folder, uid, CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN);
}
static void