diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bat_tray.c | 2 | ||||
-rw-r--r-- | src/tray.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bat_tray.c b/src/bat_tray.c index 4a9de89..c8dd238 100644 --- a/src/bat_tray.c +++ b/src/bat_tray.c @@ -112,7 +112,7 @@ void bat_tray_init() gtk_status_icon_set_from_file(tray, icon_file); gtk_status_icon_set_has_tooltip (tray, TRUE); g_signal_connect(G_OBJECT(tray), "query-tooltip", GTK_SIGNAL_FUNC(update_tooltip), NULL); - gtk_timeout_add(1000, update_icon, NULL); + gtk_timeout_add(5000, update_icon, NULL); } @@ -211,7 +211,6 @@ static void activate(GtkStatusIcon* statuc_icon,gpointer data) static gboolean update_icon(gpointer user_data) { tray_update_icon_percent(); - return 0; } void tray_init() @@ -284,6 +283,7 @@ void tray_update_icon_percent() gtk_status_icon_set_from_file(tray, file); g_free(file); + } void tray_show() |