about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/config')
-rw-r--r--src/config/preferences.c11
-rw-r--r--src/config/preferences.h3
2 files changed, 14 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index 0ad95dc4..4f403888 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -47,6 +47,10 @@
 #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"
@@ -1171,6 +1175,9 @@ _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:
@@ -1289,6 +1296,10 @@ _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:
diff --git a/src/config/preferences.h b/src/config/preferences.h
index 287e56d3..eb749b16 100644
--- a/src/config/preferences.h
+++ b/src/config/preferences.h
@@ -52,6 +52,9 @@ typedef enum {
     PREF_TITLEBAR_SHOW,
     PREF_TITLEBAR_GOODBYE,
     PREF_FLASH,
+#ifdef HAVE_GTK
+    PREF_TRAY,
+#endif
     PREF_INTYPE,
     PREF_HISTORY,
     PREF_CARBONS,