diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-06-01 04:49:41 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-06-01 04:49:41 +0000 |
commit | f7b0e6bfdb8e043b59134a85a049522289d0c1c7 (patch) | |
tree | 6239c5b8dc5f6cdceeff40c1e335b5edfd3ac932 | |
parent | 3b2036ecb32a9dbf3b1f36aab42e755773f399c7 (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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.ja | 5 | ||||
-rw-r--r-- | src/summaryview.c | 12 |
3 files changed, 17 insertions, 5 deletions
@@ -1,3 +1,8 @@ +2005-06-01 + + * src/summaryview.c: don't include the current message for + "View/Go to/(Prev|Next) (unread|new) message". + 2005-05-31 * src/imap.c: imap_scan_tree_recursive(): disabled scanning of folders diff --git a/ChangeLog.ja b/ChangeLog.ja index 2a64d8bd..fde8b83a 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,3 +1,8 @@ +2005-06-01 + + * src/summaryview.c: 「表示/移動/(前の|次の)(未読|新着)メッセージ」 + で現在のメッセージを含まないようにした。 + 2005-05-31 * src/imap.c: imap_scan_tree_recursive(): STATUS コマンドはコストが 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?"), |