mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-23 18:26:22 +00:00
11
src/tray.c
11
src/tray.c
@@ -192,13 +192,22 @@ tray_shutdown(void)
|
||||
g_string_free(icon_msg_filename, TRUE);
|
||||
}
|
||||
|
||||
void
|
||||
tray_set_timer(int interval)
|
||||
{
|
||||
g_source_remove(timer);
|
||||
_tray_change_icon(NULL);
|
||||
timer = g_timeout_add(interval * 1000, _tray_change_icon, NULL);
|
||||
}
|
||||
|
||||
void
|
||||
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);
|
||||
int interval = prefs_get_tray_timer() * 1000;
|
||||
timer = g_timeout_add(interval, _tray_change_icon, NULL);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user