[Commits] [SCM] claws branch, gtk2, updated. 3.19.1-69-ga6acce707

paul at claws-mail.org paul at claws-mail.org
Thu Sep 21 11:51:28 UTC 2023


The branch, gtk2 has been updated
       via  a6acce707207d677af16eac0131fdcd4824f9f45 (commit)
      from  bfe5ba6a8d2fa831381a79d66a4600bfab268e87 (commit)

Summary of changes:
 src/mainwindow.c | 52 +++++++++++++++++++++++++++-------------------------
 src/mainwindow.h |  5 +++--
 2 files changed, 30 insertions(+), 27 deletions(-)


- Log -----------------------------------------------------------------
commit a6acce707207d677af16eac0131fdcd4824f9f45
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 f0a1111e8..a7e070ea7 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-2021 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"
@@ -2978,6 +2978,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);
@@ -3179,16 +3181,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 ce0b30cac..4648b54f9 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
+ * 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
@@ -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