mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
js: Cleanup usage of StScrollView
Whilst you *can* use add_actor() with ScrollView, it's more idiomatic to work on :child Cleanup a few extras along the way Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3010>
This commit is contained in:
parent
c72742486f
commit
49cca32ca5
12 changed files with 55 additions and 56 deletions
|
|
@ -43,13 +43,15 @@ const NotificationsBox = GObject.registerClass({
|
|||
name: 'unlockDialogNotifications',
|
||||
});
|
||||
|
||||
this._scrollView = new St.ScrollView({hscrollbar_policy: St.PolicyType.NEVER});
|
||||
this._notificationBox = new St.BoxLayout({
|
||||
vertical: true,
|
||||
style_class: 'unlock-dialog-notifications-container',
|
||||
});
|
||||
this._scrollView.add_child(this._notificationBox);
|
||||
|
||||
this._scrollView = new St.ScrollView({
|
||||
hscrollbar_policy: St.PolicyType.NEVER,
|
||||
child: this._notificationBox,
|
||||
});
|
||||
this.add_child(this._scrollView);
|
||||
|
||||
this._settings = new Gio.Settings({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue