about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorDominik Heidler <dominik@heidler.eu>2016-04-16 16:29:32 +0200
committerDominik Heidler <dominik@heidler.eu>2016-04-16 16:29:32 +0200
commit4cb1d73a8358f660056156b5632e8c41659eb6e0 (patch)
tree97c905d2651768030f6befa4e17c0d3d72e74497 /src/config
parent6cc04bc3ba85415e6ec532ddf60738961a3a9560 (diff)
downloadprofani-tty-4cb1d73a8358f660056156b5632e8c41659eb6e0.tar.gz
Make tray icon configurable using /tray cmd
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,