[Commits] [SCM] claws branch, master, updated. 4.1.1-85-g8ad2efdef
paul at claws-mail.org
paul at claws-mail.org
Thu Sep 21 11:49:08 UTC 2023
The branch, master has been updated
via 8ad2efdef6d1434f4ce1cf5530ef8e5a7edf3213 (commit)
from 16e8226cafc9c38558b1de9414c935b4d7148bec (commit)
Summary of changes:
src/mainwindow.c | 52 +++++++++++++++++++++++++++-------------------------
src/mainwindow.h | 3 ++-
2 files changed, 29 insertions(+), 26 deletions(-)
- Log -----------------------------------------------------------------
commit 8ad2efdef6d1434f4ce1cf5530ef8e5a7edf3213
Author: Paul <paul at claws-mail.org>
Date: Thu Sep 21 12:49:04 2023 +0100
a more nuanced sensitivity is needed
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 0a04e6104..847511c41 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -1,19 +1,19 @@
/*
- Claws Mail -- a GTK based, lightweight, and fast e-mail client
- Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * Claws Mail -- a GTK based, lightweight, and fast e-mail client
+ * Copyright (C) 1999-2023 the Claws Mail team and Hiroyuki Yamamoto
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
@@ -2949,6 +2949,8 @@ SensitiveCondMask main_window_get_current_state(MainWindow *mainwin)
if (mainwin->lock_count == 0 && !claws_is_starting())
UPDATE_STATE(M_UNLOCKED);
if (selection != SUMMARY_NONE && selection != SUMMARY_SELECTED_NONE)
+ UPDATE_STATE(M_MSG_SELECTED);
+ if (item && item->total_msgs > 0)
UPDATE_STATE(M_MSG_EXIST);
if (item && item->path && folder_item_parent(item) && !item->no_select) {
UPDATE_STATE(M_EXEC);
@@ -3150,16 +3152,16 @@ void main_window_set_menu_sensitive(MainWindow *mainwin)
SET_SENSITIVE("Menu/View/HideReadThreads", M_HIDE_READ_THREADS, M_SUMMARY_ISLIST, M_NOT_DRAFT);
SET_SENSITIVE("Menu/View/HideReadMessages", M_HIDE_READ_MSG, M_SUMMARY_ISLIST, M_NOT_DRAFT);
SET_SENSITIVE("Menu/View/HideDelMessages", M_SUMMARY_ISLIST, M_NOT_DRAFT);
- SET_SENSITIVE("Menu/View/Goto/Prev", M_MSG_EXIST);
- SET_SENSITIVE("Menu/View/Goto/Next", M_MSG_EXIST);
- SET_SENSITIVE("Menu/View/Goto/PrevUnread", M_MSG_EXIST);
- SET_SENSITIVE("Menu/View/Goto/NextUnread", M_MSG_EXIST);
- SET_SENSITIVE("Menu/View/Goto/PrevNew", M_MSG_EXIST);
- SET_SENSITIVE("Menu/View/Goto/NextNew", M_MSG_EXIST);
- SET_SENSITIVE("Menu/View/Goto/PrevMarked", M_MSG_EXIST);
- SET_SENSITIVE("Menu/View/Goto/NextMarked", M_MSG_EXIST);
- SET_SENSITIVE("Menu/View/Goto/PrevLabeled", M_MSG_EXIST);
- SET_SENSITIVE("Menu/View/Goto/NextLabeled", M_MSG_EXIST);
+ SET_SENSITIVE("Menu/View/Goto/Prev", M_MSG_SELECTED);
+ SET_SENSITIVE("Menu/View/Goto/Next", M_MSG_SELECTED);
+ SET_SENSITIVE("Menu/View/Goto/PrevUnread", M_MSG_SELECTED);
+ SET_SENSITIVE("Menu/View/Goto/NextUnread", M_MSG_SELECTED);
+ SET_SENSITIVE("Menu/View/Goto/PrevNew", M_MSG_SELECTED);
+ SET_SENSITIVE("Menu/View/Goto/NextNew", M_MSG_SELECTED);
+ SET_SENSITIVE("Menu/View/Goto/PrevMarked", M_MSG_SELECTED);
+ SET_SENSITIVE("Menu/View/Goto/NextMarked", M_MSG_SELECTED);
+ SET_SENSITIVE("Menu/View/Goto/PrevLabeled", M_MSG_SELECTED);
+ SET_SENSITIVE("Menu/View/Goto/NextLabeled", M_MSG_SELECTED);
SET_SENSITIVE("Menu/View/Goto/ParentMessage", M_SINGLE_TARGET_EXIST);
SET_SENSITIVE("Menu/View/Goto/NextPart", M_SINGLE_TARGET_EXIST);
SET_SENSITIVE("Menu/View/Goto/PrevPart", M_SINGLE_TARGET_EXIST);
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 8cd24dff3..566f1077e 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -1,6 +1,6 @@
/*
* Claws Mail -- a GTK based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2016 Hiroyuki Yamamoto and the Claws Mail team
+ * Copyright (C) 1999-2023 the Claws Mail team and Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -70,6 +70,7 @@ typedef enum
M_HAVE_RETRIEVABLE_ACCOUNT,
M_HAVE_ANY_RETRIEVABLE_ACCOUNT,
M_NOT_DRAFT,
+ M_MSG_SELECTED,
/* reserved */
M_MAX_RESERVED
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list