[gedit] Add some ATK names and description for headerbar items



commit 79bfb0437433ab1029f74a04f53afc5fa5c5f0cc
Author: Paolo Borelli <pborelli gnome org>
Date:   Tue Feb 25 09:25:51 2014 +0100

    Add some ATK names and description for headerbar items

 gedit/gedit-window.c  |    2 ++
 gedit/gedit-window.ui |   18 ++++++++++++++++++
 2 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index fd94a95..d60e1f1 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -2498,6 +2498,8 @@ setup_side_panel (GeditWindow *window)
        gtk_button_set_relief (GTK_BUTTON (priv->side_stack_switcher), GTK_RELIEF_NONE);
        g_object_ref_sink (priv->side_stack_switcher);
 
+       gedit_utils_set_atk_name_description (priv->side_stack_switcher, _("Change side panel page"),  NULL);
+
        gedit_menu_stack_switcher_set_stack (GEDIT_MENU_STACK_SWITCHER (priv->side_stack_switcher),
                                             GTK_STACK (priv->side_panel));
 
diff --git a/gedit/gedit-window.ui b/gedit/gedit-window.ui
index 4900543..d273441 100644
--- a/gedit/gedit-window.ui
+++ b/gedit/gedit-window.ui
@@ -59,6 +59,12 @@
                     <style>
                       <class name="image-button"/>
                     </style>
+                    <child internal-child="accessible">
+                      <object class="AtkObject" id="open_menu_a11y">
+                        <property name="accessible-name" translatable="yes">Recent files</property>
+                        <property name="accessible-description" translatable="yes">Open a recently used 
file</property>
+                      </object>
+                    </child>
                   </object>
                 </child>
               </object>
@@ -82,6 +88,12 @@
                     <property name="icon_name">tab-new-symbolic</property>
                   </object>
                 </child>
+                <child internal-child="accessible">
+                  <object class="AtkObject" id="new_tab_a11y">
+                    <property name="accessible-name" translatable="yes">New</property>
+                    <property name="accessible-description" translatable="yes">Create a new 
document</property>
+                  </object>
+                </child>
               </object>
               <packing>
                 <property name="pack_type">start</property>
@@ -122,6 +134,12 @@
                     <property name="icon_name">document-save-symbolic</property>
                   </object>
                 </child>
+                <child internal-child="accessible">
+                  <object class="AtkObject" id="save_button_a11y">
+                    <property name="accessible-name" translatable="yes">Save</property>
+                    <property name="accessible-description" translatable="yes">Save the current 
file</property>
+                  </object>
+                </child>
               </object>
               <packing>
                 <property name="pack_type">end</property>


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