aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-06-01 04:49:41 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-06-01 04:49:41 +0000
commitf7b0e6bfdb8e043b59134a85a049522289d0c1c7 (patch)
tree6239c5b8dc5f6cdceeff40c1e335b5edfd3ac932 /src
parent3b2036ecb32a9dbf3b1f36aab42e755773f399c7 (diff)
don't include the current message for 'View/Go to/(Prev|Next) (unread|new) message'.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@303 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r--src/summaryview.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/summaryview.c b/src/summaryview.c
index dd848f9d..330dc0a2 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -1093,6 +1093,7 @@ static void summary_select_next_flagged(SummaryView *summaryview,
static void summary_select_next_flagged_or_folder(SummaryView *summaryview,
MsgPermFlags flags,
+ gboolean start_from_next,
const gchar *title,
const gchar *ask_msg,
const gchar *notice)
@@ -1107,7 +1108,7 @@ static void summary_select_next_flagged_or_folder(SummaryView *summaryview,
}
while (summary_find_next_flagged_msg
- (summaryview, &next, &iter, flags, FALSE) == FALSE) {
+ (summaryview, &next, &iter, flags, start_from_next) == FALSE) {
AlertValue val;
val = alertpanel(title, ask_msg,
@@ -1118,6 +1119,7 @@ static void summary_select_next_flagged_or_folder(SummaryView *summaryview,
folderview_select_next_unread(summaryview->folderview);
return;
} else if (val == G_ALERTALTERNATE) {
+ start_from_next = FALSE;
if (!gtk_tree_model_get_iter_first(model, &iter))
return;
} else
@@ -1131,7 +1133,7 @@ static void summary_select_next_flagged_or_folder(SummaryView *summaryview,
void summary_select_prev_unread(SummaryView *summaryview)
{
- summary_select_prev_flagged(summaryview, MSG_UNREAD, FALSE,
+ summary_select_prev_flagged(summaryview, MSG_UNREAD, TRUE,
_("No more unread messages"),
_("No unread message found. "
"Search from the end?"),
@@ -1140,7 +1142,7 @@ void summary_select_prev_unread(SummaryView *summaryview)
void summary_select_next_unread(SummaryView *summaryview)
{
- summary_select_next_flagged_or_folder(summaryview, MSG_UNREAD,
+ summary_select_next_flagged_or_folder(summaryview, MSG_UNREAD, TRUE,
_("No more unread messages"),
_("No unread message found. "
"Go to next folder?"),
@@ -1149,7 +1151,7 @@ void summary_select_next_unread(SummaryView *summaryview)
void summary_select_prev_new(SummaryView *summaryview)
{
- summary_select_prev_flagged(summaryview, MSG_NEW, FALSE,
+ summary_select_prev_flagged(summaryview, MSG_NEW, TRUE,
_("No more new messages"),
_("No new message found. "
"Search from the end?"),
@@ -1158,7 +1160,7 @@ void summary_select_prev_new(SummaryView *summaryview)
void summary_select_next_new(SummaryView *summaryview)
{
- summary_select_next_flagged_or_folder(summaryview, MSG_NEW,
+ summary_select_next_flagged_or_folder(summaryview, MSG_NEW, TRUE,
_("No more new messages"),
_("No new message found. "
"Go to next folder?"),