[gnome-shell/T29763: 156/249] fixup! bottomPanel: Add a shutdown button to the login screen



commit ad7832f4d4f4ef2a9fbba7fb99697cffc0796eda
Author: Andre Moreira Magalhaes <andre endlessm com>
Date:   Tue Mar 31 12:53:35 2020 -0300

    fixup! bottomPanel: Add a shutdown button to the login screen
    
    Commit 55b57421d replaced signal connections with vfunc calls which
    means PanelMenu.Button no longer invokes the _onEvent callback when
    clicked. Lets fix that by reimplementing the vfunc_event instead.
    
    https://phabricator.endlessm.com/T29673

 js/ui/panel.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index 3f3c03a92f..8db20251c5 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -837,7 +837,7 @@ class PopoverMenu extends PanelMenu.SingleIconButton {
         this.add_style_class_name('powermenu');
     }
 
-    _onEvent(actor, event) {
+    vfunc_event(event) {
         if (this.menu &&
             (event.type() == Clutter.EventType.TOUCH_BEGIN ||
              event.type() == Clutter.EventType.BUTTON_PRESS)) {


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