diff options
author | James Booth <boothj5@gmail.com> | 2016-04-18 00:35:03 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-04-18 00:35:03 +0100 |
commit | 20a0313d17db9c088f317651d1a61cc204f8ce3d (patch) | |
tree | 01bdfdc0c0a5148a3f0b33f572ef157e5837b250 | |
parent | 12727744ab31b28eaec2f148f2ed22cdc7338a99 (diff) | |
download | profani-tty-20a0313d17db9c088f317651d1a61cc204f8ce3d.tar.gz |
Show correct tray icon immediately on enable
-rw-r--r-- | src/tray.c | 4 |
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); } |