about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-04-03 21:46:43 +0100
committerJames Booth <boothj5@gmail.com>2014-04-03 21:46:43 +0100
commit561d96c7119e2b68dd59cd9df3e520be89ec58ee (patch)
tree30a00bf0006401fa4ee611b9f42f31c76f024084 /src/config
parent95c081666adc44734f1fa5e1c50d52534325f522 (diff)
downloadprofani-tty-561d96c7119e2b68dd59cd9df3e520be89ec58ee.tar.gz
Removed titlebar version property and allow disabling of titlebar display
Diffstat (limited to 'src/config')
-rw-r--r--src/config/preferences.c11
-rw-r--r--src/config/preferences.h2
2 files changed, 7 insertions, 6 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index 02bb0833..6f085ba3 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -371,7 +371,7 @@ _get_group(preference_t pref)
         case PREF_BEEP:
         case PREF_THEME:
         case PREF_VERCHECK:
-        case PREF_TITLEBARVERSION:
+        case PREF_TITLEBAR:
         case PREF_FLASH:
         case PREF_INTYPE:
         case PREF_HISTORY:
@@ -418,8 +418,8 @@ _get_key(preference_t pref)
             return "theme";
         case PREF_VERCHECK:
             return "vercheck";
-        case PREF_TITLEBARVERSION:
-            return "titlebar.version";
+        case PREF_TITLEBAR:
+            return "titlebar";
         case PREF_FLASH:
             return "flash";
         case PREF_INTYPE:
@@ -474,9 +474,10 @@ _get_default_boolean(preference_t pref)
 {
     switch (pref)
     {
-        case PREF_STATUSES:
-        case PREF_AUTOAWAY_CHECK:
+        case PREF_TITLEBAR:
         case PREF_OTR_WARN:
+        case PREF_AUTOAWAY_CHECK:
+            return TRUE;
         default:
             return FALSE;
     }
diff --git a/src/config/preferences.h b/src/config/preferences.h
index 3b4d01d4..2c783f4d 100644
--- a/src/config/preferences.h
+++ b/src/config/preferences.h
@@ -40,7 +40,7 @@ typedef enum {
     PREF_BEEP,
     PREF_VERCHECK,
     PREF_THEME,
-    PREF_TITLEBARVERSION,
+    PREF_TITLEBAR,
     PREF_FLASH,
     PREF_INTYPE,
     PREF_HISTORY,