cleanup: Fix stray/missing spaces
Those are wrong according to our style guidelines, but the previous eslint ruleset didn't catch them. https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/91
This commit is contained in:
committed by
Florian Müllner
parent
fca516e58a
commit
fdc3dda484
@@ -377,10 +377,10 @@ class ApplicationsButton extends PanelMenu.Button {
|
||||
this.label_actor = this._label;
|
||||
|
||||
this._showingId = Main.overview.connect('showing', () => {
|
||||
this.add_accessible_state (Atk.StateType.CHECKED);
|
||||
this.add_accessible_state(Atk.StateType.CHECKED);
|
||||
});
|
||||
this._hidingId = Main.overview.connect('hiding', () => {
|
||||
this.remove_accessible_state (Atk.StateType.CHECKED);
|
||||
this.remove_accessible_state(Atk.StateType.CHECKED);
|
||||
});
|
||||
Main.layoutManager.connect('startup-complete',
|
||||
this._setKeybinding.bind(this));
|
||||
@@ -610,7 +610,7 @@ class ApplicationsButton extends PanelMenu.Button {
|
||||
this.mainBox.style = 'width: 35em;';
|
||||
this.mainBox.hide();
|
||||
|
||||
//Load categories
|
||||
// Load categories
|
||||
this.applicationsByCategory = {};
|
||||
this._tree.load_sync();
|
||||
let root = this._tree.get_root_directory();
|
||||
@@ -635,7 +635,7 @@ class ApplicationsButton extends PanelMenu.Button {
|
||||
}
|
||||
}
|
||||
|
||||
//Load applications
|
||||
// Load applications
|
||||
this._displayButtons(this._listApplications(null));
|
||||
|
||||
let themeContext = St.ThemeContext.get_for_stage(global.stage);
|
||||
|
||||
@@ -173,7 +173,7 @@ class DriveMenu extends PanelMenu.Button {
|
||||
return;
|
||||
}
|
||||
}
|
||||
log ('Removing a mount that was never added to the menu');
|
||||
log('Removing a mount that was never added to the menu');
|
||||
}
|
||||
|
||||
_onDestroy() {
|
||||
|
||||
@@ -16,7 +16,7 @@ class Extension {
|
||||
1,
|
||||
-1);
|
||||
|
||||
ThumbnailsBox.prototype._updateSwitcherVisibility = function() {
|
||||
ThumbnailsBox.prototype._updateSwitcherVisibility = function () {
|
||||
this.hide();
|
||||
};
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ let _activateOriginal = null;
|
||||
|
||||
function enable() {
|
||||
_activateOriginal = AppDisplay.AppIcon.prototype.activate;
|
||||
AppDisplay.AppIcon.prototype.activate = function() {
|
||||
AppDisplay.AppIcon.prototype.activate = function () {
|
||||
_activateOriginal.call(this, 2);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ class NaturalLayoutStrategy extends Workspace.LayoutStrategy {
|
||||
if (diff[0] == 0 && diff[1] == 0)
|
||||
diff[0] = 1;
|
||||
// Try to keep screen/workspace aspect ratio
|
||||
if ( bounds.height / bounds.width > areaRect.height / areaRect.width )
|
||||
if (bounds.height / bounds.width > areaRect.height / areaRect.width)
|
||||
diff[0] *= 2;
|
||||
else
|
||||
diff[1] *= 2;
|
||||
@@ -242,7 +242,7 @@ function enable() {
|
||||
let settings = ExtensionUtils.getSettings();
|
||||
|
||||
workspaceInjections['_getBestLayout'] = Workspace.Workspace.prototype._getBestLayout;
|
||||
Workspace.Workspace.prototype._getBestLayout = function(windows) {
|
||||
Workspace.Workspace.prototype._getBestLayout = function (windows) {
|
||||
let strategy = new NaturalLayoutStrategy(settings);
|
||||
let layout = { strategy };
|
||||
strategy.computeLayout(windows, layout);
|
||||
@@ -252,7 +252,7 @@ function enable() {
|
||||
|
||||
// position window titles on top of windows in overlay
|
||||
winInjections['relayout'] = Workspace.WindowOverlay.prototype.relayout;
|
||||
Workspace.WindowOverlay.prototype.relayout = function(animate) {
|
||||
Workspace.WindowOverlay.prototype.relayout = function (animate) {
|
||||
if (settings.get_boolean('window-captions-on-top')) {
|
||||
let [, , , cloneHeight] = this._windowClone.slot;
|
||||
this.title.translation_y = -cloneHeight;
|
||||
|
||||
@@ -1060,7 +1060,7 @@ const WindowList = GObject.registerClass({
|
||||
|
||||
_removeActivateTimeout() {
|
||||
if (this._dndTimeoutId)
|
||||
GLib.source_remove (this._dndTimeoutId);
|
||||
GLib.source_remove(this._dndTimeoutId);
|
||||
this._dndTimeoutId = 0;
|
||||
this._dndWindow = null;
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ class WorkspaceNameModel extends Gtk.ListStore {
|
||||
while (ok)
|
||||
ok = this.remove(iter);
|
||||
|
||||
for ( ; i < newNames.length; i++) {
|
||||
for (; i < newNames.length; i++) {
|
||||
iter = this.append();
|
||||
this.set(iter, [this.Columns.LABEL], [newNames[i]]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user