aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-06-02 08:34:06 +0800
committerDan Winship <danw@src.gnome.org>2000-06-02 08:34:06 +0800
commit9f325587d4b11c0959d5d6aa415236250da073d9 (patch)
tree580fa35f90832a0e80432a403e9f45eff1400874 /mail
parent9b20ec31fa7fa1a438d124a6909ab2f722ab8a79 (diff)
downloadgsoc2013-evolution-9f325587d4b11c0959d5d6aa415236250da073d9.tar
gsoc2013-evolution-9f325587d4b11c0959d5d6aa415236250da073d9.tar.gz
gsoc2013-evolution-9f325587d4b11c0959d5d6aa415236250da073d9.tar.bz2
gsoc2013-evolution-9f325587d4b11c0959d5d6aa415236250da073d9.tar.lz
gsoc2013-evolution-9f325587d4b11c0959d5d6aa415236250da073d9.tar.xz
gsoc2013-evolution-9f325587d4b11c0959d5d6aa415236250da073d9.tar.zst
gsoc2013-evolution-9f325587d4b11c0959d5d6aa415236250da073d9.zip
Add a quick hack to move the selection down a row when you delete a
* mail-ops.c (delete_msg): Add a quick hack to move the selection down a row when you delete a message. svn path=/trunk/; revision=3355
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);
}
}