diff options
author | James Booth <jamesbooth2000@hotmail.com> | 2012-06-04 08:47:54 -0700 |
---|---|---|
committer | James Booth <jamesbooth2000@hotmail.com> | 2012-06-04 08:47:54 -0700 |
commit | df1e8327f945a3bd0d5a957a0fd9e971baeabd72 (patch) | |
tree | b376283213eafffe6193b37e9e7274df02e22b84 /preferences.c | |
parent | 70310bb5afb7a008bdd4069d85ee62921cdf4ac5 (diff) | |
parent | 26b6db5b78b01e50eaee048472d5d33d5a468c3c (diff) | |
download | profani-tty-df1e8327f945a3bd0d5a957a0fd9e971baeabd72.tar.gz |
Merge pull request #25 from dotoole/master
Diffstat (limited to 'preferences.c')
-rw-r--r-- | preferences.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/preferences.c b/preferences.c index c5710a1e..46e511eb 100644 --- a/preferences.c +++ b/preferences.c @@ -129,6 +129,17 @@ void prefs_add_login(const char *jid) } } +gboolean prefs_get_showsplash(void) +{ + return g_key_file_get_boolean(prefs, "ui", "showsplash", NULL); +} + +void prefs_set_showsplash(gboolean value) +{ + g_key_file_set_boolean(prefs, "ui", "showsplash", value); + _save_prefs(); +} + static void _save_prefs(void) { gsize g_data_size; |