[Dextrose] [PATCH] Feature Request added : Remove Mute Toggle SL#1234

shanjit at seeta.in shanjit at seeta.in
Mon Dec 6 06:11:49 EST 2010


From: Shanjit Singh Jajmann <shanjit at seeta.in>

Mute toggle by clicking on the speaker icon has been removed. SL#1234
---
 extensions/deviceicon/speaker.py |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/extensions/deviceicon/speaker.py b/extensions/deviceicon/speaker.py
index 3a54464..4242105 100644
--- a/extensions/deviceicon/speaker.py
+++ b/extensions/deviceicon/speaker.py
@@ -50,9 +50,6 @@ class DeviceView(TrayIcon):
 
         self.connect('expose-event', self.__expose_event_cb)
 
-        self._icon_widget.connect('button-release-event',
-                                  self.__button_release_event_cb)
-
         self._update_info()
 
     def create_palette(self):
@@ -73,13 +70,6 @@ class DeviceView(TrayIcon):
         self.icon.props.icon_name = get_icon_state(name, current_level, step=-1)
         self.icon.props.xo_color = xo_color
 
-    def __button_release_event_cb(self, widget, event):
-        if event.button == 1:
-            self._model.props.muted = not self._model.props.muted
-            return True
-        else:
-            return False
-
     def __expose_event_cb(self, *args):
         self._update_info()
 
-- 
1.7.2.2



More information about the Dextrose mailing list