about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-08-26 01:36:41 +0100
committerJames Booth <boothj5@gmail.com>2015-08-26 01:36:41 +0100
commit35239ee31998580d95b99c62abfb3d3f00c20453 (patch)
treec2e948a04b014ec3ead5b8c84ff0015415abef6e /src
parent98ea744648497367aecf60436b17d7162733f104 (diff)
downloadprofani-tty-35239ee31998580d95b99c62abfb3d3f00c20453.tar.gz
Added otr and pgp char to themes
Diffstat (limited to 'src')
-rw-r--r--src/config/theme.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/config/theme.c b/src/config/theme.c
index ee6bd73f..c4b25c73 100644
--- a/src/config/theme.c
+++ b/src/config/theme.c
@@ -465,6 +465,21 @@ _load_preferences(void)
     _set_boolean_preference("intype", PREF_INTYPE);
 
     _set_boolean_preference("enc.warn", PREF_ENC_WARN);
+
+    if (g_key_file_has_key(theme, "ui", "otr.char", NULL)) {
+        gchar *ch = g_key_file_get_string(theme, "ui", "otr.char", NULL);
+        if (ch && strlen(ch) > 0) {
+            prefs_set_otr_char(ch[0]);
+            g_free(ch);
+        }
+    }
+    if (g_key_file_has_key(theme, "ui", "pgp.char", NULL)) {
+        gchar *ch = g_key_file_get_string(theme, "ui", "pgp.char", NULL);
+        if (ch && strlen(ch) > 0) {
+            prefs_set_pgp_char(ch[0]);
+            g_free(ch);
+        }
+    }
 }
 
 static gchar *