[gnome-control-center] universal-access: Show "Screen Reader" option



commit a2b89e799c34485aed54f168be4dda0b1316f8f2
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Mar 24 16:16:16 2011 +0000

    universal-access: Show "Screen Reader" option
    
    and hook up to the preferences change
    
    https://bugzilla.gnome.org/show_bug.cgi?id=645708

 panels/universal-access/cc-ua-panel.c |    5 +++++
 panels/universal-access/uap.ui        |    3 ++-
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/panels/universal-access/cc-ua-panel.c b/panels/universal-access/cc-ua-panel.c
index 7f3e1d4..350c1c6 100644
--- a/panels/universal-access/cc-ua-panel.c
+++ b/panels/universal-access/cc-ua-panel.c
@@ -507,6 +507,11 @@ cc_ua_panel_init_seeing (CcUaPanel *self)
                               WID (priv->builder, "seeing_zoom_switch"),
                               NULL);
 
+  settings_on_off_editor_new (priv, priv->application_settings,
+                              "screen-reader-enabled",
+                              WID (priv->builder, "seeing_reader_switch"),
+                              NULL);
+
   cc_ua_panel_set_shortcut_label (self, "seeing_contrast_toggle_keybinding_label", "toggle-contrast");
   cc_ua_panel_set_shortcut_label (self, "seeing_increase_size_keybinding_label", "increase-text-size");
   cc_ua_panel_set_shortcut_label (self, "seeing_decrease_size_keybinding_label", "decrease-text-size");
diff --git a/panels/universal-access/uap.ui b/panels/universal-access/uap.ui
index 7d84d19..6c682e7 100644
--- a/panels/universal-access/uap.ui
+++ b/panels/universal-access/uap.ui
@@ -685,6 +685,7 @@
                   <object class="GtkFrame" id="seeing_reader_frame">
                     <property name="label_xalign">0</property>
                     <property name="shadow_type">none</property>
+                    <property name="visible">True</property>
                     <child>
                       <object class="GtkAlignment" id="alignment5">
                         <property name="visible">True</property>
@@ -762,7 +763,7 @@
                                 </child>
                                 <child>
                                   <object class="GtkButton" id="seeing_reader_preferences_button">
-                                    <property name="visible">True</property>
+                                    <property name="visible">False</property>
                                     <property name="sensitive">False</property>
                                     <property name="can_focus">True</property>
                                     <property name="receives_default">True</property>



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