cleanup: Remove trailing spaces
We generally avoid these (not least because Linus hates them enough to make git complain loudly), but some sneaked in over time ... https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/731
This commit is contained in:
parent
5b3935fa43
commit
133a1e7bef
@ -28,7 +28,7 @@ var HistoryManager = class {
|
|||||||
this._entry = params.entry;
|
this._entry = params.entry;
|
||||||
|
|
||||||
if (this._entry) {
|
if (this._entry) {
|
||||||
this._entry.connect('key-press-event',
|
this._entry.connect('key-press-event',
|
||||||
this._onEntryKeyPress.bind(this));
|
this._onEntryKeyPress.bind(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -156,7 +156,7 @@ var AutomountManager = class {
|
|||||||
!volume.should_automount() ||
|
!volume.should_automount() ||
|
||||||
!volume.can_mount()) {
|
!volume.can_mount()) {
|
||||||
// allow the autorun to run anyway; this can happen if the
|
// allow the autorun to run anyway; this can happen if the
|
||||||
// mount gets added programmatically later, even if
|
// mount gets added programmatically later, even if
|
||||||
// should_automount() or can_mount() are false, like for
|
// should_automount() or can_mount() are false, like for
|
||||||
// blank optical media.
|
// blank optical media.
|
||||||
this._allowAutorun(volume);
|
this._allowAutorun(volume);
|
||||||
@ -222,14 +222,14 @@ var AutomountManager = class {
|
|||||||
GLib.source_remove(volume._allowAutorunExpireId);
|
GLib.source_remove(volume._allowAutorunExpireId);
|
||||||
delete volume._allowAutorunExpireId;
|
delete volume._allowAutorunExpireId;
|
||||||
}
|
}
|
||||||
this._volumeQueue =
|
this._volumeQueue =
|
||||||
this._volumeQueue.filter(element => (element != volume));
|
this._volumeQueue.filter(element => (element != volume));
|
||||||
}
|
}
|
||||||
|
|
||||||
_reaskPassword(volume) {
|
_reaskPassword(volume) {
|
||||||
let prevOperation = this._activeOperations.get(volume);
|
let prevOperation = this._activeOperations.get(volume);
|
||||||
let existingDialog = prevOperation ? prevOperation.borrowDialog() : null;
|
let existingDialog = prevOperation ? prevOperation.borrowDialog() : null;
|
||||||
let operation =
|
let operation =
|
||||||
new ShellMountOperation.ShellMountOperation(volume,
|
new ShellMountOperation.ShellMountOperation(volume,
|
||||||
{ existingDialog: existingDialog });
|
{ existingDialog: existingDialog });
|
||||||
this._mountVolume(volume, operation);
|
this._mountVolume(volume, operation);
|
||||||
|
@ -63,7 +63,7 @@ function startAppForMount(app, mount) {
|
|||||||
files.push(root);
|
files.push(root);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
retval = app.launch(files,
|
retval = app.launch(files,
|
||||||
global.create_app_launch_context(0, -1));
|
global.create_app_launch_context(0, -1));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log(`Unable to launch the application ${app.get_name()}: ${e}`);
|
log(`Unable to launch the application ${app.get_name()}: ${e}`);
|
||||||
@ -213,11 +213,11 @@ var AutorunDispatcher = class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_addSource(mount, apps) {
|
_addSource(mount, apps) {
|
||||||
// if we already have a source showing for this
|
// if we already have a source showing for this
|
||||||
// mount, return
|
// mount, return
|
||||||
if (this._getSourceForMount(mount))
|
if (this._getSourceForMount(mount))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// add a new source
|
// add a new source
|
||||||
this._sources.push(new AutorunSource(this._manager, mount, apps));
|
this._sources.push(new AutorunSource(this._manager, mount, apps));
|
||||||
}
|
}
|
||||||
@ -262,7 +262,7 @@ var AutorunDispatcher = class {
|
|||||||
|
|
||||||
removeMount(mount) {
|
removeMount(mount) {
|
||||||
let source = this._getSourceForMount(mount);
|
let source = this._getSourceForMount(mount);
|
||||||
|
|
||||||
// if we aren't tracking this mount, don't do anything
|
// if we aren't tracking this mount, don't do anything
|
||||||
if (!source)
|
if (!source)
|
||||||
return;
|
return;
|
||||||
|
@ -583,7 +583,7 @@ var ChatSource = class extends MessageTray.Source {
|
|||||||
|
|
||||||
let msg = Tp.ClientMessage.new_text(type, text);
|
let msg = Tp.ClientMessage.new_text(type, text);
|
||||||
this._channel.send_message_async(msg, 0, (src, result) => {
|
this._channel.send_message_async(msg, 0, (src, result) => {
|
||||||
this._channel.send_message_finish(result);
|
this._channel.send_message_finish(result);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -653,7 +653,7 @@ var ChatNotification = class extends MessageTray.Notification {
|
|||||||
* sender: the name of the sender,
|
* sender: the name of the sender,
|
||||||
* timestamp: the time the message was sent
|
* timestamp: the time the message was sent
|
||||||
* direction: a #NotificationDirection
|
* direction: a #NotificationDirection
|
||||||
*
|
*
|
||||||
* @noTimestamp: Whether to add a timestamp. If %true, no timestamp
|
* @noTimestamp: Whether to add a timestamp. If %true, no timestamp
|
||||||
* will be added, regardless of the difference since the
|
* will be added, regardless of the difference since the
|
||||||
* last timestamp
|
* last timestamp
|
||||||
|
@ -1081,7 +1081,7 @@ var Keyboard = class Keyboard {
|
|||||||
this.hide();
|
this.hide();
|
||||||
});
|
});
|
||||||
|
|
||||||
Meta.get_backend().connect('last-device-changed',
|
Meta.get_backend().connect('last-device-changed',
|
||||||
(backend, deviceId) => {
|
(backend, deviceId) => {
|
||||||
let manager = Clutter.DeviceManager.get_default();
|
let manager = Clutter.DeviceManager.get_default();
|
||||||
let device = manager.get_device(deviceId);
|
let device = manager.get_device(deviceId);
|
||||||
|
@ -881,7 +881,7 @@ var LookingGlass = class LookingGlass {
|
|||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
this._history = new History.HistoryManager({ gsettingsKey: HISTORY_KEY,
|
this._history = new History.HistoryManager({ gsettingsKey: HISTORY_KEY,
|
||||||
entry: this._entry.clutter_text });
|
entry: this._entry.clutter_text });
|
||||||
|
|
||||||
this._autoComplete = new AutoComplete(this._entry);
|
this._autoComplete = new AutoComplete(this._entry);
|
||||||
|
@ -335,7 +335,7 @@ class NotificationApplicationPolicy extends NotificationPolicy {
|
|||||||
// event sound is played when the notification is shown (if the policy for
|
// event sound is played when the notification is shown (if the policy for
|
||||||
// @source allows playing sounds).
|
// @source allows playing sounds).
|
||||||
//
|
//
|
||||||
// [1] https://developer.gnome.org/notification-spec/#markup
|
// [1] https://developer.gnome.org/notification-spec/#markup
|
||||||
var Notification = class Notification {
|
var Notification = class Notification {
|
||||||
constructor(source, title, banner, params) {
|
constructor(source, title, banner, params) {
|
||||||
this.source = source;
|
this.source = source;
|
||||||
|
@ -618,7 +618,7 @@ function getPlatformData() {
|
|||||||
|
|
||||||
function InvalidAppError() {}
|
function InvalidAppError() {}
|
||||||
|
|
||||||
var GtkNotificationDaemonAppSource =
|
var GtkNotificationDaemonAppSource =
|
||||||
class GtkNotificationDaemonAppSource extends MessageTray.Source {
|
class GtkNotificationDaemonAppSource extends MessageTray.Source {
|
||||||
constructor(appId) {
|
constructor(appId) {
|
||||||
let objectPath = objectPathFromAppId(appId);
|
let objectPath = objectPathFromAppId(appId);
|
||||||
|
@ -202,7 +202,7 @@ var ShellMountOperation = class {
|
|||||||
_onShowUnmountProgress(op, message, timeLeft, bytesLeft) {
|
_onShowUnmountProgress(op, message, timeLeft, bytesLeft) {
|
||||||
if (!this._notifier)
|
if (!this._notifier)
|
||||||
this._notifier = new ShellUnmountNotifier();
|
this._notifier = new ShellUnmountNotifier();
|
||||||
|
|
||||||
if (bytesLeft == 0)
|
if (bytesLeft == 0)
|
||||||
this._notifier.done(message);
|
this._notifier.done(message);
|
||||||
else
|
else
|
||||||
|
@ -156,12 +156,12 @@ var AuthRobot = class {
|
|||||||
|
|
||||||
/* check if authorization is enabled in the daemon. if not
|
/* check if authorization is enabled in the daemon. if not
|
||||||
* we won't even bother authorizing, because we will only
|
* we won't even bother authorizing, because we will only
|
||||||
* get an error back. The exact contents of AuthMode might
|
* get an error back. The exact contents of AuthMode might
|
||||||
* change in the future, but must contain AuthMode.ENABLED
|
* change in the future, but must contain AuthMode.ENABLED
|
||||||
* if it is enabled. */
|
* if it is enabled. */
|
||||||
if (!cli.authMode.split('|').includes(AuthMode.ENABLED))
|
if (!cli.authMode.split('|').includes(AuthMode.ENABLED))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* check if we should enroll the device */
|
/* check if we should enroll the device */
|
||||||
let res = [false];
|
let res = [false];
|
||||||
this.emit('enroll-device', dev, res);
|
this.emit('enroll-device', dev, res);
|
||||||
|
Loading…
Reference in New Issue
Block a user