[caribou] Changed wording a bit in a11y disabled dialog.



commit b1c974aeace65b3ebcfe3ac5c1d1f0b2f1066d39
Author: Eitan Isaacson <eitan monotonous org>
Date:   Thu Apr 14 12:11:45 2011 -0700

    Changed wording a bit in a11y disabled dialog.

 caribou/ui/main.py |   14 +++++++++++++-
 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]