[gnome-shell/gnome-3-24] remoteMenu: Add actionGroup accessor



commit 26433c2cb7d6c394844c5570b5eddbc8dbb4805c
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Jun 13 04:17:39 2017 +0200

    remoteMenu: Add actionGroup accessor
    
    To avoid recreating the app menu unnecessarily, the panel checks
    whether the menu's current actionGroup already matches the target
    one. However as the menu's actionGroup property is currently private,
    the test always fails, whoops.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781471

 js/ui/remoteMenu.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/remoteMenu.js b/js/ui/remoteMenu.js
index 7d7ebbf..4aee3d7 100644
--- a/js/ui/remoteMenu.js
+++ b/js/ui/remoteMenu.js
@@ -192,6 +192,10 @@ const RemoteMenu = new Lang.Class({
                                               _removeItem.bind(null, this));
     },
 
+    get actionGroup() {
+        return this._actionGroup;
+    },
+
     destroy: function() {
         this._tracker.destroy();
         this.parent();


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