diff options
author | Dan Winship <danw@src.gnome.org> | 2000-06-02 08:34:06 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-06-02 08:34:06 +0800 |
commit | 9f325587d4b11c0959d5d6aa415236250da073d9 (patch) | |
tree | 580fa35f90832a0e80432a403e9f45eff1400874 /mail/mail-ops.c | |
parent | 9b20ec31fa7fa1a438d124a6909ab2f722ab8a79 (diff) | |
download | gsoc2013-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/mail-ops.c')
-rw-r--r-- | mail/mail-ops.c | 11 |
1 files changed, 10 insertions, 1 deletions
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); } } |