[gnome-shell-extensions] a11y: setting labels for Removable Drive Menu extension



commit 338f7423107e64c3c9cb8d66e8d0a311dbe34417
Author: Alejandro PiÃeiro <apinheiro igalia com>
Date:   Fri Jun 1 17:08:54 2012 +0200

    a11y: setting labels for Removable Drive Menu extension
    
    This includes:
     * A proper name for the menu (using when exploring the top panel)
     * A proper label for each device item
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677228

 extensions/drive-menu/extension.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/extensions/drive-menu/extension.js b/extensions/drive-menu/extension.js
index 26903ed..f301c66 100644
--- a/extensions/drive-menu/extension.js
+++ b/extensions/drive-menu/extension.js
@@ -28,6 +28,7 @@ const DriveMenuItem = new Lang.Class({
 
 	this.label = new St.Label({ text: place.name });
 	this.addActor(this.label);
+        this.actor.label_actor = this.label;
 
 	let ejectIcon = new St.Icon({ icon_name: 'media-eject',
 				      icon_type: St.IconType.SYMBOLIC,
@@ -53,7 +54,7 @@ const DriveMenu = new Lang.Class({
     Extends: PanelMenu.SystemStatusButton,
 
     _init: function() {
-	this.parent('media-eject');
+	this.parent('media-eject', _("Removable devices"));
 
 	this._manager = new PlaceDisplay.PlacesManager();
 	this._updatedId = this._manager.connect('mounts-updated', Lang.bind(this, this._update));



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