[gnome-shell/gnome-3-36] messageTray: Add missing property getter



commit 4872d5969c7fb903ffd35ee5edf599ef054d49dc
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Apr 29 22:43:32 2020 +0000

    messageTray: Add missing property getter
    
    gjs has gotten less forgiving about missing getters/setters, and
    commit 6aa1b817 missed the missing getter in the base policy class.
    
    Most notifications use a policy subclass that already provides a
    getter, but at least Main.notify() and friends don't; unbreak them
    by fixing the base class.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1229
    
    
    (cherry picked from commit 5e254666b0ad459b480dca454788ca0d0003ba8c)

 js/ui/messageTray.js | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index f4ceb0ae79..970d2dd9dc 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -162,6 +162,10 @@ var NotificationPolicy = GObject.registerClass({
         this.run_dispose();
     }
 
+    get enable() {
+        return true;
+    }
+
     get enableSound() {
         return true;
     }


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