[polari/mater: 1/2] mainWindow: Improve accessible name of user-list button



commit afa37a11c2f0edef38c3fa71d20c3be17ff8103c
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Feb 21 22:53:26 2015 +0100

    mainWindow: Improve accessible name of user-list button
    
    By only showing a single number, the user-list menu button clearly
    errs on the side of space efficiency and visual cleanness rather
    than discoverability. Those are not concerns for the accessible
    name though, so we can use a less concise label there.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=743384

 src/mainWindow.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index df6399f..7f31b7e 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -301,6 +301,8 @@ const MainWindow = new Lang.Class({
             this._room.channel.has_interface(Tp.IFACE_CHANNEL_INTERFACE_GROUP))
             numMembers = this._room.channel.group_dup_members_contacts().length;
 
+        let accessibleName = _("%d users".format(numMembers));
+        this._showUserListButton.get_accessible().set_name(accessibleName);
         this._showUserListButton.label = '%d'.format(numMembers);
     },
 


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