[gnome-power-manager] Support the new DKP_DEVICE_STATE_PENDING_CHARGE and DKP_DEVICE_STATE_PENDING_DISCHARGE enumerated va



commit b37c2211c95dd97c4c2906bb3518df6eb6536ccf
Author: Richard Hughes <richard hughsie com>
Date:   Mon Jul 6 12:09:58 2009 +0100

    Support the new DKP_DEVICE_STATE_PENDING_CHARGE and DKP_DEVICE_STATE_PENDING_DISCHARGE enumerated values

 src/gpm-devicekit.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/gpm-devicekit.c b/src/gpm-devicekit.c
index 836c2ac..66fdf27 100644
--- a/src/gpm-devicekit.c
+++ b/src/gpm-devicekit.c
@@ -164,6 +164,15 @@ 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
+		} else if (state == DKP_DEVICE_STATE_PENDING_CHARGE) {
+			index_str = gpm_devicekit_get_object_icon_index (device);
+			/* FIXME: do new grey icons */
+			filename = g_strdup_printf ("gpm-%s-%s-charging", prefix, index_str);
+
+		} 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);
 #endif
 		}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]