From 68a8ab3401046d4e8b62a8e0081db2b156f0c5b1 Mon Sep 17 00:00:00 2001 From: James Booth Date: Tue, 24 Feb 2015 22:53:57 +0000 Subject: Updated default preferences --- src/config/preferences.c | 17 +++++++++++++---- src/ui/console.c | 2 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/config/preferences.c b/src/config/preferences.c index a1f82940..d5bd64d3 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -358,7 +358,7 @@ prefs_get_occupants_size(void) gint result = g_key_file_get_integer(prefs, PREF_GROUP_UI, "occupants.size", NULL); if (result > 99 || result < 1) { - return 20; + return 15; } else { return result; } @@ -377,7 +377,7 @@ prefs_get_roster_size(void) gint result = g_key_file_get_integer(prefs, PREF_GROUP_UI, "roster.size", NULL); if (result > 99 || result < 1) { - return 20; + return 25; } else { return result; } @@ -691,15 +691,24 @@ _get_default_boolean(preference_t pref) case PREF_AUTOAWAY_CHECK: case PREF_LOG_ROTATE: case PREF_LOG_SHARED: + case PREF_NOTIFY_MESSAGE: case PREF_NOTIFY_MESSAGE_CURRENT: case PREF_NOTIFY_ROOM_CURRENT: + case PREF_NOTIFY_TYPING: case PREF_NOTIFY_TYPING_CURRENT: + case PREF_NOTIFY_SUB: + case PREF_NOTIFY_INVITE: case PREF_SPLASH: case PREF_OCCUPANTS: case PREF_MUC_PRIVILEGES: case PREF_PRESENCE: case PREF_WRAP: case PREF_INPBLOCK_DYNAMIC: + case PREF_RESOURCE_TITLE: + case PREF_RESOURCE_MESSAGE: + case PREF_ROSTER: + case PREF_ROSTER_OFFLINE: + case PREF_ROSTER_RESOURCE: return TRUE; default: return FALSE; @@ -715,7 +724,7 @@ _get_default_string(preference_t pref) { case PREF_AUTOAWAY_MODE: case PREF_NOTIFY_ROOM: - return "off"; + return "on"; case PREF_OTR_LOG: return "redact"; case PREF_OTR_POLICY: @@ -725,7 +734,7 @@ _get_default_string(preference_t pref) case PREF_STATUSES_MUC: return "all"; case PREF_ROSTER_BY: - return "none"; + return "presence"; case PREF_TIME: return "seconds"; default: diff --git a/src/ui/console.c b/src/ui/console.c index 194d7698..8f1a1143 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -1004,7 +1004,7 @@ cons_roster_setting(void) cons_show("Roster resource (/roster) : hide"); char *by = prefs_get_string(PREF_ROSTER_BY); - cons_show("Roster by (/roster : %s", by); + cons_show("Roster by (/roster) : %s", by); int size = prefs_get_roster_size(); cons_show("Roster size (/roster) : %d", size); -- cgit 1.4.1-2-gfad0