about summary refs log tree commit diff stats
path: root/src/config/preferences.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/preferences.c')
-rw-r--r--src/config/preferences.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index 4f403888..25a6ff87 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -47,10 +47,6 @@
 #include "tools/autocomplete.h"
 #include "config/conflists.h"
 
-#ifdef HAVE_GTK
-#include "tray.h"
-#endif
-
 // preference groups refer to the sections in .profrc, for example [ui]
 #define PREF_GROUP_LOGGING "logging"
 #define PREF_GROUP_CHATSTATES "chatstates"
@@ -1175,9 +1171,6 @@ _get_group(preference_t pref)
         case PREF_TITLEBAR_SHOW:
         case PREF_TITLEBAR_GOODBYE:
         case PREF_FLASH:
-#ifdef HAVE_GTK
-        case PREF_TRAY:
-#endif
         case PREF_INTYPE:
         case PREF_HISTORY:
         case PREF_OCCUPANTS:
@@ -1246,6 +1239,7 @@ _get_group(preference_t pref)
         case PREF_NOTIFY_SUB:
         case PREF_NOTIFY_MENTION_CASE_SENSITIVE:
         case PREF_NOTIFY_MENTION_WHOLE_WORD:
+        case PREF_TRAY:
             return PREF_GROUP_NOTIFICATIONS;
         case PREF_CHLOG:
         case PREF_GRLOG:
@@ -1296,10 +1290,8 @@ _get_key(preference_t pref)
             return "titlebar.goodbye";
         case PREF_FLASH:
             return "flash";
-#ifdef HAVE_GTK
         case PREF_TRAY:
             return "tray";
-#endif
         case PREF_INTYPE:
             return "intype";
         case PREF_HISTORY:
@@ -1513,6 +1505,7 @@ _get_default_boolean(preference_t pref)
         case PREF_TLS_SHOW:
         case PREF_LASTACTIVITY:
         case PREF_NOTIFY_MENTION_WHOLE_WORD:
+        case PREF_TRAY:
             return TRUE;
         default:
             return FALSE;