about summary refs log tree commit diff stats
path: root/src/main.c
diff options
context:
space:
mode:
authorDavid <petrodavi@gmail.com>2016-02-19 23:59:14 +0100
committerDavid <petrodavi@gmail.com>2016-03-06 19:10:46 +0100
commitdc0c3cc699c1b91fbf3c9724f5039f3bd1ed0d95 (patch)
treec082118bbedf79911802bb58d19c741df2c4a271 /src/main.c
parentae46e647bf67e82b85f8a894be3c558aedb65f06 (diff)
downloadprofani-tty-dc0c3cc699c1b91fbf3c9724f5039f3bd1ed0d95.tar.gz
Introduce Tray Icon for Profanity
Add tray icon for profanity based on Gtk StatusIcon.
Different icon is displayed in case the user has unread messages.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index ec745ff5..b863db96 100644
--- a/src/main.c
+++ b/src/main.c
@@ -34,8 +34,10 @@
 
 #include "config.h"
 
+#include <gtk/gtk.h>
 #include <string.h>
 #include <glib.h>
+#include <assert.h>
 
 #ifdef HAVE_GIT_VERSION
 #include "gitversion.h"
@@ -127,6 +129,8 @@ main(int argc, char **argv)
         return 0;
     }
 
+    assert (gtk_init_check(&argc, &argv) == true);
+    gtk_init(&argc, &argv);
     prof_run(log, account_name);
 
     return 0;