[orca] Remove the non-funcutioning Evolution new mail announcement.



commit 0d498a4cb68ebc3ca127a42b72102cc72c143053
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sun Jan 13 14:59:09 2013 -0500

    Remove the non-funcutioning Evolution new mail announcement.
    
    It didn't work in GNOME 2, and it doesn't work now. If Evo
    presents new mail via gnome-shell notifications, Orca will
    present the notification.

 src/orca/scripts/apps/evolution/script.py |   49 -----------------------------
 1 files changed, 0 insertions(+), 49 deletions(-)
---
diff --git a/src/orca/scripts/apps/evolution/script.py b/src/orca/scripts/apps/evolution/script.py
index 3dc8eae..d52c9a4 100644
--- a/src/orca/scripts/apps/evolution/script.py
+++ b/src/orca/scripts/apps/evolution/script.py
@@ -122,30 +122,6 @@ class Script(default.Script):
                 Script.sayAll,
                 _("Speaks entire document."))
 
-        self.inputEventHandlers["toggleReadMailHandler"] = \
-            input_event.InputEventHandler(
-                Script.toggleReadMail,
-                # Translators: this tells Orca to act like 'biff', or let
-                # the user know when new mail has arrived, even if Evolution
-                # doesn't have focus.
-                #
-                _("Toggle whether we present new mail " \
-                  "if we are not the active script."))
-
-    def getAppKeyBindings(self):
-        """Returns the application-specific keybindings for this script."""
-
-        keyBindings = keybindings.KeyBindings()
-
-        keyBindings.add(
-            keybindings.KeyBinding(
-                "n",
-                settings.defaultModifierMask,
-                settings.ORCA_MODIFIER_MASK,
-                self.inputEventHandlers["toggleReadMailHandler"]))
-
-        return keyBindings
-
     def isActivatableEvent(self, event):
         """Returns True if the given event is one that should cause this
         script to become the active script.  This is only a hint to
@@ -164,31 +140,6 @@ class Script(default.Script):
 
         return True
 
-    def toggleReadMail(self, inputEvent):
-        """ Toggle whether we present new mail if we not not the active script.+
-        Arguments:
-        - inputEvent: if not None, the input event that caused this action.
-        """
-
-        debug.println(self.debugLevel, "Evolution.toggleReadMail.")
-
-        # Translators: this tells Orca to act like 'biff', or let
-        # the user know when new mail has arrived, even if Evolution
-        # doesn't have focus.
-        #
-        line = _("present new mail if this script is not active.")
-        self.presentIfInactive = not self.presentIfInactive
-        if not self.presentIfInactive:
-            # Translators: this tells Orca to act like 'biff', or let
-            # the user know when new mail has arrived, even if Evolution
-            # doesn't have focus.
-            #
-            line = _("do not present new mail if this script is not active.")
-
-        self.presentMessage(line)
-
-        return True
-
     # This method tries to detect and handle the following cases:
     # 1) Mail view: current message pane: individual lines of text.
     # 2) Mail view: current message pane: "standard" mail header lines.



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