[Commits] [SCM] claws branch, master, updated. 3.14.1-194-g14a997d

mones at claws-mail.org mones at claws-mail.org
Tue Feb 14 00:59:38 CET 2017


The branch, master has been updated
       via  14a997dea081529b96410658892697450af6f9be (commit)
      from  4f33789a0c3e9d93992f8d05425aa2fd408ca919 (commit)

Summary of changes:
 src/toolbar.c |    6 ++++++
 1 file changed, 6 insertions(+)


- Log -----------------------------------------------------------------
commit 14a997dea081529b96410658892697450af6f9be
Author: Ricardo Mones <ricardo at mones.org>
Date:   Tue Feb 14 00:58:59 2017 +0100

    Migrate icon filename stored in toolbar XML files
    
    Thanks Paul for the hint.
    Completes commit 50bd87f2e13a9dbdb2a1a449823ff16ae87239f8.

diff --git a/src/toolbar.c b/src/toolbar.c
index 32b76cc..15db00e 100644
--- a/src/toolbar.c
+++ b/src/toolbar.c
@@ -446,6 +446,12 @@ static void toolbar_parse_item(XMLFile *file, ToolbarType source, gboolean *rewr
 			item->text = g_strdup(C_("Toolbar", "Trash"));
 			*rewrite = TRUE;
 		}
+		if (!strcmp(item->file, "mail") && !strcmp(value, "A_DRAFT")) {
+			/* switch icon file */
+			g_free(item->file);
+			item->file = g_strdup("mail_draft");
+			*rewrite = TRUE;
+		}
 		if (item->index == -1) {
 			/* item not found in table: try migrating old action names to current ones */
 			gint i;

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list