about summary refs log tree commit diff stats
path: root/src/command/command.c
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/command/command.c
parent6cc04bc3ba85415e6ec532ddf60738961a3a9560 (diff)
downloadprofani-tty-4cb1d73a8358f660056156b5632e8c41659eb6e0.tar.gz
Make tray icon configurable using /tray cmd
Diffstat (limited to 'src/command/command.c')
-rw-r--r--src/command/command.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 191415ae..e94d3406 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -1253,6 +1253,21 @@ static struct cmd_t command_defs[] =
         CMD_NOEXAMPLES
     },
 
+#ifdef HAVE_GTK
+    { "/tray",
+        cmd_tray, parse_args, 1, 1, &cons_tray_setting,
+        CMD_TAGS(
+            CMD_TAG_UI)
+        CMD_SYN(
+            "/tray on|off")
+        CMD_DESC(
+            "Display an icon in the tray that will indicate new messages.")
+        CMD_ARGS(
+            { "on|off", "Enable or disable tray icon." })
+        CMD_NOEXAMPLES
+    },
+#endif
+
     { "/intype",
         cmd_intype, parse_args, 1, 1, &cons_intype_setting,
         CMD_TAGS(