{"Message/Mark/MarkRead", NULL, N_("Mark as rea_d"), NULL, NULL, G_CALLBACK(mark_as_read_cb) },
{"Message/Mark/MarkUnread", NULL, N_("Mark as unr_ead"), "<shift>exclam", NULL, G_CALLBACK(mark_as_unread_cb) },
/* separation */
- {"Message/Mark/MarkAllRead", NULL, N_("Mark all read"), NULL, NULL, G_CALLBACK(mark_all_read_cb) },
- {"Message/Mark/MarkAllUnread", NULL, N_("Mark all unread"), NULL, NULL, G_CALLBACK(mark_all_unread_cb) },
+ {"Message/Mark/MarkAllRead", NULL, N_("Mark all read in folder"), NULL, NULL, G_CALLBACK(mark_all_read_cb) },
+ {"Message/Mark/MarkAllUnread", NULL, N_("Mark all unread in folder"), NULL, NULL, G_CALLBACK(mark_all_unread_cb) },
/* separation */
{"Message/Mark/IgnoreThread", NULL, N_("Ignore thread"), NULL, NULL, G_CALLBACK(ignore_thread_cb) },
{"Message/Mark/UnignoreThread", NULL, N_("Unignore thread"), NULL, NULL, G_CALLBACK(unignore_thread_cb) },
}
summary_grab_focus(summaryview);
if (!summary_is_list(summaryview)) {
- summary_show(summaryview, summaryview->folder_item);
+ summary_show(summaryview, summaryview->folder_item, FALSE);
}
}
static void update_folderview_cb(GtkAction *action, gpointer data)
{
MainWindow *mainwin = (MainWindow *)data;
- summary_show(mainwin->summaryview, NULL);
+ summary_show(mainwin->summaryview, NULL, FALSE);
folderview_check_new_all();
}
{
MainWindow *mainwin = (MainWindow *)data;
gboolean threaded = FALSE;
+ guint selected_msgnum = 0;
+
if (mainwin->menu_lock_count) return;
if (!mainwin->summaryview->folder_item) return;
+ selected_msgnum = summary_get_msgnum(mainwin->summaryview, mainwin->summaryview->selected);
+
threaded = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
mainwin->summaryview->folder_item->threaded = threaded;
mainwin->summaryview->threaded = threaded;
summary_show(mainwin->summaryview,
- mainwin->summaryview->folder_item);
+ mainwin->summaryview->folder_item, FALSE);
+ summary_select_by_msgnum(mainwin->summaryview, selected_msgnum, FALSE);
}
static void expand_threads_cb(GtkAction *action, gpointer data)
folder_update_op_count();
folder_item_scan(fitem);
- summary_show(mainwin->summaryview, fitem);
+ summary_show(mainwin->summaryview, fitem, FALSE);
}
static void prev_cb(GtkAction *action, gpointer data)