[gnome-boxes] actions-popover: Set a11y role & name



commit 919c96575280ea5967f13a1c7b97d23220c3ff2e
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Nov 17 19:03:25 2014 +0000

    actions-popover: Set a11y role & name
    
    This is mainly done to make it easier to find this widget from dogtail
    but it should also be helpful for blind users.

 src/actions-popover.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/actions-popover.vala b/src/actions-popover.vala
index 14a0982..7a9a264 100644
--- a/src/actions-popover.vala
+++ b/src/actions-popover.vala
@@ -18,6 +18,11 @@ private class Boxes.ActionsPopover: Gtk.Popover {
         action_group = new GLib.SimpleActionGroup ();
         action_group.add_action_entries (action_entries, this);
         this.insert_action_group ("box", action_group);
+
+        var a11y = get_accessible ();
+        a11y.role = Atk.Role.POPUP_MENU;
+        // Translators: Accessibility name for context menu with box-related actions (e.g Pause, Delete etc)
+        a11y.name = _("Box actions");
     }
 
     public void update_for_item (CollectionItem item) {


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