diff options
author | Martin Szulecki | 2010-12-18 18:34:05 +0100 |
---|---|---|
committer | Martin Szulecki | 2010-12-19 21:23:46 +0100 |
commit | 6a1b66f1de2d7147d4498f0902a494de56282039 (patch) | |
tree | 381ab46f5a740406e3581381b2976887d880e70b /src/gui.c | |
parent | 948e2a8a85dc5082279a6b3e1c586f2ce7622716 (diff) | |
download | sbmanager-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |