mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Added otr and pgp char to themes
This commit is contained in:
parent
98ea744648
commit
35239ee319
@ -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 *
|
||||
|
@ -75,3 +75,5 @@ occupants=
|
||||
occupants.size=
|
||||
occupants.jid=
|
||||
wins.autotidy=
|
||||
otr.char=
|
||||
pgp.char=
|
||||
|
@ -75,3 +75,5 @@ occupants=true
|
||||
occupants.size=15
|
||||
occupants.jid=false
|
||||
wins.autotidy=true
|
||||
otr.char=@
|
||||
pgp.char=%
|
||||
|
Loading…
Reference in New Issue
Block a user