mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Show correct tray icon immediately on enable
This commit is contained in:
parent
12727744ab
commit
20a0313d17
@ -153,11 +153,12 @@ tray_init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
gtk_init(0, NULL);
|
gtk_init(0, NULL);
|
||||||
gtk_main_iteration_do(FALSE);
|
|
||||||
if (prefs_get_boolean(PREF_TRAY)) {
|
if (prefs_get_boolean(PREF_TRAY)) {
|
||||||
log_debug("Building GTK icon");
|
log_debug("Building GTK icon");
|
||||||
tray_enable();
|
tray_enable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gtk_main_iteration_do(FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -183,6 +184,7 @@ tray_enable(void)
|
|||||||
{
|
{
|
||||||
prof_tray = gtk_status_icon_new_from_file(icon_filename->str);
|
prof_tray = gtk_status_icon_new_from_file(icon_filename->str);
|
||||||
shutting_down = FALSE;
|
shutting_down = FALSE;
|
||||||
|
_tray_change_icon(NULL);
|
||||||
timer = g_timeout_add(5000, _tray_change_icon, NULL);
|
timer = g_timeout_add(5000, _tray_change_icon, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user