~ted/ubiquity/upstart-indicators

« back to all changes in this revision

Viewing changes to ubiquity/frontend/gtk_ui.py

  • Committer: Dmitrijs Ledkovs
  • Date: 2013-10-18 23:49:07 UTC
  • Revision ID: dmitrijs.ledkovs@canonical.com-20131018234907-ajn6vrzp5g65jhbk
Silence progress dots with invalid a11y (LP: #1154345)

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 
50
50
#in query mode we won't be in X, but import needs to pass
51
51
if 'DISPLAY' in os.environ:
52
 
    from gi.repository import Gtk, Gdk, GObject, GLib
 
52
    from gi.repository import Gtk, Gdk, GObject, GLib, Atk
53
53
    from ubiquity import gtkwidgets
54
54
 
55
55
from ubiquity import (
330
330
 
331
331
        for mod in self.pages:
332
332
            progress = Gtk.ProgressBar()
 
333
            progress.get_accessible().set_role(Atk.Role.INVALID)
333
334
            progress.set_size_request(10, 10)
334
335
            progress.set_fraction(0)
335
336
            self.dot_grid.add(progress)