[gnome-boxes] app-window: Set accessible-name on window



commit 3c8fd2e52b1c6b95c0f9534640c75c1f313bb254
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Jan 29 14:35:36 2015 +0000

    app-window: Set accessible-name on window
    
    Bind the accessible-name of the window to its topbar's status. This is
    not only good for accessibility but also helps our automated tests to
    easily find appropriate windows.

 src/app-window.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/app-window.vala b/src/app-window.vala
index 973e18c..ccfa4c7 100644
--- a/src/app-window.vala
+++ b/src/app-window.vala
@@ -146,6 +146,9 @@ private class Boxes.AppWindow: Gtk.ApplicationWindow, Boxes.UI {
 
         wizard_window = new WizardWindow (this);
         props_window = new PropertiesWindow (this);
+
+        var a11y = get_accessible ();
+        topbar.bind_property ("status", a11y, "accessible-name", BindingFlags.SYNC_CREATE);
     }
 
     private void save_window_geometry () {


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