~ubuntu-branches/ubuntu/raring/gnome-orca/raring-proposed

« back to all changes in this revision

Viewing changes to src/orca/speechdispatcherfactory.py

  • Committer: Package Import Robot
  • Author(s): Luke Yelavich
  • Date: 2012-11-21 09:52:26 UTC
  • mfrom: (0.12.4)
  • Revision ID: package-import@ubuntu.com-20121121095226-os5cwqi6ix4r2v15
Tags: 3.7.2-0ubuntu1
The below changelog entries are combined from 3.7.0.94, 3.7.0.100 and 3.7.2
* New upstream release
  - General
    + Fix for bug 675288 - Orca doesn't always announce selection changes
      in Nautilus 3.6's icon view
    + Fix for bug 680228 - In Thunderbird 14.0 e-mail address auto
      completion results are not spoken
    + Fix for bug 684838 - Orca should present the accessible name of
      sliders
    + Fix for bug 675656 - Mark Hungarian 8 dot computer braille for
      translation
    + Use subprocess.Popen() instead of the deprecated os.popen()
    + Use for() instead of map() in cleanup()
    + Pkill fails to kill Orca in Python 3
    + Fix for bug 686189 - Use importlib.import_module() instead of
      __import__() and imp.reload() instead of reload()
    + Fix for braille email address auto completions in Thunderbird
    + Replace deprecated GObject functions with their GLib equivalents
    + Improve performance of building flat review context
    + Add keywords to the desktop file
    + Python 3 compatibility fixes for brlapi
    + Fix for bug 687526 - Patch: Orca excepts trying to output exceptions
    + Fix for bug 687527 - Handle applications returning 0 as the Value's
      minimalIncrement
  - Gecko
    + Fix for bug 674526 - Orca sometimes fails to present download dialog
      widgets in Firefox
    + Fix for bug 688057 - A page that hangs Orca.
  - Speech
    + Most of the fix for bug 688172 - Orca gets stuck in uppercase pitch
    + Fix for Orca continuing to speak when speech is disabled via the
      Preferences dialog
    + Fix for bug 687239 - Traceback seen in Python 3.3 when there are no
      settings saved
  - New and updated translations (THANKS EVERYONE!!!):
    + bg            Bulgarian               Alexander Shopov
    + ca            Catalan                 Gil Forcada
    + ca            Catalan (Valencian)     Carles Ferrando
    + cs            Czech                   Lucas Lommer
    + de            German                  Simon Bienlein, Mario Blättermann
                                            Hendrik Knackstedt
    + hu            Hungarian              Attila Hammer
    + it            Italian                 Milo Casagrande
    + lv            Latvian                 Rudolfs Mazurs
    + sl            Slovenian               Matej Urbančič
    + pt            Portuguese              Rui Batista
    + ta            Tamil                   Dr.T.Vasudevan
    + uk            Ukranian                Daniel Korostil
* debian/patches/02_brlapi_fixes.patch: Dropped, applied upstream
* debian/control: Bumped minimum dependency requirements

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
__copyright__ = "Copyright (c) 2006-2008 Brailcom, o.p.s."
39
39
__license__   = "LGPL"
40
40
 
41
 
from gi.repository import GObject
 
41
from gi.repository import GLib
42
42
import re
43
43
 
44
44
from . import chnames
257
257
                if current.get(acss_property) != value:
258
258
                    method(value)
259
259
                    current[acss_property] = value
 
260
            elif acss_property == ACSS.AVERAGE_PITCH:
 
261
                method(5.0)
 
262
                current[acss_property] = 5.0
260
263
            elif acss_property == ACSS.FAMILY and current.get(acss_property) \
261
264
                    and acss == settings.voices[settings.DEFAULT_VOICE]:
262
265
                # We need to explicitly reset (at least) the family.
352
355
                        context.currentOffset = context.startOffset
353
356
                elif t == speechserver.SayAllContext.COMPLETED:
354
357
                    context.currentOffset = context.endOffset
355
 
                GObject.idle_add(orca_callback, context, t)
 
358
                GLib.idle_add(orca_callback, context, t)
356
359
                if t == speechserver.SayAllContext.COMPLETED:
357
 
                    GObject.idle_add(self._say_all, iterator, orca_callback)
 
360
                    GLib.idle_add(self._say_all, iterator, orca_callback)
358
361
            self._speak(context.utterance, acss, callback=callback,
359
362
                        event_types=list(self._CALLBACK_TYPE_MAP.keys()))
360
363
        return False # to indicate, that we don't want to be called again.
434
437
                self._speak(utterance, acss)
435
438
 
436
439
    def sayAll(self, utteranceIterator, progressCallback):
437
 
        GObject.idle_add(self._say_all, utteranceIterator, progressCallback)
 
440
        GLib.idle_add(self._say_all, utteranceIterator, progressCallback)
438
441
 
439
442
    def speakCharacter(self, character, acss=None):
440
443
        self._apply_acss(acss)