diff options
author | Miguel de Icaza <miguel@helixcode.com> | 2000-10-04 13:00:51 +0800 |
---|---|---|
committer | Miguel de Icaza <miguel@src.gnome.org> | 2000-10-04 13:00:51 +0800 |
commit | 1b07e47ee680f3b513f8e1a9484807a3e55f301e (patch) | |
tree | 95f78c6f07f682db9996f90249f627dc599755dd /mail/mail-callbacks.c | |
parent | 4d25bee5382622ca6e3e84c931860eb8dec10a75 (diff) | |
download | gsoc2013-evolution-1b07e47ee680f3b513f8e1a9484807a3e55f301e.tar.gz gsoc2013-evolution-1b07e47ee680f3b513f8e1a9484807a3e55f301e.tar.zst gsoc2013-evolution-1b07e47ee680f3b513f8e1a9484807a3e55f301e.zip |
Added a comment to a piece of code that I was trying to "fix" just to find
2000-10-04 Miguel de Icaza <miguel@helixcode.com>
* mail-callbacks.c (delete_msg): Added a comment to a piece of
code that I was trying to "fix" just to find that the strange
behaviour here that was about to be fixed, was actually a fix to
the problem I was trying to fix.
So put the original comments from Dan, and will hope that someone
with more knowledge about this can figure why the delete key wont
delete messages and select the next unread message.
svn path=/trunk/; revision=5701
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 6545db3b17..1cbc1bc5a7 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -629,6 +629,14 @@ delete_msg (GtkWidget *button, gpointer user_data) uids = g_ptr_array_new (); message_list_foreach (ml, enumerate_msg, uids); + + /* + * Toggling a flag is an "instantaneous" operation, so if + * we're only doing one, just do it and return, rather than + * queueing it for the other thread. This makes the "Delete" + * key work correctly (move to the next message) again. + * - Dan + */ if (uids->len == 1) { guint32 flags; char *uid = uids->pdata[0]; |