Make tray icon configurable using /tray cmd

This commit is contained in:
Dominik Heidler
2016-04-16 16:29:32 +02:00
parent 6cc04bc3ba
commit 4cb1d73a83
8 changed files with 72 additions and 2 deletions

View File

@@ -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:

View File

@@ -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,