diff --git a/src/prefsModules/PrefsBoxOrderItemRow.js b/src/prefsModules/PrefsBoxOrderItemRow.js index 068caa6..c177802 100644 --- a/src/prefsModules/PrefsBoxOrderItemRow.js +++ b/src/prefsModules/PrefsBoxOrderItemRow.js @@ -51,10 +51,10 @@ var PrefsBoxOrderItemRow = GObject.registerClass({ const parentListBox = this.get_parent(); parentListBox.remove(this); parentListBox.saveBoxOrderToSettings(); - }) + }); actionGroup.add_action(forgetAction); - this.insert_action_group(`options`, actionGroup); + this.insert_action_group("options", actionGroup); } onDragPrepare(_source, x, y) { @@ -72,7 +72,7 @@ var PrefsBoxOrderItemRow = GObject.registerClass({ let allocation = this.get_allocation(); dragWidget.set_size_request(allocation.width, allocation.height); - let dragPrefsBoxOrderItemRow = new PrefsBoxOrderItemRow({}, this.item) + let dragPrefsBoxOrderItemRow = new PrefsBoxOrderItemRow({}, this.item); dragWidget.append(dragPrefsBoxOrderItemRow); dragWidget.drag_highlight_row(dragPrefsBoxOrderItemRow); diff --git a/src/prefsModules/PrefsBoxOrderListBox.js b/src/prefsModules/PrefsBoxOrderListBox.js index 839c4fe..e3db84f 100644 --- a/src/prefsModules/PrefsBoxOrderListBox.js +++ b/src/prefsModules/PrefsBoxOrderListBox.js @@ -1,5 +1,6 @@ "use strict"; /* exported PrefsBoxOrderListBox */ +/* global settings */ const Gtk = imports.gi.Gtk; const GObject = imports.gi.GObject; diff --git a/src/prefsModules/PrefsBoxOrderListEmptyPlaceholder.js b/src/prefsModules/PrefsBoxOrderListEmptyPlaceholder.js index f955b2b..cfeed56 100644 --- a/src/prefsModules/PrefsBoxOrderListEmptyPlaceholder.js +++ b/src/prefsModules/PrefsBoxOrderListEmptyPlaceholder.js @@ -2,7 +2,6 @@ /* exported PrefsBoxOrderListEmptyPlaceholder */ const Gtk = imports.gi.Gtk; -const Gdk = imports.gi.Gdk; const GObject = imports.gi.GObject; const ExtensionUtils = imports.misc.extensionUtils; diff --git a/src/prefsModules/PrefsPage.js b/src/prefsModules/PrefsPage.js index 18122af..2fae743 100644 --- a/src/prefsModules/PrefsPage.js +++ b/src/prefsModules/PrefsPage.js @@ -8,11 +8,12 @@ const Adw = imports.gi.Adw; const ExtensionUtils = imports.misc.extensionUtils; const Me = ExtensionUtils.getCurrentExtension(); -const PrefsBoxOrderListBox = Me.imports.prefsModules.PrefsBoxOrderListBox; -const PrefsBoxOrderListEmptyPlaceholder = Me.imports.prefsModules.PrefsBoxOrderListEmptyPlaceholder; -const PrefsBoxOrderItemRow = Me.imports.prefsModules.PrefsBoxOrderItemRow; const ScrollManager = Me.imports.prefsModules.ScrollManager; +// Imports to make UI file work. +/* exported PrefsBoxOrderListBox */ +const PrefsBoxOrderListBox = Me.imports.prefsModules.PrefsBoxOrderListBox; + var PrefsPage = GObject.registerClass({ GTypeName: "PrefsPage", Template: Me.dir.get_child("ui").get_child("prefs-page.ui").get_uri() @@ -56,7 +57,7 @@ var PrefsPage = GObject.registerClass({ const stopScrollAllAtDNDEnd = () => { this._scrollManager.stopScrollAll(); this._dndEnded = true; - } + }; controller.connect("leave", () => { stopScrollAllAtDNDEnd(); });