~ubuntu-branches/ubuntu/oneiric/gnome-orca/oneiric

« back to all changes in this revision

Viewing changes to src/orca/settings_manager.py

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2011-07-05 09:09:42 UTC
  • mfrom: (0.9.36 upstream)
  • Revision ID: james.westby@ubuntu.com-20110705090942-6cle2wtl1sdq9wr3
Tags: 3.1.3-0ubuntu1
* New upstream release
  - General
    + Fix for bug 653642 - Alt+F4 followed by Escape leaves the Orca window
      closed - but Orca still running
    + Fix for bug 653628 - List shortcuts mode: shortcut is spelled out as
      "shift T A B" instead of saying "shift tab"
    + Fix for bug 653634 - Orca welcome message is cut off
    + Fix for bug 653624 - bash-ism causes error in orca startup script
    + Fix for bug 653514 - The ONLY magnification work Orca should be doing
      is handling caret and focus tracking
    + Fix for bug 652500 - DBusException seen when Orca is running with
      gnome-shell mag
  - New and updated translations (THANKS EVERYONE!!!):
    + de            German               Christian Kirbach
    + es            Spanish              Daniel Mustieles
    + gl            Galician             Fran Diéguez
    + hu            Hungarian            Attila Hammer
    + sl            Slovenian            Matej Urbančič
    + sv            Swedish              Daniel Nylander
    + tr            Turkish              Muhammet Kara

Show diffs side-by-side

added added

removed removed

Lines of Context:
544
544
def getValueForKey(prefsDict, key):
545
545
    need2repr = ['brailleEOLIndicator', 'brailleContractionTable',
546
546
                 'brailleRequiredStateString', 'enabledBrailledTextAttributes',
547
 
                 'enabledSpokenTextAttributes', 'magZoomerBorderColor',
548
 
                 'magCursorColor', 'magCrossHairColor', 'magTargetDisplay',
549
 
                 'magSourceDisplay', 'speechRequiredStateString',
 
547
                 'enabledSpokenTextAttributes', 'speechRequiredStateString',
550
548
                 'speechServerFactory', 'presentDateFormat',
551
549
                 'presentTimeFormat']
552
550
 
553
551
    value = None
554
552
    if key in prefsDict:
555
553
        if type(prefsDict[key]) is str:
556
 
            if key == 'magZoomerLeft':
557
 
                value = eval('settings.%s' % prefsDict[key])
558
 
            elif key in need2repr:
 
554
            if key in need2repr:
559
555
                value = "\'%s\'" % prefsDict[key]
560
556
            elif key  == 'voices':
561
557
                key = getVoiceKey(key)