about summary refs log tree commit diff stats
path: root/src/tray.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tray.c')
-rw-r--r--src/tray.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tray.c b/src/tray.c
index 3e2c7a68..ff9593c3 100644
--- a/src/tray.c
+++ b/src/tray.c
@@ -153,11 +153,12 @@ tray_init(void)
     }
 
     gtk_init(0, NULL);
-    gtk_main_iteration_do(FALSE);
     if (prefs_get_boolean(PREF_TRAY)) {
         log_debug("Building GTK icon");
         tray_enable();
     }
+
+    gtk_main_iteration_do(FALSE);
 }
 
 void
@@ -183,6 +184,7 @@ tray_enable(void)
 {
     prof_tray = gtk_status_icon_new_from_file(icon_filename->str);
     shutting_down = FALSE;
+    _tray_change_icon(NULL);
     timer = g_timeout_add(5000, _tray_change_icon, NULL);
 }