[gnome-settings-daemon] power: update fallback status icon on icon state change
- From: Daniel Drake <dsd src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: update fallback status icon on icon state change
- Date: Wed, 6 Jun 2012 16:35:29 +0000 (UTC)
commit 99528da260f64d9118dc7ceb88816f5d3f8a743b
Author: Daniel Drake <dsd laptop org>
Date: Fri Jun 1 15:45:04 2012 -0600
power: update fallback status icon on icon state change
When the icon was being changed from one icon to another, the fallback
icon was not being updated.
This meant that unplugging or re-plugging AC power on OLPC laptops
was not updating the icon (even though the tooltip updated just fine).
Add a missing call to update the GtkStatusIcon when the internal GIcon
changes.
Fixes http://dev.laptop.org/ticket/11878
https://bugzilla.gnome.org/show_bug.cgi?id=677313
plugins/power/gsd-power-manager.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index 7c0d75e..99b8c4c 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -715,6 +715,10 @@ engine_recalculate_state_icon (GsdPowerManager *manager)
/* icon before, now different */
if (!g_icon_equal (manager->priv->previous_icon, icon)) {
+
+ /* set fallback icon */
+ gtk_status_icon_set_from_gicon (manager->priv->status_icon, icon);
+
g_object_unref (manager->priv->previous_icon);
manager->priv->previous_icon = icon;
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]