From 3c1db1cd3297c00547e3dfee7df50010f07660bc Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Mon, 10 Feb 2020 14:58:22 +0100 Subject: [PATCH] xep-0308: make correction.char themeable --- src/config/theme.c | 8 ++++++++ theme_template | 1 + themes/boothj5 | 1 + 3 files changed, 10 insertions(+) diff --git a/src/config/theme.c b/src/config/theme.c index f081bd21..f7842bab 100644 --- a/src/config/theme.c +++ b/src/config/theme.c @@ -483,6 +483,14 @@ _load_preferences(void) } } + if (g_key_file_has_key(theme, "ui", "correction.char", NULL)) { + gchar *ch = g_key_file_get_string(theme, "ui", "correction.char", NULL); + if (ch && strlen(ch) > 0) { + prefs_set_omemo_char(ch[0]); + g_free(ch); + } + } + // load window positions if (g_key_file_has_key(theme, "ui", "titlebar.position", NULL) && g_key_file_has_key(theme, "ui", "mainwin.position", NULL) && diff --git a/theme_template b/theme_template index 55de8521..3a512936 100644 --- a/theme_template +++ b/theme_template @@ -149,3 +149,4 @@ console.muc= console.chat= console.private= inputwin.position= +correction.char= diff --git a/themes/boothj5 b/themes/boothj5 index fee2a7d7..3955da6a 100644 --- a/themes/boothj5 +++ b/themes/boothj5 @@ -152,4 +152,5 @@ statusbar.tabs=10 statusbar.tablen=7 statusbar.show.name=true statusbar.show.number=true +correction.char=+