diff options
author | 2010-12-18 18:34:05 +0100 | |
---|---|---|
committer | 2012-03-18 18:41:15 +0100 | |
commit | 1d091c665342a6df3542388a694bfe101a415785 (patch) | |
tree | a875b6f8a6cadc2a4b8848337d4204bb2a221011 /src/gui.c | |
parent | c883b16f6ce19549e015ec6aba7450244450bfaf (diff) | |
download | sbmanager-1d091c665342a6df3542388a694bfe101a415785.tar.gz sbmanager-1d091c665342a6df3542388a694bfe101a415785.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
@@ -1979,7 +1979,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; |