From 6722d22f5fba8217d396c0d8555bf78ffb0634e9 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 26 Apr 2001 23:36:10 +0000 Subject: Don't filter on Seen status. (previous_msg): Same. (next_unread_msg): New 2001-04-26 Jeffrey Stedfast * mail-callbacks.c (next_msg): Don't filter on Seen status. (previous_msg): Same. (next_unread_msg): New function that does what the old callback next_msg callback did (only better named). (previous_unread_msg): Same. svn path=/trunk/; revision=9605 --- mail/mail-callbacks.c | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'mail/mail-callbacks.c') diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 18407ee6a4..8f42ebdbe8 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -707,7 +707,7 @@ reply_to_all (GtkWidget *widget, gpointer user_data) return; mail_reply (fb->folder, fb->mail_display->current_message, - fb->message_list->cursor_uid, TRUE); + fb->message_list->cursor_uid, TRUE); } void @@ -1332,6 +1332,26 @@ next_msg (GtkWidget *button, gpointer user_data) FolderBrowser *fb = FOLDER_BROWSER (user_data); int row; + row = e_tree_row_of_node(fb->message_list->tree, e_tree_get_cursor (fb->message_list->tree)); + message_list_select (fb->message_list, row, MESSAGE_LIST_SELECT_NEXT, 0, 0); +} + +void +previous_msg (GtkWidget *button, gpointer user_data) +{ + FolderBrowser *fb = FOLDER_BROWSER (user_data); + int row; + + row = e_tree_row_of_node(fb->message_list->tree, e_tree_get_cursor (fb->message_list->tree)); + message_list_select (fb->message_list, row, MESSAGE_LIST_SELECT_PREVIOUS, 0, 0); +} + +void +next_unread_msg (GtkWidget *button, gpointer user_data) +{ + FolderBrowser *fb = FOLDER_BROWSER (user_data); + int row; + row = e_tree_row_of_node(fb->message_list->tree, e_tree_get_cursor (fb->message_list->tree)); message_list_select (fb->message_list, row, MESSAGE_LIST_SELECT_NEXT, @@ -1339,7 +1359,7 @@ next_msg (GtkWidget *button, gpointer user_data) } void -previous_msg (GtkWidget *button, gpointer user_data) +previous_unread_msg (GtkWidget *button, gpointer user_data) { FolderBrowser *fb = FOLDER_BROWSER (user_data); int row; -- cgit