diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-02-10 14:58:22 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-02-10 14:58:22 +0100 |
commit | 3c1db1cd3297c00547e3dfee7df50010f07660bc (patch) | |
tree | 92ade425fd6089f7cd578b8f9f5e0104dce35a39 /src/config | |
parent | dd8086772d274542a28b7af045572933f0b6ac7d (diff) | |
download | profani-tty-3c1db1cd3297c00547e3dfee7df50010f07660bc.tar.gz |
xep-0308: make correction.char themeable
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/theme.c | 8 |
1 files changed, 8 insertions, 0 deletions
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) && |