cleanup: Remove some unhelpful unused arguments
Those unused arguments aren't bugs - unbeknownst to eslint, they all correspond to valid signal parameters - but they don't contribute anything to clarity, so just remove them anyway. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/627
This commit is contained in:
parent
0257de1b7e
commit
79cf3a6dd0
@ -15,7 +15,7 @@ const RealmIface = loadInterfaceXML("org.freedesktop.realmd.Realm");
|
|||||||
const Realm = Gio.DBusProxy.makeProxyWrapper(RealmIface);
|
const Realm = Gio.DBusProxy.makeProxyWrapper(RealmIface);
|
||||||
|
|
||||||
var Manager = class {
|
var Manager = class {
|
||||||
constructor(parentActor) {
|
constructor() {
|
||||||
this._aggregateProvider = Provider(Gio.DBus.system,
|
this._aggregateProvider = Provider(Gio.DBus.system,
|
||||||
'org.freedesktop.realmd',
|
'org.freedesktop.realmd',
|
||||||
'/org/freedesktop/realmd',
|
'/org/freedesktop/realmd',
|
||||||
|
@ -88,7 +88,7 @@ class InputMethod extends Clutter.InputMethod {
|
|||||||
this.commit(text.get_text());
|
this.commit(text.get_text());
|
||||||
}
|
}
|
||||||
|
|
||||||
_onDeleteSurroundingText(context) {
|
_onDeleteSurroundingText() {
|
||||||
this.delete_surrounding();
|
this.delete_surrounding();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,12 +108,12 @@ class InputMethod extends Clutter.InputMethod {
|
|||||||
this._preeditVisible = visible;
|
this._preeditVisible = visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
_onShowPreeditText(context) {
|
_onShowPreeditText() {
|
||||||
this._preeditVisible = true;
|
this._preeditVisible = true;
|
||||||
this.set_preedit_text(this._preeditStr, this._preeditPos);
|
this.set_preedit_text(this._preeditStr, this._preeditPos);
|
||||||
}
|
}
|
||||||
|
|
||||||
_onHidePreeditText(context) {
|
_onHidePreeditText() {
|
||||||
this.set_preedit_text(null, this._preeditPos);
|
this.set_preedit_text(null, this._preeditPos);
|
||||||
this._preeditVisible = false;
|
this._preeditVisible = false;
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ function waitAndDraw(milliseconds) {
|
|||||||
let timeline = new Clutter.Timeline({ duration: milliseconds });
|
let timeline = new Clutter.Timeline({ duration: milliseconds });
|
||||||
timeline.start();
|
timeline.start();
|
||||||
|
|
||||||
timeline.connect('new-frame', (timeline, frame) => {
|
timeline.connect('new-frame', (_timeline, _frame) => {
|
||||||
global.stage.queue_redraw();
|
global.stage.queue_redraw();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ class PortalWindow extends Gtk.ApplicationWindow {
|
|||||||
this._webView.load_uri(this._originalUrl);
|
this._webView.load_uri(this._originalUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
vfunc_delete_event(event) {
|
vfunc_delete_event(_event) {
|
||||||
if (this._recheckAtExit)
|
if (this._recheckAtExit)
|
||||||
this._doneCallback(PortalHelperResult.RECHECK);
|
this._doneCallback(PortalHelperResult.RECHECK);
|
||||||
else
|
else
|
||||||
|
@ -839,7 +839,7 @@ var AppDisplay = class AppDisplay {
|
|||||||
this._controls.add_actor(this._views[i].control);
|
this._controls.add_actor(this._views[i].control);
|
||||||
|
|
||||||
let viewIndex = i;
|
let viewIndex = i;
|
||||||
this._views[i].control.connect('clicked', actor => {
|
this._views[i].control.connect('clicked', () => {
|
||||||
this._showView(viewIndex);
|
this._showView(viewIndex);
|
||||||
global.settings.set_uint('app-picker-view', viewIndex);
|
global.settings.set_uint('app-picker-view', viewIndex);
|
||||||
});
|
});
|
||||||
@ -1586,12 +1586,12 @@ var AppIcon = class AppIcon {
|
|||||||
GLib.Source.set_name_by_id(this._menuTimeoutId, '[gnome-shell] this.popupMenu');
|
GLib.Source.set_name_by_id(this._menuTimeoutId, '[gnome-shell] this.popupMenu');
|
||||||
}
|
}
|
||||||
|
|
||||||
_onLeaveEvent(actor, event) {
|
_onLeaveEvent(_actor, _event) {
|
||||||
this.actor.fake_release();
|
this.actor.fake_release();
|
||||||
this._removeMenuTimeout();
|
this._removeMenuTimeout();
|
||||||
}
|
}
|
||||||
|
|
||||||
_onButtonPress(actor, event) {
|
_onButtonPress(_actor, event) {
|
||||||
let button = event.get_button();
|
let button = event.get_button();
|
||||||
if (button == 1) {
|
if (button == 1) {
|
||||||
this._setPopupTimeout();
|
this._setPopupTimeout();
|
||||||
|
@ -34,7 +34,7 @@ var AudioDeviceSelectionDialog = GObject.registerClass({
|
|||||||
throw new Error('Too few devices for a selection');
|
throw new Error('Too few devices for a selection');
|
||||||
}
|
}
|
||||||
|
|
||||||
_buildLayout(devices) {
|
_buildLayout() {
|
||||||
let title = new St.Label({ style_class: 'audio-selection-title',
|
let title = new St.Label({ style_class: 'audio-selection-title',
|
||||||
text: _("Select Audio Device"),
|
text: _("Select Audio Device"),
|
||||||
x_align: Clutter.ActorAlign.CENTER });
|
x_align: Clutter.ActorAlign.CENTER });
|
||||||
|
@ -635,7 +635,7 @@ var Animation = class Animation {
|
|||||||
load(callback) {
|
load(callback) {
|
||||||
this._show = new GnomeDesktop.BGSlideShow({ file: this.file });
|
this._show = new GnomeDesktop.BGSlideShow({ file: this.file });
|
||||||
|
|
||||||
this._show.load_async(null, (object, result) => {
|
this._show.load_async(null, () => {
|
||||||
this.loaded = true;
|
this.loaded = true;
|
||||||
if (callback)
|
if (callback)
|
||||||
callback();
|
callback();
|
||||||
|
@ -172,19 +172,19 @@ var BarLevel = class {
|
|||||||
cr.$dispose();
|
cr.$dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
_getCurrentValue(actor) {
|
_getCurrentValue() {
|
||||||
return this._value;
|
return this._value;
|
||||||
}
|
}
|
||||||
|
|
||||||
_getOverdriveStart(actor) {
|
_getOverdriveStart() {
|
||||||
return this._overdriveStart;
|
return this._overdriveStart;
|
||||||
}
|
}
|
||||||
|
|
||||||
_getMinimumValue(actor) {
|
_getMinimumValue() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
_getMaximumValue(actor) {
|
_getMaximumValue() {
|
||||||
return this._maxValue;
|
return this._maxValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -192,7 +192,7 @@ var BarLevel = class {
|
|||||||
this._value = value;
|
this._value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
_valueChanged(barLevel, value, property) {
|
_valueChanged() {
|
||||||
this._customAccessible.notify("accessible-value");
|
this._customAccessible.notify("accessible-value");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -220,13 +220,13 @@ var DBusEventSource = class DBusEventSource {
|
|||||||
this._lastRequestEnd = null;
|
this._lastRequestEnd = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
_onNameAppeared(owner) {
|
_onNameAppeared() {
|
||||||
this._initialized = true;
|
this._initialized = true;
|
||||||
this._resetCache();
|
this._resetCache();
|
||||||
this._loadEvents(true);
|
this._loadEvents(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
_onNameVanished(oldOwner) {
|
_onNameVanished() {
|
||||||
this._resetCache();
|
this._resetCache();
|
||||||
this.emit('changed');
|
this.emit('changed');
|
||||||
}
|
}
|
||||||
|
@ -176,21 +176,21 @@ class KeyringDialog extends ModalDialog.ModalDialog {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
_onShowPassword(prompt) {
|
_onShowPassword() {
|
||||||
this._buildControlTable();
|
this._buildControlTable();
|
||||||
this._ensureOpen();
|
this._ensureOpen();
|
||||||
this._updateSensitivity(true);
|
this._updateSensitivity(true);
|
||||||
this._passwordEntry.grab_key_focus();
|
this._passwordEntry.grab_key_focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
_onShowConfirm(prompt) {
|
_onShowConfirm() {
|
||||||
this._buildControlTable();
|
this._buildControlTable();
|
||||||
this._ensureOpen();
|
this._ensureOpen();
|
||||||
this._updateSensitivity(true);
|
this._updateSensitivity(true);
|
||||||
this._continueButton.grab_key_focus();
|
this._continueButton.grab_key_focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
_onHidePrompt(prompt) {
|
_onHidePrompt() {
|
||||||
this.close();
|
this.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -734,7 +734,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
|
|||||||
let dialogContent = DialogContent[this._type];
|
let dialogContent = DialogContent[this._type];
|
||||||
|
|
||||||
for (let i = 0; i < inhibitorObjectPaths.length; i++) {
|
for (let i = 0; i < inhibitorObjectPaths.length; i++) {
|
||||||
let inhibitor = new GnomeSession.Inhibitor(inhibitorObjectPaths[i], (proxy, error) => {
|
let inhibitor = new GnomeSession.Inhibitor(inhibitorObjectPaths[i], proxy => {
|
||||||
this._onInhibitorLoaded(proxy);
|
this._onInhibitorLoaded(proxy);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -203,12 +203,12 @@ class InstallExtensionDialog extends ModalDialog.ModalDialog {
|
|||||||
this.contentLayout.add(content);
|
this.contentLayout.add(content);
|
||||||
}
|
}
|
||||||
|
|
||||||
_onCancelButtonPressed(button, event) {
|
_onCancelButtonPressed() {
|
||||||
this.close();
|
this.close();
|
||||||
this._invocation.return_value(GLib.Variant.new('(s)', ['cancelled']));
|
this._invocation.return_value(GLib.Variant.new('(s)', ['cancelled']));
|
||||||
}
|
}
|
||||||
|
|
||||||
_onInstallButtonPressed(button, event) {
|
_onInstallButtonPressed() {
|
||||||
let params = { shell_version: Config.PACKAGE_VERSION };
|
let params = { shell_version: Config.PACKAGE_VERSION };
|
||||||
|
|
||||||
let url = REPOSITORY_URL_DOWNLOAD.format(this._uuid);
|
let url = REPOSITORY_URL_DOWNLOAD.format(this._uuid);
|
||||||
|
@ -198,11 +198,11 @@ var CandidatePopup = class CandidatePopup {
|
|||||||
this._setTextAttributes(this._preeditText.clutter_text,
|
this._setTextAttributes(this._preeditText.clutter_text,
|
||||||
attrs);
|
attrs);
|
||||||
});
|
});
|
||||||
panelService.connect('show-preedit-text', ps => {
|
panelService.connect('show-preedit-text', () => {
|
||||||
this._preeditText.show();
|
this._preeditText.show();
|
||||||
this._updateVisibility();
|
this._updateVisibility();
|
||||||
});
|
});
|
||||||
panelService.connect('hide-preedit-text', ps => {
|
panelService.connect('hide-preedit-text', () => {
|
||||||
this._preeditText.hide();
|
this._preeditText.hide();
|
||||||
this._updateVisibility();
|
this._updateVisibility();
|
||||||
});
|
});
|
||||||
@ -212,11 +212,11 @@ var CandidatePopup = class CandidatePopup {
|
|||||||
|
|
||||||
this._auxText.text = text.get_text();
|
this._auxText.text = text.get_text();
|
||||||
});
|
});
|
||||||
panelService.connect('show-auxiliary-text', ps => {
|
panelService.connect('show-auxiliary-text', () => {
|
||||||
this._auxText.show();
|
this._auxText.show();
|
||||||
this._updateVisibility();
|
this._updateVisibility();
|
||||||
});
|
});
|
||||||
panelService.connect('hide-auxiliary-text', ps => {
|
panelService.connect('hide-auxiliary-text', () => {
|
||||||
this._auxText.hide();
|
this._auxText.hide();
|
||||||
this._updateVisibility();
|
this._updateVisibility();
|
||||||
});
|
});
|
||||||
@ -256,15 +256,15 @@ var CandidatePopup = class CandidatePopup {
|
|||||||
this._candidateArea.setOrientation(lookupTable.get_orientation());
|
this._candidateArea.setOrientation(lookupTable.get_orientation());
|
||||||
this._candidateArea.updateButtons(lookupTable.is_round(), page, nPages);
|
this._candidateArea.updateButtons(lookupTable.is_round(), page, nPages);
|
||||||
});
|
});
|
||||||
panelService.connect('show-lookup-table', ps => {
|
panelService.connect('show-lookup-table', () => {
|
||||||
this._candidateArea.actor.show();
|
this._candidateArea.actor.show();
|
||||||
this._updateVisibility();
|
this._updateVisibility();
|
||||||
});
|
});
|
||||||
panelService.connect('hide-lookup-table', ps => {
|
panelService.connect('hide-lookup-table', () => {
|
||||||
this._candidateArea.actor.hide();
|
this._candidateArea.actor.hide();
|
||||||
this._updateVisibility();
|
this._updateVisibility();
|
||||||
});
|
});
|
||||||
panelService.connect('focus-out', ps => {
|
panelService.connect('focus-out', () => {
|
||||||
this._boxPointer.close(BoxPointer.PopupAnimation.NONE);
|
this._boxPointer.close(BoxPointer.PopupAnimation.NONE);
|
||||||
Main.keyboard.resetSuggestions();
|
Main.keyboard.resetSuggestions();
|
||||||
});
|
});
|
||||||
|
@ -100,7 +100,7 @@ class KeyContainer extends St.Widget {
|
|||||||
this._rows = [];
|
this._rows = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
appendRow(length) {
|
appendRow() {
|
||||||
this._currentRow++;
|
this._currentRow++;
|
||||||
this._currentCol = 0;
|
this._currentCol = 0;
|
||||||
|
|
||||||
@ -1171,7 +1171,7 @@ var Keyboard = class Keyboard {
|
|||||||
|
|
||||||
this._emojiSelection = new EmojiSelection();
|
this._emojiSelection = new EmojiSelection();
|
||||||
this._emojiSelection.connect('toggle', this._toggleEmoji.bind(this));
|
this._emojiSelection.connect('toggle', this._toggleEmoji.bind(this));
|
||||||
this._emojiSelection.connect('hide', (selection) => this.hide());
|
this._emojiSelection.connect('hide', () => this.hide());
|
||||||
this._emojiSelection.connect('emoji-selected', (selection, emoji) => {
|
this._emojiSelection.connect('emoji-selected', (selection, emoji) => {
|
||||||
this._keyboardController.commitString(emoji);
|
this._keyboardController.commitString(emoji);
|
||||||
});
|
});
|
||||||
@ -1467,7 +1467,7 @@ var Keyboard = class Keyboard {
|
|||||||
this._setActiveLayer(0);
|
this._setActiveLayer(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
_onKeyboardGroupsChanged(keyboard) {
|
_onKeyboardGroupsChanged() {
|
||||||
let nonGroupActors = [this._emojiSelection.actor, this._keypad.actor];
|
let nonGroupActors = [this._emojiSelection.actor, this._keypad.actor];
|
||||||
this._aspectContainer.get_children().filter(c => !nonGroupActors.includes(c)).forEach(c => {
|
this._aspectContainer.get_children().filter(c => !nonGroupActors.includes(c)).forEach(c => {
|
||||||
c.destroy();
|
c.destroy();
|
||||||
|
@ -267,7 +267,7 @@ var ObjLink = class ObjLink {
|
|||||||
this._lookingGlass = lookingGlass;
|
this._lookingGlass = lookingGlass;
|
||||||
}
|
}
|
||||||
|
|
||||||
_onClicked(link) {
|
_onClicked() {
|
||||||
this._lookingGlass.inspectObject(this._obj, this.actor);
|
this._lookingGlass.inspectObject(this._obj, this.actor);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -148,7 +148,7 @@ var Magnifier = class Magnifier {
|
|||||||
setActive(activate) {
|
setActive(activate) {
|
||||||
let isActive = this.isActive();
|
let isActive = this.isActive();
|
||||||
|
|
||||||
this._zoomRegions.forEach((zoomRegion, index, array) => {
|
this._zoomRegions.forEach(zoomRegion => {
|
||||||
zoomRegion.setActive(activate);
|
zoomRegion.setActive(activate);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -234,7 +234,7 @@ var Magnifier = class Magnifier {
|
|||||||
this.yMouse = yMouse;
|
this.yMouse = yMouse;
|
||||||
|
|
||||||
let sysMouseOverAny = false;
|
let sysMouseOverAny = false;
|
||||||
this._zoomRegions.forEach((zoomRegion, index, array) => {
|
this._zoomRegions.forEach(zoomRegion => {
|
||||||
if (zoomRegion.scrollToMousePos())
|
if (zoomRegion.scrollToMousePos())
|
||||||
sysMouseOverAny = true;
|
sysMouseOverAny = true;
|
||||||
});
|
});
|
||||||
@ -332,7 +332,7 @@ var Magnifier = class Magnifier {
|
|||||||
this.setCrosshairsClip(clip);
|
this.setCrosshairsClip(clip);
|
||||||
|
|
||||||
let theCrossHairs = this._crossHairs;
|
let theCrossHairs = this._crossHairs;
|
||||||
this._zoomRegions.forEach ((zoomRegion, index, array) => {
|
this._zoomRegions.forEach (zoomRegion => {
|
||||||
zoomRegion.addCrosshairs(theCrossHairs);
|
zoomRegion.addCrosshairs(theCrossHairs);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -124,7 +124,7 @@ var ShellMagnifier = class ShellMagnifier {
|
|||||||
let zoomRegions = Main.magnifier.getZoomRegions();
|
let zoomRegions = Main.magnifier.getZoomRegions();
|
||||||
let objectPaths = [];
|
let objectPaths = [];
|
||||||
let thoseZoomers = this._zoomers;
|
let thoseZoomers = this._zoomers;
|
||||||
zoomRegions.forEach ((aZoomRegion, index, array) => {
|
zoomRegions.forEach (aZoomRegion => {
|
||||||
let found = false;
|
let found = false;
|
||||||
for (let objectPath in thoseZoomers) {
|
for (let objectPath in thoseZoomers) {
|
||||||
let proxyAndZoomRegion = thoseZoomers[objectPath];
|
let proxyAndZoomRegion = thoseZoomers[objectPath];
|
||||||
|
@ -658,7 +658,7 @@ function _queueBeforeRedraw(workId) {
|
|||||||
*
|
*
|
||||||
* Returns: A string work identifier
|
* Returns: A string work identifier
|
||||||
*/
|
*/
|
||||||
function initializeDeferredWork(actor, callback, props) {
|
function initializeDeferredWork(actor, callback) {
|
||||||
// Turn into a string so we can use as an object property
|
// Turn into a string so we can use as an object property
|
||||||
let workId = `${(++_deferredWorkSequence)}`;
|
let workId = `${(++_deferredWorkSequence)}`;
|
||||||
_deferredWorkData[workId] = { 'actor': actor,
|
_deferredWorkData[workId] = { 'actor': actor,
|
||||||
|
@ -489,7 +489,7 @@ class ActivitiesButton extends PanelMenu.Button {
|
|||||||
return Clutter.EVENT_PROPAGATE;
|
return Clutter.EVENT_PROPAGATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
_xdndToggleOverview(actor) {
|
_xdndToggleOverview() {
|
||||||
let [x, y, mask] = global.get_pointer();
|
let [x, y, mask] = global.get_pointer();
|
||||||
let pickedActor = global.stage.get_actor_at_pos(Clutter.PickMode.REACTIVE, x, y);
|
let pickedActor = global.stage.get_actor_at_pos(Clutter.PickMode.REACTIVE, x, y);
|
||||||
|
|
||||||
@ -596,7 +596,7 @@ var PanelCorner = class {
|
|||||||
|
|
||||||
// Synchronize the locate button's pseudo classes with this corner
|
// Synchronize the locate button's pseudo classes with this corner
|
||||||
this._buttonStyleChangedSignalId = button.connect('style-changed',
|
this._buttonStyleChangedSignalId = button.connect('style-changed',
|
||||||
actor => {
|
() => {
|
||||||
let pseudoClass = button.get_style_pseudo_class();
|
let pseudoClass = button.get_style_pseudo_class();
|
||||||
this.actor.set_style_pseudo_class(pseudoClass);
|
this.actor.set_style_pseudo_class(pseudoClass);
|
||||||
});
|
});
|
||||||
|
@ -72,13 +72,13 @@ var PointerWatcher = class {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_onIdleMonitorBecameActive(monitor) {
|
_onIdleMonitorBecameActive() {
|
||||||
this._idle = false;
|
this._idle = false;
|
||||||
this._updatePointer();
|
this._updatePointer();
|
||||||
this._updateTimeout();
|
this._updateTimeout();
|
||||||
}
|
}
|
||||||
|
|
||||||
_onIdleMonitorBecameIdle(monitor) {
|
_onIdleMonitorBecameIdle() {
|
||||||
this._idle = true;
|
this._idle = true;
|
||||||
this._idleMonitor.add_user_active_watch(this._onIdleMonitorBecameActive.bind(this));
|
this._idleMonitor.add_user_active_watch(this._onIdleMonitorBecameActive.bind(this));
|
||||||
this._updateTimeout();
|
this._updateTimeout();
|
||||||
@ -108,7 +108,7 @@ var PointerWatcher = class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_updatePointer() {
|
_updatePointer() {
|
||||||
let [x, y, mods] = global.get_pointer();
|
let [x, y] = global.get_pointer();
|
||||||
if (this.pointerX == x && this.pointerY == y)
|
if (this.pointerX == x && this.pointerY == y)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ var PopupBaseMenuItem = GObject.registerClass({
|
|||||||
this._parent = parent;
|
this._parent = parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
_onButtonPressEvent(actor, event) {
|
_onButtonPressEvent() {
|
||||||
// This is the CSS active state
|
// This is the CSS active state
|
||||||
this.add_style_pseudo_class('active');
|
this.add_style_pseudo_class('active');
|
||||||
return Clutter.EVENT_PROPAGATE;
|
return Clutter.EVENT_PROPAGATE;
|
||||||
@ -1193,11 +1193,11 @@ class PopupSubMenuMenuItem extends PopupBaseMenuItem {
|
|||||||
return super._onKeyPressEvent(actor, event);
|
return super._onKeyPressEvent(actor, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
activate(event) {
|
activate(_event) {
|
||||||
this._setOpenState(true);
|
this._setOpenState(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
_onButtonReleaseEvent(actor) {
|
_onButtonReleaseEvent() {
|
||||||
// Since we override the parent, we need to manage what the parent does
|
// Since we override the parent, we need to manage what the parent does
|
||||||
// with the active style class
|
// with the active style class
|
||||||
this.remove_style_pseudo_class('active');
|
this.remove_style_pseudo_class('active');
|
||||||
|
@ -295,7 +295,7 @@ var SelectArea = class {
|
|||||||
return Clutter.EVENT_PROPAGATE;
|
return Clutter.EVENT_PROPAGATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
_onButtonRelease(actor, event) {
|
_onButtonRelease() {
|
||||||
this._result = this._getGeometry();
|
this._result = this._getGeometry();
|
||||||
Tweener.addTween(this._group,
|
Tweener.addTween(this._group,
|
||||||
{ opacity: 0,
|
{ opacity: 0,
|
||||||
|
@ -335,7 +335,7 @@ var ScreenSaverDBus = class {
|
|||||||
screenShield.connect('active-changed', shield => {
|
screenShield.connect('active-changed', shield => {
|
||||||
this._dbusImpl.emit_signal('ActiveChanged', GLib.Variant.new('(b)', [shield.active]));
|
this._dbusImpl.emit_signal('ActiveChanged', GLib.Variant.new('(b)', [shield.active]));
|
||||||
});
|
});
|
||||||
screenShield.connect('wake-up-screen', shield => {
|
screenShield.connect('wake-up-screen', () => {
|
||||||
this._dbusImpl.emit_signal('WakeUpScreen', null);
|
this._dbusImpl.emit_signal('WakeUpScreen', null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -202,7 +202,7 @@ var Slider = class extends BarLevel.BarLevel {
|
|||||||
this.emit('value-changed', this._value);
|
this.emit('value-changed', this._value);
|
||||||
}
|
}
|
||||||
|
|
||||||
_getMinimumIncrement(actor) {
|
_getMinimumIncrement() {
|
||||||
return 0.1;
|
return 0.1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -67,7 +67,7 @@ function ssidToLabel(ssid) {
|
|||||||
return label;
|
return label;
|
||||||
}
|
}
|
||||||
|
|
||||||
function ensureActiveConnectionProps(active, client) {
|
function ensureActiveConnectionProps(active) {
|
||||||
if (!active._primaryDevice) {
|
if (!active._primaryDevice) {
|
||||||
let devices = active.get_devices();
|
let devices = active.get_devices();
|
||||||
if (devices.length > 0) {
|
if (devices.length > 0) {
|
||||||
@ -401,7 +401,7 @@ var NMConnectionDevice = class NMConnectionDevice extends NMConnectionSection {
|
|||||||
let item = this._connectionItems.get(activeConnection.connection.get_uuid());
|
let item = this._connectionItems.get(activeConnection.connection.get_uuid());
|
||||||
if (item) {
|
if (item) {
|
||||||
this._activeConnection = activeConnection;
|
this._activeConnection = activeConnection;
|
||||||
ensureActiveConnectionProps(this._activeConnection, this._client);
|
ensureActiveConnectionProps(this._activeConnection);
|
||||||
item.setActiveConnection(this._activeConnection);
|
item.setActiveConnection(this._activeConnection);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1802,13 +1802,13 @@ var NMApplet = class extends PanelMenu.SystemIndicator {
|
|||||||
|
|
||||||
connection = this._client.get_primary_connection();
|
connection = this._client.get_primary_connection();
|
||||||
if (connection) {
|
if (connection) {
|
||||||
ensureActiveConnectionProps(connection, this._client);
|
ensureActiveConnectionProps(connection);
|
||||||
return connection;
|
return connection;
|
||||||
}
|
}
|
||||||
|
|
||||||
connection = this._client.get_activating_connection();
|
connection = this._client.get_activating_connection();
|
||||||
if (connection) {
|
if (connection) {
|
||||||
ensureActiveConnectionProps(connection, this._client);
|
ensureActiveConnectionProps(connection);
|
||||||
return connection;
|
return connection;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1845,7 +1845,7 @@ var NMApplet = class extends PanelMenu.SystemIndicator {
|
|||||||
a => (a instanceof NM.VpnConnection)
|
a => (a instanceof NM.VpnConnection)
|
||||||
);
|
);
|
||||||
vpnConnections.forEach(a => {
|
vpnConnections.forEach(a => {
|
||||||
ensureActiveConnectionProps(a, this._client);
|
ensureActiveConnectionProps(a);
|
||||||
});
|
});
|
||||||
this._vpnSection.setActiveConnections(vpnConnections);
|
this._vpnSection.setActiveConnections(vpnConnections);
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ var StreamSlider = class {
|
|||||||
this._slider.setValue(value);
|
this._slider.setValue(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
_sliderChanged(slider, value, property) {
|
_sliderChanged(slider, value) {
|
||||||
if (!this._stream)
|
if (!this._stream)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -346,7 +346,7 @@ var Indicator = class extends PanelMenu.SystemIndicator {
|
|||||||
|
|
||||||
this._control = getMixerControl();
|
this._control = getMixerControl();
|
||||||
this._volumeMenu = new VolumeMenu(this._control);
|
this._volumeMenu = new VolumeMenu(this._control);
|
||||||
this._volumeMenu.connect('icon-changed', menu => {
|
this._volumeMenu.connect('icon-changed', () => {
|
||||||
let icon = this._volumeMenu.getIcon();
|
let icon = this._volumeMenu.getIcon();
|
||||||
|
|
||||||
if (icon != null) {
|
if (icon != null) {
|
||||||
|
@ -196,7 +196,7 @@ var SwitcherPopup = GObject.registerClass({
|
|||||||
return Clutter.EVENT_STOP;
|
return Clutter.EVENT_STOP;
|
||||||
}
|
}
|
||||||
|
|
||||||
_clickedOutside(actor, event) {
|
_clickedOutside() {
|
||||||
this.fadeAndDestroy();
|
this.fadeAndDestroy();
|
||||||
return Clutter.EVENT_PROPAGATE;
|
return Clutter.EVENT_PROPAGATE;
|
||||||
}
|
}
|
||||||
|
@ -169,8 +169,8 @@ var ClutterFrameTicker = class {
|
|||||||
this._startTime = -1;
|
this._startTime = -1;
|
||||||
this._currentTime = -1;
|
this._currentTime = -1;
|
||||||
|
|
||||||
this._timeline.connect('new-frame', (timeline, frame) => {
|
this._timeline.connect('new-frame', () => {
|
||||||
this._onNewFrame(frame);
|
this._onNewFrame();
|
||||||
});
|
});
|
||||||
|
|
||||||
let perfLog = Shell.PerfLog.get_default();
|
let perfLog = Shell.PerfLog.get_default();
|
||||||
@ -186,7 +186,7 @@ var ClutterFrameTicker = class {
|
|||||||
return 60;
|
return 60;
|
||||||
}
|
}
|
||||||
|
|
||||||
_onNewFrame(frame) {
|
_onNewFrame() {
|
||||||
// If there is a lot of setup to start the animation, then
|
// If there is a lot of setup to start the animation, then
|
||||||
// first frame number we get from clutter might be a long ways
|
// first frame number we get from clutter might be a long ways
|
||||||
// into the animation (or the animation might even be done).
|
// into the animation (or the animation might even be done).
|
||||||
|
@ -99,7 +99,7 @@ var UnlockDialog = class {
|
|||||||
this._authPrompt.cancel();
|
this._authPrompt.cancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
_otherUserClicked(button, event) {
|
_otherUserClicked() {
|
||||||
Gdm.goto_login_session_sync(null);
|
Gdm.goto_login_session_sync(null);
|
||||||
|
|
||||||
this._authPrompt.cancel();
|
this._authPrompt.cancel();
|
||||||
|
@ -512,7 +512,7 @@ var ViewSelector = class {
|
|||||||
return this._text.text == this._entry.get_text();
|
return this._text.text == this._entry.get_text();
|
||||||
}
|
}
|
||||||
|
|
||||||
_onTextChanged(se, prop) {
|
_onTextChanged() {
|
||||||
let terms = getTermsForSearchString(this._entry.get_text());
|
let terms = getTermsForSearchString(this._entry.get_text());
|
||||||
|
|
||||||
this._searchActive = (terms.length > 0);
|
this._searchActive = (terms.length > 0);
|
||||||
|
@ -2035,7 +2035,7 @@ var WindowManager = class {
|
|||||||
this._tilePreview.show(window, tileRect, monitorIndex);
|
this._tilePreview.show(window, tileRect, monitorIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
_hideTilePreview(shellwm) {
|
_hideTilePreview() {
|
||||||
if (!this._tilePreview)
|
if (!this._tilePreview)
|
||||||
return;
|
return;
|
||||||
this._tilePreview.hide();
|
this._tilePreview.hide();
|
||||||
@ -2103,11 +2103,11 @@ var WindowManager = class {
|
|||||||
app.activate();
|
app.activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
_toggleAppMenu(display, window, event, binding) {
|
_toggleAppMenu() {
|
||||||
Main.panel.toggleAppMenu();
|
Main.panel.toggleAppMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
_toggleCalendar(display, window, event, binding) {
|
_toggleCalendar() {
|
||||||
Main.panel.toggleCalendar();
|
Main.panel.toggleCalendar();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -376,7 +376,7 @@ var WindowClone = GObject.registerClass({
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
_onClicked(action, actor) {
|
_onClicked() {
|
||||||
this._activate();
|
this._activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -467,7 +467,7 @@ var WindowOverlay = class {
|
|||||||
|
|
||||||
this._maxTitleWidth = -1;
|
this._maxTitleWidth = -1;
|
||||||
|
|
||||||
this._updateCaptionId = metaWindow.connect('notify::title', w => {
|
this._updateCaptionId = metaWindow.connect('notify::title', () => {
|
||||||
this.title.text = this._getCaption();
|
this.title.text = this._getCaption();
|
||||||
this.relayout(false);
|
this.relayout(false);
|
||||||
});
|
});
|
||||||
|
@ -465,7 +465,7 @@ var WorkspaceThumbnail = class {
|
|||||||
this._allWindows[i].disconnect(this._minimizedChangedIds[i]);
|
this._allWindows[i].disconnect(this._minimizedChangedIds[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
_onDestroy(actor) {
|
_onDestroy() {
|
||||||
this.workspaceRemoved();
|
this.workspaceRemoved();
|
||||||
|
|
||||||
if (this._bgManager) {
|
if (this._bgManager) {
|
||||||
|
Loading…
Reference in New Issue
Block a user