mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-27 08:16:21 +00:00
Added otr and pgp char to themes
This commit is contained in:
@@ -465,6 +465,21 @@ _load_preferences(void)
|
|||||||
_set_boolean_preference("intype", PREF_INTYPE);
|
_set_boolean_preference("intype", PREF_INTYPE);
|
||||||
|
|
||||||
_set_boolean_preference("enc.warn", PREF_ENC_WARN);
|
_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 *
|
static gchar *
|
||||||
|
|||||||
@@ -75,3 +75,5 @@ occupants=
|
|||||||
occupants.size=
|
occupants.size=
|
||||||
occupants.jid=
|
occupants.jid=
|
||||||
wins.autotidy=
|
wins.autotidy=
|
||||||
|
otr.char=
|
||||||
|
pgp.char=
|
||||||
|
|||||||
@@ -75,3 +75,5 @@ occupants=true
|
|||||||
occupants.size=15
|
occupants.size=15
|
||||||
occupants.jid=false
|
occupants.jid=false
|
||||||
wins.autotidy=true
|
wins.autotidy=true
|
||||||
|
otr.char=@
|
||||||
|
pgp.char=%
|
||||||
|
|||||||
Reference in New Issue
Block a user