aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJason Leach <jleach@ximian.com>2001-08-11 01:43:15 +0800
committerJacob Leach <jleach@src.gnome.org>2001-08-11 01:43:15 +0800
commita6d3ee31f3454b8938dde2ae1cc756296a56f842 (patch)
tree7df082ebf9c534e133037f4f95c3c88db32397a6 /mail
parent5ffaca0f8dc9d56783be9e8dd5c6661bde2269b2 (diff)
downloadgsoc2013-evolution-a6d3ee31f3454b8938dde2ae1cc756296a56f842.tar
gsoc2013-evolution-a6d3ee31f3454b8938dde2ae1cc756296a56f842.tar.gz
gsoc2013-evolution-a6d3ee31f3454b8938dde2ae1cc756296a56f842.tar.bz2
gsoc2013-evolution-a6d3ee31f3454b8938dde2ae1cc756296a56f842.tar.lz
gsoc2013-evolution-a6d3ee31f3454b8938dde2ae1cc756296a56f842.tar.xz
gsoc2013-evolution-a6d3ee31f3454b8938dde2ae1cc756296a56f842.tar.zst
gsoc2013-evolution-a6d3ee31f3454b8938dde2ae1cc756296a56f842.zip
If marking messages as unread, remove the automatic mark-as-read timer.
2001-08-10 Jason Leach <jleach@ximian.com> * mail-callbacks.c (mark_as_unseen): If marking messages as unread, remove the automatic mark-as-read timer. Bug #4153. svn path=/trunk/; revision=11882
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-callbacks.c10
2 files changed, 14 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index f28576dddc..4ce63e1ad8 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2001-08-10 Jason Leach <jleach@ximian.com>
+
+ * mail-callbacks.c (mark_as_unseen): If marking messages as
+ unread, remove the automatic mark-as-read timer. Bug #4153.
+
2001-08-08 Peter Williams <peterw@ximian.com>
* component-factory.c (mail_load_storages): Don't load the storage
@@ -88,7 +93,6 @@
* message-browser.c (set_bonobo_ui): Remove the "Customize
Toolbar" thing.
->>>>>>> 1.1526
2001-08-08 Not Zed <NotZed@Ximian.com>
* mail-ops.c (send_mail_send): Dont double-register this
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 99d7444c94..08a13954e4 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -1268,7 +1268,15 @@ mark_as_seen (BonoboUIComponent *uih, void *user_data, const char *path)
void
mark_as_unseen (BonoboUIComponent *uih, void *user_data, const char *path)
{
- flag_messages (FOLDER_BROWSER (user_data), CAMEL_MESSAGE_SEEN, 0);
+ FolderBrowser *fb = FOLDER_BROWSER (user_data);
+
+ /* Remove the automatic mark-as-read timer first */
+ if (fb->seen_id) {
+ gtk_timeout_remove (fb->seen_id);
+ fb->seen_id = 0;
+ }
+
+ flag_messages (fb, CAMEL_MESSAGE_SEEN, 0);
}
void