diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-01-19 10:05:33 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-01-19 10:05:33 +0800 |
commit | 6e62c059465558ec7f55b7819a86197517867549 (patch) | |
tree | 90745963ff347d2bd25b7740e91745c705b80bcb | |
parent | bb7e98c4ebc14f73fdc4f5430a4a09218b806401 (diff) | |
download | gsoc2013-evolution-6e62c059465558ec7f55b7819a86197517867549.tar.gz 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
-rw-r--r-- | mail/ChangeLog | 9 | ||||
-rw-r--r-- | mail/folder-browser-factory.c | 2 | ||||
-rw-r--r-- | mail/mail-callbacks.c | 24 | ||||
-rw-r--r-- | mail/mail-callbacks.h | 2 |
4 files changed, 37 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 0096395695..37bf886b41 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,12 @@ +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. + 2001-01-17 Jeffrey Stedfast <fejj@ximian.com> * mail-account-editor.c (construct): Anna's dialog now supports diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c index 792d94307e..13b62080bd 100644 --- a/mail/folder-browser-factory.c +++ b/mail/folder-browser-factory.c @@ -94,6 +94,8 @@ BonoboUIVerb verbs [] = { BONOBO_UI_UNSAFE_VERB ("MailGet", send_receieve_mail), BONOBO_UI_UNSAFE_VERB ("MailCompose", compose_msg), BONOBO_UI_UNSAFE_VERB ("MailStop", stop_threads), + BONOBO_UI_UNSAFE_VERB ("MailPrevious", previous_msg), + BONOBO_UI_UNSAFE_VERB ("MailNext", next_msg), BONOBO_UI_VERB_END }; 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; diff --git a/mail/mail-callbacks.h b/mail/mail-callbacks.h index 0d9ccd2183..7e6071c66c 100644 --- a/mail/mail-callbacks.h +++ b/mail/mail-callbacks.h @@ -56,6 +56,8 @@ void edit_msg (GtkWidget *widget, gpointer user_data); void save_msg (GtkWidget *widget, gpointer user_data); void view_msg (GtkWidget *widget, gpointer user_data); void view_source (GtkWidget *widget, gpointer user_data); +void next_msg (GtkWidget *widget, gpointer user_data); +void previous_msg (GtkWidget *widget, gpointer user_data); void select_all (BonoboUIComponent *uih, void *user_data, const char *path); void invert_selection (BonoboUIComponent *uih, void *user_data, const char *path); |