Re-introduce gtk_use boolean

This param is still actual, in case the environemnt does not
support gtk initialization.

Fix a GTK assert on the way (GTKStatusIcon is not a Widget, but a plain
GObject).
This commit is contained in:
David
2016-04-10 14:55:06 +02:00
parent 1e60d17d7c
commit 92a50000c2
3 changed files with 21 additions and 18 deletions

View File

@@ -34,9 +34,6 @@
#include "prof_config.h"
#ifdef PROF_HAVE_GTK
#include <gtk/gtk.h>
#endif
#include <string.h>
#include <glib.h>
#include <assert.h>
@@ -149,11 +146,6 @@ main(int argc, char **argv)
return 0;
}
#ifdef PROF_HAVE_GTK
if (gtk_init_check(&argc, &argv)) {
gtk_init(&argc, &argv);
}
#endif
prof_run(log, account_name);
return 0;