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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user