aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-01-19 10:05:33 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-01-19 10:05:33 +0800
commit6e62c059465558ec7f55b7819a86197517867549 (patch)
tree90745963ff347d2bd25b7740e91745c705b80bcb /mail/mail-callbacks.c
parentbb7e98c4ebc14f73fdc4f5430a4a09218b806401 (diff)
downloadgsoc2013-evolution-6e62c059465558ec7f55b7819a86197517867549.tar
gsoc2013-evolution-6e62c059465558ec7f55b7819a86197517867549.tar.gz
gsoc2013-evolution-6e62c059465558ec7f55b7819a86197517867549.tar.bz2
gsoc2013-evolution-6e62c059465558ec7f55b7819a86197517867549.tar.lz
gsoc2013-evolution-6e62c059465558ec7f55b7819a86197517867549.tar.xz
gsoc2013-evolution-6e62c059465558ec7f55b7819a86197517867549.tar.zst
gsoc2013-evolution-6e62c059465558ec7f55b7819a86197517867549.zip
Added the next/previous toolbar buttons.
2001-01-18 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-factory.c: Added the next/previous toolbar buttons. * mail-callbacks.c (next_msg): New callback so we can have a next toolbar button. (previous_msg): Same but for previous. svn path=/trunk/; revision=7630
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index a1f5ce3852..fa3125bf15 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -918,6 +918,30 @@ undelete_msg (GtkWidget *button, gpointer user_data)
flag_messages(FOLDER_BROWSER(user_data), CAMEL_MESSAGE_DELETED, 0);
}
+void
+next_msg (GtkWidget *button, gpointer user_data)
+{
+ FolderBrowser *fb = FOLDER_BROWSER (user_data);
+ int row;
+
+ row = e_table_get_cursor_row (fb->message_list->table);
+ message_list_select (fb->message_list, row,
+ MESSAGE_LIST_SELECT_NEXT,
+ 0, CAMEL_MESSAGE_SEEN);
+}
+
+void
+previous_msg (GtkWidget *button, gpointer user_data)
+{
+ FolderBrowser *fb = FOLDER_BROWSER (user_data);
+ int row;
+
+ row = e_table_get_cursor_row (fb->message_list->table);
+ message_list_select (fb->message_list, row,
+ MESSAGE_LIST_SELECT_PREVIOUS,
+ 0, CAMEL_MESSAGE_SEEN);
+}
+
static void expunged_folder(CamelFolder *f, void *data)
{
FolderBrowser *fb = data;