[gnome-shell] status-menu: Rename to userMenu



commit 07660f7fcf9a55bf67ba6c59f2266ae58cc6b527
Author: Florian MÃllner <fmuellner gnome org>
Date:   Mon Aug 29 21:56:22 2011 +0200

    status-menu: Rename to userMenu
    
    We haven't actually been calling the top-right menu "status menu" for
    quite some time, so use the upcoming code changes as an excuse for
    renaming it to "user menu".

 js/Makefile.am                       |    2 +-
 js/ui/panel.js                       |    4 ++--
 js/ui/{statusMenu.js => userMenu.js} |    4 ++--
 po/POTFILES.in                       |    2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/js/Makefile.am b/js/Makefile.am
index f0282f2..25af725 100644
--- a/js/Makefile.am
+++ b/js/Makefile.am
@@ -56,7 +56,6 @@ nobase_dist_js_DATA = 	\
 	ui/searchDisplay.js	\
 	ui/shellDBus.js		\
 	ui/statusIconDispatcher.js	\
-	ui/statusMenu.js	\
 	ui/status/accessibility.js	\
 	ui/status/keyboard.js	\
 	ui/status/network.js	\
@@ -65,6 +64,7 @@ nobase_dist_js_DATA = 	\
 	ui/status/bluetooth.js	\
 	ui/telepathyClient.js	\
 	ui/tweener.js		\
+	ui/userMenu.js		\
 	ui/viewSelector.js	\
 	ui/windowAttentionHandler.js	\
 	ui/windowManager.js	\
diff --git a/js/ui/panel.js b/js/ui/panel.js
index ff181c6..987ca2b 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -16,7 +16,7 @@ const Layout = imports.ui.layout;
 const Overview = imports.ui.overview;
 const PopupMenu = imports.ui.popupMenu;
 const PanelMenu = imports.ui.panelMenu;
-const StatusMenu = imports.ui.statusMenu;
+const UserMenu = imports.ui.userMenu;
 const DateMenu = imports.ui.dateMenu;
 const Main = imports.ui.main;
 const Tweener = imports.ui.tweener;
@@ -954,7 +954,7 @@ Panel.prototype = {
         this._rightBox.add(this._statusBox);
 
         if (global.session_type == Shell.SessionType.USER) {
-            this._userMenu = new StatusMenu.StatusMenuButton();
+            this._userMenu = new UserMenu.UserMenuButton();
             this._userMenu.actor.name = 'panelStatus';
             this._rightBox.add(this._userMenu.actor);
         }
diff --git a/js/ui/statusMenu.js b/js/ui/userMenu.js
similarity index 99%
rename from js/ui/statusMenu.js
rename to js/ui/userMenu.js
index 2f16cbc..0d53b54 100644
--- a/js/ui/statusMenu.js
+++ b/js/ui/userMenu.js
@@ -27,11 +27,11 @@ const DISABLE_LOG_OUT_KEY = 'disable-log-out';
 // Copyright (C) 2004-2005 James M. Cape <jcape ignore-your tv>.
 // Copyright (C) 2008,2009 Red Hat, Inc.
 
-function StatusMenuButton() {
+function UserMenuButton() {
     this._init();
 }
 
-StatusMenuButton.prototype = {
+UserMenuButton.prototype = {
     __proto__: PanelMenu.Button.prototype,
 
     _init: function() {
diff --git a/po/POTFILES.in b/po/POTFILES.in
index f309c03..d71ff28 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -26,11 +26,11 @@ js/ui/shellMountOperation.js
 js/ui/status/accessibility.js
 js/ui/status/bluetooth.js
 js/ui/status/keyboard.js
-js/ui/statusMenu.js
 js/ui/status/network.js
 js/ui/status/power.js
 js/ui/status/volume.js
 js/ui/telepathyClient.js
+js/ui/userMenu.js
 js/ui/viewSelector.js
 js/ui/windowAttentionHandler.js
 src/gvc/gvc-mixer-control.c



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