talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 14a997dea081529b96410658892697450af6f9be
parent 4f33789a0c3e9d93992f8d05425aa2fd408ca919
Author: Ricardo Mones <ricardo@mones.org>
Date:   Tue, 14 Feb 2017 00:58:59 +0100

Migrate icon filename stored in toolbar XML files

Thanks Paul for the hint.
Completes commit 50bd87f2e13a9dbdb2a1a449823ff16ae87239f8.

Diffstat:
Msrc/toolbar.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git 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;