From c3dad8ae5f30b382c7dfd407548fc56ad51c86c0 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 6 May 2010 17:32:25 +0000 Subject: [PATCH] Checking for the battery status every 5 seconds is already more than enough --- src/applets/battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applets/battery.c b/src/applets/battery.c index d097569..16deb2c 100644 --- a/src/applets/battery.c +++ b/src/applets/battery.c @@ -105,7 +105,7 @@ static GtkWidget * _battery_init(PanelApplet * applet) gtk_range_set_inverted(GTK_RANGE(battery->scale), TRUE); gtk_scale_set_value_pos(GTK_SCALE(battery->scale), GTK_POS_RIGHT); gtk_box_pack_start(GTK_BOX(hbox), battery->scale, FALSE, TRUE, 0); - battery->timeout = g_timeout_add(1000, _on_timeout, battery); + battery->timeout = g_timeout_add(5000, _on_timeout, battery); _on_timeout(battery); gtk_widget_show(battery->image); gtk_widget_show(battery->scale);