mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-28 08:46:22 +00:00
Make tray icon configurable using /tray cmd
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user