[sugar] [PATCH] 7248.1: speaker-icon chosen correctly

Martin Dengler martin at martindengler.com
Wed Jun 11 20:15:04 EDT 2008


speaker icon now chosen correctly; requires patch to sugar-toolkit
---
 src/view/devices/speaker.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/view/devices/speaker.py b/src/view/devices/speaker.py
index 5db16b5..a7efb26 100644
--- a/src/view/devices/speaker.py
+++ b/src/view/devices/speaker.py
@@ -57,7 +57,7 @@ class DeviceView(TrayIcon):
             xo_color = XoColor('%s,%s' % (style.COLOR_WHITE.get_svg(),
                                           style.COLOR_WHITE.get_svg()))
 
-        self.icon.props.icon_name = get_icon_state(name, current_level)
+        self.icon.props.icon_name = get_icon_state(name, current_level, step=1)
         self.icon.props.xo_color = xo_color
 
     def __speaker_status_changed_cb(self, pspec, param):
-- 
1.5.3.3



More information about the Sugar mailing list