summaryrefslogtreecommitdiff
path: root/caribou
diff options
context:
space:
mode:
authorEitan Isaacson <eitan@monotonous.org>2011-04-14 12:11:45 -0700
committerEitan Isaacson <eitan@monotonous.org>2011-04-14 12:11:45 -0700
commitb1c974aeace65b3ebcfe3ac5c1d1f0b2f1066d39 (patch)
treeb5f2eadc0116fb470bfef0736d7bb4d4c59a90bc /caribou
parent78dedf94463f8c0d9b8f441e7d70345bfff9a38e (diff)
downloadcaribou-b1c974aeace65b3ebcfe3ac5c1d1f0b2f1066d39.tar.gz
Changed wording a bit in a11y disabled dialog.
Diffstat (limited to 'caribou')
-rw-r--r--caribou/ui/main.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/caribou/ui/main.py b/caribou/ui/main.py
index f155f41..a76c2bb 100644
--- a/caribou/ui/main.py
+++ b/caribou/ui/main.py
@@ -56,7 +56,9 @@ class Caribou:
Gtk.DialogFlags.MODAL,
Gtk.MessageType.QUESTION,
Gtk.ButtonsType.YES_NO,
- _("Accessibility needs to be enabled. Do you want to enable it and run %s?") % const.APP_NAME)
+ _("In order to use %s, accessibility needs "
+ "to be enabled. Do you want to enable "
+ "it now?") % const.APP_NAME)
resp = msgdialog.run()
if resp == Gtk.ResponseType.NO:
msgdialog.destroy()
@@ -64,7 +66,17 @@ class Caribou:
if resp == Gtk.ResponseType.YES:
settings = Gio.Settings('org.gnome.desktop.interface')
atspi = settings.set_boolean("toolkit-accessibility", True)
+ msgdialog2 = Gtk.MessageDialog(msgdialog,
+ Gtk.DialogFlags.MODAL,
+ Gtk.MessageType.INFO,
+ Gtk.ButtonsType.OK,
+ _("Accessibility has been enabled. "
+ "Log out and back in again to use "
+ "%s." % const.APP_NAME))
+ msgdialog2.run()
+ msgdialog2.destroy()
msgdialog.destroy()
+ quit()
self.__current_acc = None
self.window_factory = window_factory
self.kb_factory = kb_factory