Checking for the battery status every 5 seconds is already more than enough

This commit is contained in:
Pierre Pronchery 2010-05-06 17:32:25 +00:00
parent 512de4cf65
commit c3dad8ae5f

View File

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