[evince] a11y: set accessible name for two buttons at EvToolbar



commit 5616ca5284a4bf790a8f99fbf3f4721d7b37edfa
Author: Alejandro Piñeiro <apinheiro igalia com>
Date:   Mon Sep 1 16:04:10 2014 +0200

    a11y: set accessible name for two buttons at EvToolbar
    
    Specifically:
      * "File options" button
      * "View options" button
    
    https://bugzilla.gnome.org/show_bug.cgi?id=734912

 shell/ev-toolbar.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/shell/ev-toolbar.c b/shell/ev-toolbar.c
index 34fa586..57dcaf9 100644
--- a/shell/ev-toolbar.c
+++ b/shell/ev-toolbar.c
@@ -245,6 +245,8 @@ ev_toolbar_constructed (GObject *object)
         button = ev_toolbar_create_menu_button (ev_toolbar, "open-menu-symbolic",
                                                 menu, GTK_ALIGN_END);
         gtk_widget_set_tooltip_text (button, _("File options"));
+        atk_object_set_name (gtk_widget_get_accessible (button), _("File options"));
+
         ev_toolbar->priv->action_menu_button = button;
         gtk_header_bar_pack_end (GTK_HEADER_BAR (ev_toolbar), button);
 
@@ -253,6 +255,7 @@ ev_toolbar_constructed (GObject *object)
         button = ev_toolbar_create_menu_button (ev_toolbar, "document-properties-symbolic",
                                                 menu, GTK_ALIGN_END);
         gtk_widget_set_tooltip_text (button, _("View options"));
+        atk_object_set_name (gtk_widget_get_accessible (button), _("View options"));
         ev_toolbar->priv->view_menu_button = button;
         gtk_header_bar_pack_end (GTK_HEADER_BAR (ev_toolbar), button);
 


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