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

« back to all changes in this revision

Viewing changes to src/orca/app_gui_prefs.py

  • Committer: Package Import Robot
  • Author(s): Luke Yelavich
  • Date: 2011-09-05 16:11:45 UTC
  • mfrom: (0.9.39 upstream)
  • Revision ID: package-import@ubuntu.com-20110905161145-1hi5a6dva201le8l
Tags: 3.1.90-0ubuntu1
* New upstream release
  - General
    + Fix for bug 626254 - Migrate from PyGTK to PyGObject introspection-
      based bindings
    + Fix for bug 652485 - Remove deprecated (or soon-to-be deprecated)
      GtkBox, GtkTable, etc. and use GtkGrid instead.
    + Fix for bug 657646 - Default stopSpeechOnActiveDescendantChanged()
      should not be so restrictive
    + Fix for bug 657579 - Orca should not present tooltips shown as a
      result of mouse hovering unless the 'present tooltips' setting is
      enabled
  - Gecko
    + Fix for bug 599361 - Significant delay building up the contents
      of certain lines in Firefox
    + Fix for bug 650904 - Work around AT-SPI2 caching issues with
      Thunderbird
  - New and updated translations (THANKS EVERYONE!!!):
    + ca            Catalan              Gil Forcada
    + de            German               Mario Blättermann
    + es            Spanish              Gonzalo Sanhueza, Jorge González
    + id            Indonesian           Andika Triwidada
    + nb            Norwegian bokmål     Kjartan Maraas
    + sr            Serbian              Miroslav Nikolić
    + ug            Uyghur               Abduxukur Abdurixit, Sahran
* debian/control: Update build-depends and package depends as follows:
  - Removed python-gtk2 deps
  - Depend on python-gobject >= 2.91.3
  - Depend on python-pyatspi2 >= 2.1.90
  - Depend on gobject introspection bindings for GTK3, wnck3, and pango

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
__copyright__ = "Copyright (c) 2007-2009 Sun Microsystems Inc."
26
26
__license__   = "LGPL"
27
27
 
28
 
import gtk
 
28
from gi.repository import Gtk
29
29
import locale
30
30
import os
31
31
import sys
98
98
        # in gail or gtk+ (see bug #554002).  Instead, we'll just hide it.
99
99
        #
100
100
        # self.get_widget("notebook").remove_page(0)
101
 
        self.get_widget("generalVBox").hide()
 
101
        self.get_widget("generalGrid").hide()
102
102
 
103
103
        self.get_widget("speechSystemsLabel").set_sensitive(False)
104
104
        self.get_widget("speechSystems").set_sensitive(False)
105
105
        self.get_widget("speechServersLabel").set_sensitive(False)
106
106
        self.get_widget("speechServers").set_sensitive(False)
107
107
 
108
 
        vbox = self.appScript.getAppPreferencesGUI()
109
 
        if vbox:
110
 
            label = gtk.Label(orca_state.activeScript.app.name)
111
 
            self.get_widget("notebook").append_page(vbox, label)
 
108
        appPage = self.appScript.getAppPreferencesGUI()
 
109
        if appPage:
 
110
            label = Gtk.Label(label=orca_state.activeScript.app.name)
 
111
            self.get_widget("notebook").append_page(appPage, label)
112
112
 
113
113
    def _createPronunciationTreeView(self, pronunciations=None):
114
114
        """Create the pronunciation dictionary tree view for this specific 
366
366
 
367
367
    showPreferencesUI()
368
368
 
369
 
    gtk.main()
 
369
    Gtk.main()
370
370
    sys.exit(0)
371
371
 
372
372
if __name__ == "__main__":