From 1d091c665342a6df3542388a694bfe101a415785 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Sat, 18 Dec 2010 18:34:05 +0100 Subject: Do not poll all device info again, just the battery capacity --- src/gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui.c') diff --git a/src/gui.c b/src/gui.c index 0e0b837..1b25d7b 100644 --- a/src/gui.c +++ b/src/gui.c @@ -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; -- cgit v1.1-32-gdbae