[gnome-shell] Adjust for renamed action mode



commit 530e8273ff775ffdc6e39cca02d0f6ac4cca96d8
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Feb 26 01:00:41 2015 +0100

    Adjust for renamed action mode
    
    Commit c79d24b60e7732 renamed the TOPBAR_POPUP mode to POPUP to
    reflect its new usage, but did not update any code that used it.
    Whoops.

 js/ui/status/keyboard.js |    2 +-
 js/ui/windowManager.js   |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js
index e3938d5..6e99658 100644
--- a/js/ui/status/keyboard.js
+++ b/js/ui/status/keyboard.js
@@ -243,7 +243,7 @@ const InputSourceManager = new Lang.Class({
         // of pushModal/popModal and grabHelper. See
         // https://bugzilla.gnome.org/show_bug.cgi?id=695143 .
         if (Main.actionMode == Shell.ActionMode.MESSAGE_TRAY ||
-            Main.actionMode == Shell.ActionMode.TOPBAR_POPUP) {
+            Main.actionMode == Shell.ActionMode.POPUP) {
             this._modifiersSwitcher();
             return;
         }
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index b4395c1..e0bf007 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -831,14 +831,14 @@ const WindowManager = new Lang.Class({
                            new Gio.Settings({ schema_id: SHELL_KEYBINDINGS_SCHEMA }),
                            Meta.KeyBindingFlags.NONE,
                            Shell.ActionMode.NORMAL |
-                           Shell.ActionMode.TOPBAR_POPUP,
+                           Shell.ActionMode.POPUP,
                            Lang.bind(this, this._toggleAppMenu));
 
         this.addKeybinding('toggle-message-tray',
                            new Gio.Settings({ schema_id: SHELL_KEYBINDINGS_SCHEMA }),
                            Meta.KeyBindingFlags.NONE,
                            Shell.ActionMode.NORMAL |
-                           Shell.ActionMode.TOPBAR_POPUP,
+                           Shell.ActionMode.POPUP,
                            Lang.bind(this, this._toggleCalendar));
 
         global.display.connect('show-resize-popup', Lang.bind(this, this._showResizePopup));


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