[Commits] [SCM] claws branch, master, updated. 3.13.0-84-g388820d

mones at claws-mail.org mones at claws-mail.org
Tue Nov 24 11:42:14 CET 2015


The branch, master has been updated
       via  388820da8035cd3779b3e67143ff234e08840cd5 (commit)
      from  a5bd5e1504fb941d63ee2f1532c0b469ed651989 (commit)

Summary of changes:
 src/compose.c |   32 ++++++++++++++++++++++++--------
 1 file changed, 24 insertions(+), 8 deletions(-)


- Log -----------------------------------------------------------------
commit 388820da8035cd3779b3e67143ff234e08840cd5
Author: Ricardo Mones <ricardo at mones.org>
Date:   Tue Nov 24 11:41:32 2015 +0100

    Adjust menus for external embedded editor

diff --git a/src/compose.c b/src/compose.c
index 2e41dbe..7b78172 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -9567,17 +9567,33 @@ static gboolean compose_input_cb(GIOChannel *source, GIOCondition condition,
 	return FALSE;
 }
 
+static char *ext_editor_menu_entries[] = {
+	"Menu/Message/Send",
+	"Menu/Message/SendLater",
+	"Menu/Message/InsertFile",
+	"Menu/Message/InsertSig",
+	"Menu/Message/ReplaceSig",
+	"Menu/Message/Save",
+	"Menu/Message/Print",
+	"Menu/Edit",
+#if USE_ENCHANT
+	"Menu/Spelling",
+#endif
+	"Menu/Tools/ShowRuler",
+	"Menu/Tools/Actions",
+	"Menu/Help",
+	NULL
+};
+
 static void compose_set_ext_editor_sensitive(Compose *compose,
 					     gboolean sensitive)
 {
-	cm_menu_set_sensitive_full(compose->ui_manager, "Menu/Message/Send", sensitive);
-	cm_menu_set_sensitive_full(compose->ui_manager, "Menu/Message/SendLater", sensitive);
-	cm_menu_set_sensitive_full(compose->ui_manager, "Menu/Message/InsertFile", sensitive);
-	cm_menu_set_sensitive_full(compose->ui_manager, "Menu/Message/InsertSig", sensitive);
-	cm_menu_set_sensitive_full(compose->ui_manager, "Menu/Message/ReplaceSig", sensitive);
-	cm_menu_set_sensitive_full(compose->ui_manager, "Menu/Edit/WrapPara", sensitive);
-	cm_menu_set_sensitive_full(compose->ui_manager, "Menu/Edit/WrapAllLines", sensitive);
-	cm_menu_set_sensitive_full(compose->ui_manager, "Menu/Edit/ExtEditor", sensitive);
+	int i;
+
+	for (i = 0; ext_editor_menu_entries[i]; ++i) {
+		cm_menu_set_sensitive_full(compose->ui_manager,
+			ext_editor_menu_entries[i], sensitive);
+	}
 
 	if (compose_get_ext_editor_uses_socket()) {
 		if (sensitive) {

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list