aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-03-28 08:19:25 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-03-28 08:19:25 +0000
commit5636540b3b84633ddf6472e0cc94d9028247f47f (patch)
treed404e5197052a859aab1ed66c4b6899f0b2293cc
parentcf16fcf3d54978b9b097bd6f4573b88fb5099a9a (diff)
fixed select next unread.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1580 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.ja6
-rw-r--r--src/folderview.c10
3 files changed, 20 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 897dde75..31832dd6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2007-03-28
+ * src/folderview.c: folderview_select_next_unread(): temporarily
+ disable remember_last_selected option (fixes select next unread).
+
+2007-03-28
+
* version 2.4.0beta6
2007-03-27
diff --git a/ChangeLog.ja b/ChangeLog.ja
index 8657fbbf..8ea74bc6 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,5 +1,11 @@
2007-03-28
+ * src/folderview.c: folderview_select_next_unread():
+ remember_last_selected オプションを一時的に無効にするようにした
+ (次の未読選択の修正)。
+
+2007-03-28
+
* version 2.4.0beta6
2007-03-27
diff --git a/src/folderview.c b/src/folderview.c
index 9305faea..cdb6e566 100644
--- a/src/folderview.c
+++ b/src/folderview.c
@@ -711,6 +711,7 @@ void folderview_select_next_unread(FolderView *folderview)
{
GtkTreeModel *model = GTK_TREE_MODEL(folderview->store);
GtkTreeIter iter, next;
+ gboolean remember_last;
if (folderview->opened) {
GtkTreePath *path;
@@ -725,7 +726,10 @@ void folderview_select_next_unread(FolderView *folderview)
return;
}
if (folderview_find_next_unread(model, &next, &iter)) {
+ remember_last = prefs_common.remember_last_selected;
+ prefs_common.remember_last_selected = FALSE;
folderview_select_row(folderview, &next);
+ prefs_common.remember_last_selected = remember_last;
return;
}
@@ -733,8 +737,12 @@ void folderview_select_next_unread(FolderView *folderview)
return;
/* search again from the first row */
- if (folderview_find_next_unread(model, &next, NULL))
+ if (folderview_find_next_unread(model, &next, NULL)) {
+ remember_last = prefs_common.remember_last_selected;
+ prefs_common.remember_last_selected = FALSE;
folderview_select_row(folderview, &next);
+ prefs_common.remember_last_selected = remember_last;
+ }
}
FolderItem *folderview_get_selected_item(FolderView *folderview)