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/profanity.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/profanity.c') diff --git a/src/profanity.c b/src/profanity.c index 2595f5f7..4ca649cd 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -373,7 +373,7 @@ _init(char *log_level) atexit(_shutdown); plugins_init(); #ifdef HAVE_GTK - if (gtk_ready) { + if (gtk_ready && prefs_get_boolean(PREF_TRAY)) { log_debug("Building GTK icon"); create_tray(); } @@ -397,7 +397,7 @@ _shutdown(void) cl_ev_disconnect(); } #ifdef HAVE_GTK - if (gtk_ready) { + if (gtk_ready && prefs_get_boolean(PREF_TRAY)) { destroy_tray(); } #endif -- cgit 1.4.1-2-gfad0