aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-view.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-02-18 01:00:31 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-02-18 01:00:31 +0800
commit0e572dcbe55f695ecbf05dccc5b525211e9a14b5 (patch)
treeb9b8b9e70921124d3ace72577a50de19c3749f09 /mail/em-folder-view.c
parent671c73fac1d9a0101a2e83a8667945139287cd7e (diff)
downloadgsoc2013-evolution-0e572dcbe55f695ecbf05dccc5b525211e9a14b5.tar.gz
gsoc2013-evolution-0e572dcbe55f695ecbf05dccc5b525211e9a14b5.tar.zst
gsoc2013-evolution-0e572dcbe55f695ecbf05dccc5b525211e9a14b5.zip
Set the hide_deleted bool on EMFolderView.
2004-02-17 Jeffrey Stedfast <fejj@ximian.com> * em-folder-browser.c (emfb_hide_deleted): Set the hide_deleted bool on EMFolderView. * em-folder-view.c (emfv_popup_delete): Fix Sarfraaz Ahmed's fix to only jump to the previous message if hide_deleted is set. Otherwise his fix gets extremely irritating. (emfv_list_key_press): Same. svn path=/trunk/; revision=24762
Diffstat (limited to 'mail/em-folder-view.c')
-rw-r--r--mail/em-folder-view.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c
index 0bad8e0221..bec6164409 100644
--- a/mail/em-folder-view.c
+++ b/mail/em-folder-view.c
@@ -612,8 +612,8 @@ emfv_popup_delete(GtkWidget *w, EMFolderView *emfv)
em_folder_view_mark_selected(emfv, CAMEL_MESSAGE_SEEN|CAMEL_MESSAGE_DELETED, CAMEL_MESSAGE_SEEN|CAMEL_MESSAGE_DELETED);
if (uids->len == 1) {
- if (!message_list_select(emfv->list, MESSAGE_LIST_SELECT_NEXT, 0, 0, FALSE))
- message_list_select(emfv->list, MESSAGE_LIST_SELECT_PREVIOUS, 0, 0, FALSE);
+ if (!message_list_select (emfv->list, MESSAGE_LIST_SELECT_NEXT, 0, 0, FALSE) && emfv->hide_deleted)
+ message_list_select (emfv->list, MESSAGE_LIST_SELECT_PREVIOUS, 0, 0, FALSE);
}
em_utils_uids_free(uids);
}
@@ -1835,7 +1835,7 @@ emfv_list_key_press(ETree *tree, int row, ETreePath path, int col, GdkEvent *ev,
else
emfv_popup_delete(NULL, emfv);
- if (!message_list_select (emfv->list, MESSAGE_LIST_SELECT_NEXT, 0, 0, FALSE))
+ if (!message_list_select (emfv->list, MESSAGE_LIST_SELECT_NEXT, 0, 0, FALSE) && emfv->hide_deleted)
message_list_select (emfv->list, MESSAGE_LIST_SELECT_PREVIOUS, 0, 0, FALSE);
break;
case GDK_Menu: