style: Fix stray/missing semi-colons
Spotted by eslint. https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/49
This commit is contained in:
@@ -42,7 +42,7 @@ class ActivitiesMenuItem extends PopupMenu.PopupBaseMenuItem {
|
||||
Main.overview.toggle();
|
||||
super.activate(event);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
class ApplicationMenuItem extends PopupMenu.PopupBaseMenuItem {
|
||||
constructor(button, app) {
|
||||
@@ -112,7 +112,7 @@ class ApplicationMenuItem extends PopupMenu.PopupBaseMenuItem {
|
||||
_updateIcon() {
|
||||
this._iconBin.set_child(this.getDragActor());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
class CategoryMenuItem extends PopupMenu.PopupBaseMenuItem {
|
||||
constructor(button, category) {
|
||||
@@ -226,7 +226,7 @@ class CategoryMenuItem extends PopupMenu.PopupBaseMenuItem {
|
||||
}
|
||||
super.setActive(active, params);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
class ApplicationsMenu extends PopupMenu.PopupMenu {
|
||||
constructor(sourceActor, arrowAlignment, arrowSide, button) {
|
||||
@@ -262,7 +262,7 @@ class ApplicationsMenu extends PopupMenu.PopupMenu {
|
||||
}
|
||||
super.toggle();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
class DesktopTarget {
|
||||
constructor() {
|
||||
@@ -397,7 +397,7 @@ class DesktopTarget {
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
}
|
||||
Signals.addSignalMethods(DesktopTarget.prototype);
|
||||
|
||||
let ApplicationsButton = GObject.registerClass(
|
||||
|
||||
@@ -54,7 +54,7 @@ class WindowMover {
|
||||
this._appWindowsChanged.bind(this)),
|
||||
moveWindowsId: 0,
|
||||
windows: app.get_windows()
|
||||
}
|
||||
};
|
||||
this._appData.set(app, data);
|
||||
});
|
||||
}
|
||||
@@ -106,7 +106,7 @@ class WindowMover {
|
||||
});
|
||||
data.windows = windows;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
let prevCheckWorkspaces;
|
||||
let winMover;
|
||||
|
||||
@@ -110,7 +110,7 @@ class MountMenuItem extends PopupMenu.PopupBaseMenuItem {
|
||||
|
||||
super.activate(event);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
let DriveMenu = GObject.registerClass(
|
||||
class DriveMenu extends PanelMenu.Button {
|
||||
|
||||
@@ -66,7 +66,7 @@ class Rect {
|
||||
this.x += dx;
|
||||
this.y += dy;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
class NaturalLayoutStrategy extends Workspace.LayoutStrategy {
|
||||
constructor(settings) {
|
||||
@@ -231,7 +231,7 @@ class NaturalLayoutStrategy extends Workspace.LayoutStrategy {
|
||||
|
||||
return slots;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
let winInjections, workspaceInjections;
|
||||
|
||||
@@ -252,7 +252,7 @@ function enable() {
|
||||
strategy.computeLayout(windows, layout);
|
||||
|
||||
return layout;
|
||||
}
|
||||
};
|
||||
|
||||
/// position window titles on top of windows in overlay ////
|
||||
winInjections['relayout'] = Workspace.WindowOverlay.prototype.relayout;
|
||||
|
||||
@@ -62,14 +62,14 @@ class PlaceMenuItem extends PopupMenu.PopupBaseMenuItem {
|
||||
this._icon.gicon = info.icon;
|
||||
this._label.text = info.name;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
const SECTIONS = [
|
||||
'special',
|
||||
'devices',
|
||||
'bookmarks',
|
||||
'network'
|
||||
]
|
||||
];
|
||||
|
||||
let PlacesMenu = GObject.registerClass(
|
||||
class PlacesMenu extends PanelMenu.Button {
|
||||
|
||||
@@ -75,7 +75,7 @@ class PlaceInfo {
|
||||
Main.notifyError(_("Failed to launch “%s”").format(this.name), e.message);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
launch(timestamp) {
|
||||
@@ -128,7 +128,7 @@ class PlaceInfo {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
Signals.addSignalMethods(PlaceInfo.prototype);
|
||||
|
||||
class RootInfo extends PlaceInfo {
|
||||
@@ -168,7 +168,7 @@ class RootInfo extends PlaceInfo {
|
||||
}
|
||||
super.destroy();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
class PlaceDeviceInfo extends PlaceInfo {
|
||||
@@ -220,7 +220,7 @@ class PlaceDeviceInfo extends PlaceInfo {
|
||||
let msg = _("Ejecting drive “%s” failed:").format(this._mount.get_name());
|
||||
Main.notifyError(msg, exception.message);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
class PlaceVolumeInfo extends PlaceInfo {
|
||||
_init(kind, volume) {
|
||||
@@ -246,7 +246,7 @@ class PlaceVolumeInfo extends PlaceInfo {
|
||||
getIcon() {
|
||||
return this._volume.get_symbolic_icon();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
const DEFAULT_DIRECTORIES = [
|
||||
GLib.UserDirectory.DIRECTORY_DOCUMENTS,
|
||||
@@ -278,7 +278,7 @@ var PlacesManager = class {
|
||||
this._connectVolumeMonitorSignals();
|
||||
this._updateMounts();
|
||||
|
||||
this._bookmarksFile = this._findBookmarksFile()
|
||||
this._bookmarksFile = this._findBookmarksFile();
|
||||
this._bookmarkTimeoutId = 0;
|
||||
this._monitor = null;
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ class ThemeManager {
|
||||
Main.setThemeStylesheet(_stylesheet);
|
||||
Main.loadTheme();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function init() {
|
||||
return new ThemeManager();
|
||||
|
||||
@@ -139,7 +139,7 @@ class WindowContextMenu extends PopupMenu.PopupMenu {
|
||||
this._metaWindow.disconnect(this._notifyMaximizedHId);
|
||||
this._metaWindow.disconnect(this._notifyMaximizedVId);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
class WindowTitle {
|
||||
constructor(metaWindow) {
|
||||
@@ -206,7 +206,7 @@ class WindowTitle {
|
||||
this._metaWindow.disconnect(this._notifyWmClass);
|
||||
this._metaWindow.disconnect(this._notifyAppId);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
class BaseButton {
|
||||
@@ -323,7 +323,7 @@ class BaseButton {
|
||||
global.display.disconnect(this._windowLeftMonitorId);
|
||||
this._windowLeftMonitorId = 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
class WindowButton extends BaseButton {
|
||||
@@ -397,7 +397,7 @@ class WindowButton extends BaseButton {
|
||||
global.display.disconnect(this._notifyFocusId);
|
||||
this._contextMenu.destroy();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
class AppContextMenu extends PopupMenu.PopupMenu {
|
||||
@@ -458,7 +458,7 @@ class AppContextMenu extends PopupMenu.PopupMenu {
|
||||
|
||||
super.open(animate);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
class AppButton extends BaseButton {
|
||||
constructor(app, perMonitor, monitorIndex) {
|
||||
@@ -639,7 +639,7 @@ class AppButton extends BaseButton {
|
||||
this.app.disconnect(this._windowsChangedId);
|
||||
this._menu.destroy();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
let WorkspaceIndicator = GObject.registerClass(
|
||||
@@ -1188,7 +1188,7 @@ class WindowList {
|
||||
for (let i = 0; i < windows.length; i++)
|
||||
windows[i].metaWindow.set_icon_geometry(null);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
class Extension {
|
||||
constructor() {
|
||||
@@ -1243,7 +1243,7 @@ class Extension {
|
||||
someWindowListContains(actor) {
|
||||
return this._windowLists.some(list => list.actor.contains(actor));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function init() {
|
||||
return new Extension();
|
||||
|
||||
@@ -14,7 +14,7 @@ function injectToFunction(parent, name, func) {
|
||||
if (ret === undefined)
|
||||
ret = func.apply(this, arguments);
|
||||
return ret;
|
||||
}
|
||||
};
|
||||
return origin;
|
||||
}
|
||||
|
||||
@@ -35,13 +35,13 @@ function enable() {
|
||||
this._text.raise_top();
|
||||
this._text.show();
|
||||
this._text.text = (this._windowClone.slotId + 1).toString();
|
||||
}
|
||||
};
|
||||
winInjections['showTooltip'] = undefined;
|
||||
|
||||
Workspace.WindowOverlay.prototype.hideTooltip = function() {
|
||||
if (this._text && this._text.visible)
|
||||
this._text.hide();
|
||||
}
|
||||
};
|
||||
winInjections['hideTooltip'] = undefined;
|
||||
|
||||
Workspace.Workspace.prototype.showTooltip = function() {
|
||||
@@ -64,7 +64,7 @@ function enable() {
|
||||
this._tip.y = area.y;
|
||||
this._tip.show();
|
||||
this._tip.raise_top();
|
||||
}
|
||||
};
|
||||
workspaceInjections['showTooltip'] = undefined;
|
||||
|
||||
Workspace.Workspace.prototype.hideTooltip = function() {
|
||||
@@ -73,7 +73,7 @@ function enable() {
|
||||
if (!this._tip.get_parent())
|
||||
return;
|
||||
this._tip.hide();
|
||||
}
|
||||
};
|
||||
workspaceInjections['hideTooltip'] = undefined;
|
||||
|
||||
Workspace.Workspace.prototype.getWindowWithTooltip = function(id) {
|
||||
@@ -82,7 +82,7 @@ function enable() {
|
||||
return this._windows[i].metaWindow;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
};
|
||||
workspaceInjections['getWindowWithTooltip'] = undefined;
|
||||
|
||||
Workspace.Workspace.prototype.showWindowsTooltips = function() {
|
||||
@@ -90,7 +90,7 @@ function enable() {
|
||||
if (this._windowOverlays[i] != null)
|
||||
this._windowOverlays[i].showTooltip();
|
||||
}
|
||||
}
|
||||
};
|
||||
workspaceInjections['showWindowsTooltips'] = undefined;
|
||||
|
||||
Workspace.Workspace.prototype.hideWindowsTooltips = function() {
|
||||
@@ -98,7 +98,7 @@ function enable() {
|
||||
if (this._windowOverlays[i] != null)
|
||||
this._windowOverlays[i].hideTooltip();
|
||||
}
|
||||
}
|
||||
};
|
||||
workspaceInjections['hideWindowsTooltips'] = undefined;
|
||||
|
||||
WorkspacesView.WorkspacesView.prototype._hideTooltips = function() {
|
||||
@@ -107,7 +107,7 @@ function enable() {
|
||||
this._pickWindow = false;
|
||||
for (let i = 0; i < this._workspaces.length; i++)
|
||||
this._workspaces[i].hideWindowsTooltips();
|
||||
}
|
||||
};
|
||||
workViewInjections['_hideTooltips'] = undefined;
|
||||
|
||||
WorkspacesView.WorkspacesView.prototype._hideWorkspacesTooltips = function() {
|
||||
@@ -115,7 +115,7 @@ function enable() {
|
||||
this._pickWorkspace = false;
|
||||
for (let i = 0; i < this._workspaces.length; i++)
|
||||
this._workspaces[i].hideTooltip();
|
||||
}
|
||||
};
|
||||
workViewInjections['_hideWorkspacesTooltips'] = undefined;
|
||||
|
||||
WorkspacesView.WorkspacesView.prototype._onKeyRelease = function(s, o) {
|
||||
@@ -127,7 +127,7 @@ function enable() {
|
||||
(o.get_key_symbol() == Clutter.KEY_Control_L ||
|
||||
o.get_key_symbol() == Clutter.KEY_Control_R))
|
||||
this._hideWorkspacesTooltips();
|
||||
}
|
||||
};
|
||||
workViewInjections['_onKeyRelease'] = undefined;
|
||||
|
||||
WorkspacesView.WorkspacesView.prototype._onKeyPress = function(s, o) {
|
||||
@@ -208,7 +208,7 @@ function enable() {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
};
|
||||
workViewInjections['_onKeyPress'] = undefined;
|
||||
|
||||
winInjections['_init'] = injectToFunction(Workspace.WindowOverlay.prototype, '_init', function(windowClone, parentActor) {
|
||||
|
||||
Reference in New Issue
Block a user