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



commit 15c17179d4cf0131a74e1551140f85186026ec67
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 0156877e8f..5c60a3ebbc 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -719,13 +719,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]