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



commit f7c8ee12daf761491a15b9f6067b5ea5ce211032
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 6047f3262b..cc58e212d5 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -728,13 +728,14 @@ var AppDisplay = 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]