[gnome-power-manager] Don't ever fallback to the warning icon in the tray when batteries are invalid
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-power-manager] Don't ever fallback to the warning icon in the tray when batteries are invalid
- Date: Mon, 13 Jul 2009 10:08:36 +0000 (UTC)
commit 4c8ba87d647d433efaac0152a15e88e4391357a4
Author: Richard Hughes <richard hughsie com>
Date: Mon Jul 13 11:04:57 2009 +0100
Don't ever fallback to the warning icon in the tray when batteries are invalid
src/gpm-devicekit.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gpm-devicekit.c b/src/gpm-devicekit.c
index fd612b4..9bf8463 100644
--- a/src/gpm-devicekit.c
+++ b/src/gpm-devicekit.c
@@ -173,6 +173,8 @@ gpm_devicekit_get_object_icon (DkpDevice *device)
} else if (state == DKP_DEVICE_STATE_PENDING_DISCHARGE) {
index_str = gpm_devicekit_get_object_icon_index (device);
filename = g_strdup_printf ("gpm-%s-%s", prefix, index_str);
+ } else {
+ filename = g_strdup ("gpm-battery-missing");
#endif
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]