From 4cb1d73a8358f660056156b5632e8c41659eb6e0 Mon Sep 17 00:00:00 2001 From: Dominik Heidler Date: Sat, 16 Apr 2016 16:29:32 +0200 Subject: Make tray icon configurable using /tray cmd --- src/config/preferences.c | 11 +++++++++++ src/config/preferences.h | 3 +++ 2 files changed, 14 insertions(+) (limited to 'src/config') 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, -- cgit 1.4.1-2-gfad0