[gnome-power-manager] Force an icon update if the composite device changes



commit 67e182fd60d10a430a4d54dccbb196d55fd3a082
Author: Richard Hughes <richard hughsie com>
Date:   Sat Aug 1 10:30:48 2009 +0100

    Force an icon update if the composite device changes

 src/gpm-engine.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gpm-engine.c b/src/gpm-engine.c
index febe465..78dce27 100644
--- a/src/gpm-engine.c
+++ b/src/gpm-engine.c
@@ -704,6 +704,9 @@ gpm_engine_update_composite_device (GpmEngine *engine, DkpDevice *original_devic
 		      "state", state,
 		      NULL);
 	dkp_device_print (device);
+
+	/* force update of icon */
+	gpm_engine_recalculate_state_icon (engine);
 out:
 	/* return composite device or original device */
 	return device;



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