summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-12-18 18:34:05 +0100
committerGravatar Martin Szulecki2010-12-19 21:23:46 +0100
commit6a1b66f1de2d7147d4498f0902a494de56282039 (patch)
tree381ab46f5a740406e3581381b2976887d880e70b /src/gui.c
parent948e2a8a85dc5082279a6b3e1c586f2ce7622716 (diff)
downloadsbmanager-6a1b66f1de2d7147d4498f0902a494de56282039.tar.gz
sbmanager-6a1b66f1de2d7147d4498f0902a494de56282039.tar.bz2
Do not poll all device info again, just the battery capacity
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui.c b/src/gui.c
index b6bd4ba..432b979 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -1889,7 +1889,7 @@ static gboolean update_battery_info_cb(gpointer user_data)
return FALSE;
}
- if (device_get_info(uuid, &device_info, &error)) {
+ if (device_poll_battery_capacity(uuid, &device_info, &error)) {
clutter_actor_set_size(battery_level, (guint) (((double) (device_info->battery_capacity) / 100.0) * 15), 6);
if (device_info->battery_capacity == 100) {
res = FALSE;