[gnome-shell/gbsneto/folder-dialog-improvements: 15/30] appDisplay: Make AppFolderDialog subclass St.Bin
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/folder-dialog-improvements: 15/30] appDisplay: Make AppFolderDialog subclass St.Bin
- Date: Sun, 7 Jun 2020 03:59:21 +0000 (UTC)
commit 378658984059919cd7bbc2b66d2ab73d2b175dc1
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]