[gnome-shell/user-status-update: 6/12] status-menu: Add launcher for online accounts



commit d163cbd521e1da865cf5e7caad36b8a4d1c2d461
Author: Florian MÃllner <fmuellner gnome org>
Date:   Tue Jul 26 23:14:53 2011 +0200

    status-menu: Add launcher for online accounts

 js/ui/statusMenu.js |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/statusMenu.js b/js/ui/statusMenu.js
index bd3a9ca..638dab7 100644
--- a/js/ui/statusMenu.js
+++ b/js/ui/statusMenu.js
@@ -501,8 +501,8 @@ StatusMenuButton.prototype = {
         item = new PopupMenu.PopupSeparatorMenuItem();
         this.menu.addMenuItem(item);
 
-        item = new PopupMenu.PopupMenuItem(_("My Account"));
-        item.connect('activate', Lang.bind(this, this._onMyAccountActivate));
+        item = new PopupMenu.PopupMenuItem(_("Online Accounts"));
+        item.connect('activate', Lang.bind(this, this._onOnlineAccountSActivate));
         this.menu.addMenuItem(item);
 
         item = new PopupMenu.PopupMenuItem(_("System Settings"));
@@ -552,6 +552,12 @@ StatusMenuButton.prototype = {
         app.activate(-1);
     },
 
+    _onOnlineAccountSActivate: function() {
+        Main.overview.hide();
+        let app = Shell.AppSystem.get_default().get_app('gnome-online-accounts-panel.desktop');
+        app.activate(-1);
+    },
+
     _onPreferencesActivate: function() {
         Main.overview.hide();
         let app = Shell.AppSystem.get_default().get_app('gnome-control-center.desktop');



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