diff --git a/taskbar.js b/taskbar.js index 8b7bb42..1b8f270 100644 --- a/taskbar.js +++ b/taskbar.js @@ -27,7 +27,6 @@ import Gio from 'gi://Gio'; import GLib from 'gi://GLib'; import GObject from 'gi://GObject'; import Graphene from 'gi://Graphene'; -import Gtk from 'gi://Gtk'; import Meta from 'gi://Meta'; import Shell from 'gi://Shell'; import St from 'gi://St'; @@ -225,8 +224,8 @@ export const Taskbar = class { this._container = new TaskbarActor(this); this._scrollView = new St.ScrollView({ name: 'dashtopanelScrollview', - hscrollbar_policy: Gtk.PolicyType.NEVER, - vscrollbar_policy: Gtk.PolicyType.NEVER, + hscrollbar_policy: St.PolicyType.NEVER, + vscrollbar_policy: St.PolicyType.NEVER, enable_mouse_scrolling: true }); this._scrollView.connect('leave-event', this._onLeaveEvent.bind(this)); diff --git a/windowPreview.js b/windowPreview.js index e82c75e..a556c5b 100644 --- a/windowPreview.js +++ b/windowPreview.js @@ -19,7 +19,6 @@ import GObject from 'gi://GObject'; import Clutter from 'gi://Clutter'; import GLib from 'gi://GLib'; import Graphene from 'gi://Graphene'; -import Gtk from 'gi://Gtk'; import * as Main from 'resource:///org/gnome/shell/ui/main.js'; import Meta from 'gi://Meta'; import * as PopupMenu from 'resource:///org/gnome/shell/ui/popupMenu.js'; @@ -95,8 +94,8 @@ export const PreviewMenu = GObject.registerClass({ this._box = new St.BoxLayout({ vertical: this.isVertical }); this._scrollView = new St.ScrollView({ name: 'dashtopanelPreviewScrollview', - hscrollbar_policy: Gtk.PolicyType.NEVER, - vscrollbar_policy: Gtk.PolicyType.NEVER, + hscrollbar_policy: St.PolicyType.NEVER, + vscrollbar_policy: St.PolicyType.NEVER, enable_mouse_scrolling: true, y_expand: !this.isVertical });