1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Show correct tray icon immediately on enable

This commit is contained in:
James Booth 2016-04-18 00:35:03 +01:00
parent 12727744ab
commit 20a0313d17

View File

@ -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);
}