battery = dev;
battery.changed += on_changed;
- stderr.printf("New battery icon for %s online %s perc %f isrec %s tte %lld ttf %lld\n", dev.native_path, dev.online ? "yes" : "no", dev.percentage, dev.is_rechargeable ? "yes" : "no", dev.time_to_empty, dev.time_to_full);
+// stderr.printf("New battery icon for %s online %s perc %f isrec %s tte %lld ttf %lld\n", dev.native_path, dev.online ? "yes" : "no", dev.percentage, dev.is_rechargeable ? "yes" : "no", dev.time_to_empty, dev.time_to_full);
update_icon();
}
string name = zavai.config.icondir + "/battery/";
Dkp.DeviceState state = (Dkp.DeviceState)battery.state;
-stderr.printf("New battery status: %s\n", Dkp.Device.state_to_text(state));
+//stderr.printf("New battery status: %s\n", Dkp.Device.state_to_text(state));
int capacity = (int)Math.round(battery.percentage/10);
switch (state)
{