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



commit 60d7999b6a47a8206c6d8488611a823b05207952
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 simplify 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 e6f615b22a..aa617f3fcf 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,12 +1452,13 @@ 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_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]