mirror of
https://gitlab.gnome.org/julianschacher/top-bar-organizer.git
synced 2025-10-28 07:29:14 +00:00
Other: Handle ESLint complaints
This commit is contained in:
parent
062bc9ae26
commit
dc7ad73db4
@ -51,10 +51,10 @@ var PrefsBoxOrderItemRow = GObject.registerClass({
|
|||||||
const parentListBox = this.get_parent();
|
const parentListBox = this.get_parent();
|
||||||
parentListBox.remove(this);
|
parentListBox.remove(this);
|
||||||
parentListBox.saveBoxOrderToSettings();
|
parentListBox.saveBoxOrderToSettings();
|
||||||
})
|
});
|
||||||
actionGroup.add_action(forgetAction);
|
actionGroup.add_action(forgetAction);
|
||||||
|
|
||||||
this.insert_action_group(`options`, actionGroup);
|
this.insert_action_group("options", actionGroup);
|
||||||
}
|
}
|
||||||
|
|
||||||
onDragPrepare(_source, x, y) {
|
onDragPrepare(_source, x, y) {
|
||||||
@ -72,7 +72,7 @@ var PrefsBoxOrderItemRow = GObject.registerClass({
|
|||||||
let allocation = this.get_allocation();
|
let allocation = this.get_allocation();
|
||||||
dragWidget.set_size_request(allocation.width, allocation.height);
|
dragWidget.set_size_request(allocation.width, allocation.height);
|
||||||
|
|
||||||
let dragPrefsBoxOrderItemRow = new PrefsBoxOrderItemRow({}, this.item)
|
let dragPrefsBoxOrderItemRow = new PrefsBoxOrderItemRow({}, this.item);
|
||||||
dragWidget.append(dragPrefsBoxOrderItemRow);
|
dragWidget.append(dragPrefsBoxOrderItemRow);
|
||||||
dragWidget.drag_highlight_row(dragPrefsBoxOrderItemRow);
|
dragWidget.drag_highlight_row(dragPrefsBoxOrderItemRow);
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* exported PrefsBoxOrderListBox */
|
/* exported PrefsBoxOrderListBox */
|
||||||
|
/* global settings */
|
||||||
|
|
||||||
const Gtk = imports.gi.Gtk;
|
const Gtk = imports.gi.Gtk;
|
||||||
const GObject = imports.gi.GObject;
|
const GObject = imports.gi.GObject;
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
/* exported PrefsBoxOrderListEmptyPlaceholder */
|
/* exported PrefsBoxOrderListEmptyPlaceholder */
|
||||||
|
|
||||||
const Gtk = imports.gi.Gtk;
|
const Gtk = imports.gi.Gtk;
|
||||||
const Gdk = imports.gi.Gdk;
|
|
||||||
const GObject = imports.gi.GObject;
|
const GObject = imports.gi.GObject;
|
||||||
|
|
||||||
const ExtensionUtils = imports.misc.extensionUtils;
|
const ExtensionUtils = imports.misc.extensionUtils;
|
||||||
|
|||||||
@ -8,11 +8,12 @@ const Adw = imports.gi.Adw;
|
|||||||
const ExtensionUtils = imports.misc.extensionUtils;
|
const ExtensionUtils = imports.misc.extensionUtils;
|
||||||
const Me = ExtensionUtils.getCurrentExtension();
|
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;
|
const ScrollManager = Me.imports.prefsModules.ScrollManager;
|
||||||
|
|
||||||
|
// Imports to make UI file work.
|
||||||
|
/* exported PrefsBoxOrderListBox */
|
||||||
|
const PrefsBoxOrderListBox = Me.imports.prefsModules.PrefsBoxOrderListBox;
|
||||||
|
|
||||||
var PrefsPage = GObject.registerClass({
|
var PrefsPage = GObject.registerClass({
|
||||||
GTypeName: "PrefsPage",
|
GTypeName: "PrefsPage",
|
||||||
Template: Me.dir.get_child("ui").get_child("prefs-page.ui").get_uri()
|
Template: Me.dir.get_child("ui").get_child("prefs-page.ui").get_uri()
|
||||||
@ -56,7 +57,7 @@ var PrefsPage = GObject.registerClass({
|
|||||||
const stopScrollAllAtDNDEnd = () => {
|
const stopScrollAllAtDNDEnd = () => {
|
||||||
this._scrollManager.stopScrollAll();
|
this._scrollManager.stopScrollAll();
|
||||||
this._dndEnded = true;
|
this._dndEnded = true;
|
||||||
}
|
};
|
||||||
controller.connect("leave", () => {
|
controller.connect("leave", () => {
|
||||||
stopScrollAllAtDNDEnd();
|
stopScrollAllAtDNDEnd();
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user