[gnome-power-manager] Show a discharging icon when the battery is in the empty state
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-power-manager] Show a discharging icon when the battery is in the empty state
- Date: Sun, 14 Jun 2009 15:11:42 -0400 (EDT)
commit 53ec75b07469be0d1209a0221c5de0493d78c324
Author: Richard Hughes <richard hughsie com>
Date: Sun Jun 14 14:20:29 2009 +0100
Show a discharging icon when the battery is in the empty state
src/gpm-devicekit.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gpm-devicekit.c b/src/gpm-devicekit.c
index 2169230..f1f35fa 100644
--- a/src/gpm-devicekit.c
+++ b/src/gpm-devicekit.c
@@ -133,7 +133,8 @@ gpm_devicekit_get_object_icon (DkpDevice *device)
index_str = gpm_devicekit_get_object_icon_index (device);
filename = g_strdup_printf ("gpm-%s-%s-charging", prefix, index_str);
- } else if (state == DKP_DEVICE_STATE_DISCHARGING) {
+ } else if (state == DKP_DEVICE_STATE_DISCHARGING ||
+ state == DKP_DEVICE_STATE_EMPTY) {
index_str = gpm_devicekit_get_object_icon_index (device);
filename = g_strdup_printf ("gpm-%s-%s", prefix, index_str);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]