[gnome-shell/gbsneto/folder-dialog-improvements: 4/18] appDisplay: Make AppFolderDialog subclass St.Bin



commit 42354c96772b3d1a4f8959e0c21f09524df7576f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Jun 4 22:00:10 2020 -0300

    appDisplay: Make AppFolderDialog subclass St.Bin
    
    It'll simply things a bit.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1301

 js/ui/appDisplay.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 736d1027a9..e018aa96e0 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1423,10 +1423,9 @@ var AppFolderDialog = GObject.registerClass({
     Signals: {
         'open-state-changed': { param_types: [GObject.TYPE_BOOLEAN] },
     },
-}, class AppFolderDialog extends St.Widget {
+}, class AppFolderDialog extends St.Bin {
     _init(source, folder) {
         super._init({
-            layout_manager: new Clutter.BinLayout(),
             visible: false,
             x_expand: true,
             y_expand: true,
@@ -1453,14 +1452,15 @@ var AppFolderDialog = GObject.registerClass({
             y_align: Clutter.ActorAlign.FILL,
             vertical: true,
         });
-        this.add_child(new St.Bin({
+
+        this.child = new St.Bin({
             style_class: 'app-folder-dialog-container',
             child: this._viewBox,
             x_expand: true,
             y_expand: true,
             x_align: Clutter.ActorAlign.CENTER,
             y_align: Clutter.ActorAlign.CENTER,
-        }));
+        });
 
         this._addFolderNameEntry();
         this._viewBox.add_child(this._view);


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