about summary refs log tree commit diff stats
path: root/src/tray.c
diff options
context:
space:
mode:
authorDavid <petrodavi@gmail.com>2016-04-10 14:55:06 +0200
committerDavid <petrodavi@gmail.com>2016-04-10 15:44:37 +0200
commit92a50000c2421604f73ccad4e534948a4dc552e1 (patch)
tree43bfdfbf2849c3dedad8d7a5064febda20329373 /src/tray.c
parent1e60d17d7c32194aa090f8d2ba7d5be4bffc0a44 (diff)
downloadprofani-tty-92a50000c2421604f73ccad4e534948a4dc552e1.tar.gz
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).
Diffstat (limited to 'src/tray.c')
-rw-r--r--src/tray.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tray.c b/src/tray.c
index 8b078adf..12c46796 100644
--- a/src/tray.c
+++ b/src/tray.c
@@ -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);