1
0
Fork 0

Added otr and pgp char to themes

This commit is contained in:
James Booth 2015-08-26 01:36:41 +01:00
parent 98ea744648
commit 35239ee319
3 changed files with 19 additions and 0 deletions

View File

@ -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 *

View File

@ -75,3 +75,5 @@ occupants=
occupants.size=
occupants.jid=
wins.autotidy=
otr.char=
pgp.char=

View File

@ -75,3 +75,5 @@ occupants=true
occupants.size=15
occupants.jid=false
wins.autotidy=true
otr.char=@
pgp.char=%