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

@@ -151,7 +151,7 @@ void destroy_tray(void)
shutting_down = true;
g_source_remove(timer);
if (prof_tray) {
gtk_widget_destroy(GTK_WIDGET(prof_tray));
g_clear_object(&prof_tray);
prof_tray = NULL;
}
g_string_free(icon_filename, true);