diff options
author | James Booth <boothj5@gmail.com> | 2012-11-13 14:40:24 -0800 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-11-13 14:40:24 -0800 |
commit | faa5f8871f76565c1f50f5e67353320debbf741e (patch) | |
tree | d49b2bde4003dbee7381d5a1ecb44c761bf1a833 /src/preferences.c | |
parent | 8ecbe0c590832200134e54fe55da872917278f64 (diff) | |
parent | 52c4c3d953008cc89af230651568f2081e132c9b (diff) | |
download | profani-tty-faa5f8871f76565c1f50f5e67353320debbf741e.tar.gz |
Merge pull request #81 from pasis/priority
introduce priority support
Diffstat (limited to 'src/preferences.c')
-rw-r--r-- | src/preferences.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/preferences.c b/src/preferences.c index fc9fe180..e5e9653e 100644 --- a/src/preferences.c +++ b/src/preferences.c @@ -327,6 +327,19 @@ prefs_set_max_log_size(gint value) _save_prefs(); } +gint +prefs_get_priority(void) +{ + return g_key_file_get_integer(prefs, "jabber", "priority", NULL); +} + +void +prefs_set_priority(gint value) +{ + g_key_file_set_integer(prefs, "jabber", "priority", value); + _save_prefs(); +} + gboolean prefs_get_vercheck(void) { |