Skip to content

Commit a134f47

Browse files
authored
Merge pull request #251 from ryonakano/fix-indentation
Use spaces indentation instead of a tab
2 parents 4d3b902 + 2650fe9 commit a134f47

File tree

5 files changed

+45
-45
lines changed

5 files changed

+45
-45
lines changed

src/lib.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ export function debug(message) {
5454
* @return {void}
5555
*/
5656
export function __ABSTRACT_METHOD__(object, method) {
57-
throw new Error(
58-
"Abstract method " +
59-
object.constructor.name + "." + method.name + "()" +
60-
" not implemented"
61-
);
57+
throw new Error(
58+
"Abstract method " +
59+
object.constructor.name + "." + method.name + "()" +
60+
" not implemented"
61+
);
6262
}

src/manager.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,29 +184,29 @@ export const Manager = class Manager {
184184
isApplicationSwitcher = !this.platform.getSettings().switch_application_behaves_like_switch_windows
185185
default:
186186
let currentOnly = this.platform.getSettings().current_workspace_only;
187-
if (currentOnly === 'all-currentfirst') {
187+
if (currentOnly === 'all-currentfirst') {
188188
// Switch between windows of all workspaces, prefer
189-
// those from current workspace
190-
let wins1 = windows.filter(matchWorkspace, currentWorkspace);
191-
let wins2 = windows.filter(matchOtherWorkspace, currentWorkspace);
189+
// those from current workspace
190+
let wins1 = windows.filter(matchWorkspace, currentWorkspace);
191+
let wins2 = windows.filter(matchOtherWorkspace, currentWorkspace);
192192
// Sort by user time
193193
wins1.sort(sortWindowsByUserTime);
194194
wins2.sort(sortWindowsByUserTime);
195195
windows = wins1.concat(wins2);
196196
wins1 = [];
197197
wins2 = [];
198-
} else {
199-
let filter = currentOnly === 'current' ? matchWorkspace :
198+
} else {
199+
let filter = currentOnly === 'current' ? matchWorkspace :
200200
matchSkipTaskbar;
201-
// Switch between windows of current workspace
202-
windows = windows.filter(filter, currentWorkspace);
201+
// Switch between windows of current workspace
202+
windows = windows.filter(filter, currentWorkspace);
203203
windows.sort(sortWindowsByUserTime);
204204
}
205205
break;
206206
}
207207

208208
// filter by windows existing on the active monitor
209-
if(this.platform.getSettings().switch_per_monitor)
209+
if (this.platform.getSettings().switch_per_monitor)
210210
{
211211
windows = windows.filter ( (win) =>
212212
win.get_monitor() == Main.layoutManager.currentMonitor.index );

src/platform.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ class AbstractPlatform {
147147
}
148148

149149
initBackground() {
150-
this._background = Meta.BackgroundActor.new_for_screen(global.screen);
151-
this._background.hide();
150+
this._background = Meta.BackgroundActor.new_for_screen(global.screen);
151+
this._background.hide();
152152
global.overlay_group.add_child(this._background);
153153
}
154154

@@ -162,7 +162,7 @@ class AbstractPlatform {
162162
}
163163

164164
removeBackground() {
165-
global.overlay_group.remove_child(this._background);
165+
global.overlay_group.remove_child(this._background);
166166
}
167167
}
168168

@@ -531,13 +531,13 @@ export class PlatformGnomeShell extends AbstractPlatform {
531531
}
532532

533533
initBackground() {
534-
this._backgroundGroup = new Meta.BackgroundGroup();
534+
this._backgroundGroup = new Meta.BackgroundGroup();
535535
this._backgroundGroup.set_name("coverflow-alt-tab-background-group");
536536
Main.layoutManager.uiGroup.add_child(this._backgroundGroup);
537-
if (this._backgroundGroup.lower_bottom) {
538-
this._backgroundGroup.lower_bottom();
537+
if (this._backgroundGroup.lower_bottom) {
538+
this._backgroundGroup.lower_bottom();
539539
} else {
540-
Main.uiGroup.set_child_below_sibling(this._backgroundGroup, null);
540+
Main.uiGroup.set_child_below_sibling(this._backgroundGroup, null);
541541
}
542542

543543
this._backgroundShade = new Clutter.Actor({

src/prefs.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -136,27 +136,27 @@ export default class CoverflowAltTabPreferences extends ExtensionPreferences {
136136
return _('Version %d').format(this.metadata.version);
137137
}
138138

139-
fillPreferencesWindow(window) {
140-
let settings = this.getSettings();
141-
let switcher_page = new Adw.PreferencesPage({
142-
title: _('General'),
143-
icon_name: 'general-symbolic',
144-
});
145-
146-
let switcher_pref_group = new Adw.PreferencesGroup({
147-
title: _('Switcher Properties'),
148-
});
149-
let switcher_looping_method_buttons = new Map([ [_("Flip Stack"), [[],[]]], [_("Carousel"), [[],[]]]]);
150-
151-
let switcher_looping_method_row = buildRadioAdw(settings, "switcher-looping-method", switcher_looping_method_buttons, _("Looping Method"), _("How to cycle through windows."));
152-
switcher_pref_group.add(buildRadioAdw(settings, "switcher-style", new Map([ [_("Coverflow"), [[switcher_looping_method_row], []]], [_("Timeline"), [[],[switcher_looping_method_row]] ]]), _("Style"), _("Pick the type of switcher.")))
153-
switcher_pref_group.add(buildSpinAdw(settings, "offset", [-500, 500, 1, 10], _("Vertical Offset"), _("Positive value moves everything down, negative up.")));
154-
switcher_pref_group.add(buildRadioAdw(settings, "position", new Map([ [_("Bottom"), [[], []]], [_("Top"), [[],[]]]]), _("Window Title Position"), _("Place window title above or below the switcher.")));
155-
switcher_pref_group.add(buildSwitcherAdw(settings, "enforce-primary-monitor", [], [], _("Enforce Primary Monitor"), _("Always show on the primary monitor, otherwise, show on the active monitor.")));
156-
157-
switcher_pref_group.add(switcher_looping_method_row);
158-
switcher_pref_group.add(buildSwitcherAdw(settings, "hide-panel", [], [], _("Hide Panel"), _("Hide panel when switching windows.")));
159-
switcher_pref_group.add(buildSwitcherAdw(settings, "invert-swipes", [], [], _("Invert Swipes"), _("Invert system scroll direction setting.")));
139+
fillPreferencesWindow(window) {
140+
let settings = this.getSettings();
141+
let switcher_page = new Adw.PreferencesPage({
142+
title: _('General'),
143+
icon_name: 'general-symbolic',
144+
});
145+
146+
let switcher_pref_group = new Adw.PreferencesGroup({
147+
title: _('Switcher Properties'),
148+
});
149+
let switcher_looping_method_buttons = new Map([ [_("Flip Stack"), [[],[]]], [_("Carousel"), [[],[]]]]);
150+
151+
let switcher_looping_method_row = buildRadioAdw(settings, "switcher-looping-method", switcher_looping_method_buttons, _("Looping Method"), _("How to cycle through windows."));
152+
switcher_pref_group.add(buildRadioAdw(settings, "switcher-style", new Map([ [_("Coverflow"), [[switcher_looping_method_row], []]], [_("Timeline"), [[],[switcher_looping_method_row]] ]]), _("Style"), _("Pick the type of switcher.")))
153+
switcher_pref_group.add(buildSpinAdw(settings, "offset", [-500, 500, 1, 10], _("Vertical Offset"), _("Positive value moves everything down, negative up.")));
154+
switcher_pref_group.add(buildRadioAdw(settings, "position", new Map([ [_("Bottom"), [[], []]], [_("Top"), [[],[]]]]), _("Window Title Position"), _("Place window title above or below the switcher.")));
155+
switcher_pref_group.add(buildSwitcherAdw(settings, "enforce-primary-monitor", [], [], _("Enforce Primary Monitor"), _("Always show on the primary monitor, otherwise, show on the active monitor.")));
156+
157+
switcher_pref_group.add(switcher_looping_method_row);
158+
switcher_pref_group.add(buildSwitcherAdw(settings, "hide-panel", [], [], _("Hide Panel"), _("Hide panel when switching windows.")));
159+
switcher_pref_group.add(buildSwitcherAdw(settings, "invert-swipes", [], [], _("Invert Swipes"), _("Invert system scroll direction setting.")));
160160
switcher_page.add(switcher_pref_group);
161161

162162
let background_pref_group = new Adw.PreferencesGroup({
@@ -207,7 +207,7 @@ export default class CoverflowAltTabPreferences extends ExtensionPreferences {
207207
let style_row = buildRadioAdw(settings, "icon-style", buttons, _("Application Icon Style"));
208208
let add_remove_effects_buttons = new Map([ [_("Fade Only"), [[],[]]], [_("Scale Only"), [[],[]]], [_("Fade and Scale"), [[],[]]]]);
209209

210-
let add_remove_effects_row = buildRadioAdw(settings, "icon-add-remove-effects", add_remove_effects_buttons, _("Add / Remove Effects"), _("How Icons and Labels ease in and out."));
210+
let add_remove_effects_row = buildRadioAdw(settings, "icon-add-remove-effects", add_remove_effects_buttons, _("Add / Remove Effects"), _("How Icons and Labels ease in and out."));
211211
icon_pref_group.add(style_row);
212212
icon_pref_group.add(size_row);
213213
icon_pref_group.add(opacity_row);
@@ -619,7 +619,7 @@ function buildRangeAdw(settings, key, values, title, subtitle="", draw_value=fal
619619
let [min, max, step, defvs] = values;
620620

621621
let pref = new Adw.ActionRow({
622-
title: title,
622+
title: title,
623623
});
624624
if (subtitle !== null && subtitle !== "") {
625625
pref.set_subtitle(subtitle);

src/switcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ export class Switcher {
881881
return true;
882882
}
883883
_windowDestroyed(wm, actor) {
884-
this._removeDestroyedWindow(actor.meta_window);
884+
this._removeDestroyedWindow(actor.meta_window);
885885
}
886886

887887
_checkDestroyed(window) {

0 commit comments

Comments
 (0)