[Evolution] Another Small patch
- From: Ariel Rios <ariel arcavia com>
- To: evolution helixcode com
- Subject: [Evolution] Another Small patch
- Date: 04 Sep 2000 09:01:11 +0500
HI there,
A small patch to enable evolution-mail to automatically go to the next
message
when a single file is delete. Stupid option but useful option I think
ariel
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.500
diff -u -r1.500 ChangeLog
--- ChangeLog 2000/09/03 15:13:48 1.500
+++ ChangeLog 2000/09/04 04:52:32
@@ -1,3 +1,8 @@
+2000-09-03 Ariel Rios <ariel arcavia com>
+
+ * mail-callbacks.c (delete_msg): When deleting individual messages, we
then
+ automatically select the next message in the list.
+
2000-09-03 JP Rosevear <jpr helixcode com>
* mail-config.c (mail_config_add_news): Copy the passed in item
Index: mail-callbacks.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/mail-callbacks.c,v
retrieving revision 1.21
diff -u -r1.21 mail-callbacks.c
--- mail-callbacks.c 2000/09/03 05:56:14 1.21
+++ mail-callbacks.c 2000/09/04 04:52:47
@@ -570,9 +570,13 @@
FolderBrowser *fb = user_data;
MessageList *ml = fb->message_list;
GPtrArray *uids;
+ ETable *e_table = E_TABLE_SCROLLED (fb->message_list->etable)->table;
+ gint row;
uids = g_ptr_array_new ();
message_list_foreach (ml, enumerate_msg, uids);
+
+
if (uids->len == 1) {
guint32 flags;
char *uid = uids->pdata[0];
@@ -588,6 +592,12 @@
CAMEL_MESSAGE_DELETED,
CAMEL_MESSAGE_DELETED);
}
+
+ row = e_table_get_cursor_row (e_table);
+
+ if (row > 0)
+ e_table_set_cursor_row (e_table, row+1);
+
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]