[gnome-shell/wip/carlosg/padosd-closed-signal] padOsd: Add missing 'closed' signal



commit 434860e59a3c70511514382e017bb6df02f9e142
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Nov 1 20:01:31 2019 +0100

    padOsd: Add missing 'closed' signal
    
    This wasn't added on the GObject-ification in commit c4c5c4fd5c. This
    introduced warnings and misbehaviors when closing the dialog. (Eg.
    pressing the "show OSD" pad action would show stack different dialogs
    on top each other).
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/800

 js/ui/padOsd.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/padOsd.js b/js/ui/padOsd.js
index 1a09420a69..00a35497e2 100644
--- a/js/ui/padOsd.js
+++ b/js/ui/padOsd.js
@@ -618,7 +618,10 @@ var PadDiagram = GObject.registerClass({
 });
 
 var PadOsd = GObject.registerClass({
-    Signals: { 'pad-selected': { param_types: [Clutter.InputDevice.$gtype] } }
+    Signals: {
+        'pad-selected': { param_types: [Clutter.InputDevice.$gtype] },
+        'closed': {}
+    }
 }, class PadOsd extends St.BoxLayout {
     _init(padDevice, settings, imagePath, editionMode, monitorIndex) {
         super._init({


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