aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/mail-ops.c11
2 files changed, 13 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 04882c150b..152dcb04b3 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2000-06-01 Dan Winship <danw@helixcode.com>
+ * mail-ops.c (delete_msg): Add a quick hack to move the selection
+ down a row when you delete a message.
+
* mail-format.c (handle_message_rfc822): use <blockquote> rather
than <center><table border=1 width=95%> to frame the embedded
message. If <pre> text in the subtable won't fit in the 95% width,
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 9ddbc430d4..12c2162110 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -31,6 +31,7 @@
#include "e-util/e-setup.h"
#include "filter/filter-editor.h"
#include "filter/filter-driver.h"
+#include "widgets/e-table/e-table.h"
/* FIXME: is there another way to do this? */
#include "Evolution.h"
@@ -444,7 +445,8 @@ void
delete_msg (GtkWidget *button, gpointer user_data)
{
FolderBrowser *fb = user_data;
-
+ int row;
+
if (fb->mail_display->current_message) {
guint32 flags;
@@ -454,6 +456,13 @@ delete_msg (GtkWidget *button, gpointer user_data)
camel_mime_message_set_flags(fb->mail_display->current_message, CAMEL_MESSAGE_DELETED, ~flags);
printf("Message %s set to %s\n", fb->mail_display->current_message->message_uid,
flags&CAMEL_MESSAGE_DELETED ? "UNDELETED" : "DELETED");
+
+
+ /* Move the cursor down a row... FIXME: should skip other
+ * deleted messages.
+ */
+ row = e_table_get_selected_view_row (E_TABLE (fb->message_list->etable));
+ e_table_select_row (E_TABLE (fb->message_list->etable), row + 1);
}
}