[gnome-shell/gbsneto/folders-as-dialogs: 27/35] appDisplay: Add folder popups to the UI group



commit 870572998314b050e1b111e070e9d3aa94773178
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Dec 12 12:56:19 2019 -0300

    appDisplay: Add folder popups to the UI group
    
    Instead of adding the folder popups to the stack, add
    them to Main.uiGroup directly.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/896

 js/ui/appDisplay.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index da8f562195..610f10640b 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -702,13 +702,14 @@ var AllView = GObject.registerClass({
     }
 
     addFolderPopup(popup) {
-        this._stack.add_actor(popup);
+        Main.uiGroup.add_child(popup);
         popup.connect('open-state-changed', (o, isOpen) => {
             this._eventBlocker.visible = isOpen;
 
             if (this._currentPopup) {
                 this._currentPopup.disconnect(this._currentPopupDestroyId);
                 this._currentPopupDestroyId = 0;
+                Main.uiGroup.remove_child(popup);
             }
 
             this._currentPopup = null;


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