cleanup: Remove spaces in object literals
We only adopted this style relatively recently, so there's a bit more to adjust. Still, it's manageable and another step towards getting rid of the legacy style. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2866>
This commit is contained in:

committed by
Marge Bot

parent
6a22af83dc
commit
071f92cfb6
@ -18,7 +18,7 @@ const AUTORUN_EXPIRE_TIMEOUT_SECS = 10;
|
||||
|
||||
class AutomountManager {
|
||||
constructor() {
|
||||
this._settings = new Gio.Settings({ schema_id: SETTINGS_SCHEMA });
|
||||
this._settings = new Gio.Settings({schema_id: SETTINGS_SCHEMA});
|
||||
this._activeOperations = new Map();
|
||||
this._session = new GnomeSession.SessionManager();
|
||||
this._session.connectSignal('InhibitorAdded',
|
||||
@ -227,7 +227,7 @@ class AutomountManager {
|
||||
const existingDialog = prevOperation?.borrowDialog();
|
||||
let operation =
|
||||
new ShellMountOperation.ShellMountOperation(volume,
|
||||
{ existingDialog });
|
||||
{existingDialog});
|
||||
this._mountVolume(volume, operation);
|
||||
}
|
||||
|
||||
|
@ -87,7 +87,7 @@ function HotplugSniffer() {
|
||||
|
||||
class ContentTypeDiscoverer {
|
||||
constructor() {
|
||||
this._settings = new Gio.Settings({ schema_id: SETTINGS_SCHEMA });
|
||||
this._settings = new Gio.Settings({schema_id: SETTINGS_SCHEMA});
|
||||
}
|
||||
|
||||
async guessContentTypes(mount) {
|
||||
@ -166,7 +166,7 @@ class AutorunDispatcher {
|
||||
constructor(manager) {
|
||||
this._manager = manager;
|
||||
this._sources = [];
|
||||
this._settings = new Gio.Settings({ schema_id: SETTINGS_SCHEMA });
|
||||
this._settings = new Gio.Settings({schema_id: SETTINGS_SCHEMA});
|
||||
}
|
||||
|
||||
_getAutorunSettingForType(contentType) {
|
||||
|
@ -17,7 +17,7 @@ import {wiggle} from '../../misc/animationUtils.js';
|
||||
const KeyringDialog = GObject.registerClass(
|
||||
class KeyringDialog extends ModalDialog.ModalDialog {
|
||||
_init() {
|
||||
super._init({ styleClass: 'prompt-dialog' });
|
||||
super._init({styleClass: 'prompt-dialog'});
|
||||
|
||||
this.prompt = new Shell.KeyringPrompt();
|
||||
this.prompt.connect('show-password', this._onShowPassword.bind(this));
|
||||
@ -61,7 +61,7 @@ class KeyringDialog extends ModalDialog.ModalDialog {
|
||||
this.prompt.set_password_actor(this._passwordEntry.clutter_text);
|
||||
this.prompt.set_confirm_actor(this._confirmEntry.clutter_text);
|
||||
|
||||
let warningBox = new St.BoxLayout({ vertical: true });
|
||||
let warningBox = new St.BoxLayout({vertical: true});
|
||||
|
||||
let capsLockWarning = new ShellEntry.CapsLockWarning();
|
||||
let syncCapsLockWarningVisibility = () => {
|
||||
@ -72,7 +72,7 @@ class KeyringDialog extends ModalDialog.ModalDialog {
|
||||
this.prompt.connect('notify::confirm-visible', syncCapsLockWarningVisibility);
|
||||
warningBox.add_child(capsLockWarning);
|
||||
|
||||
let warning = new St.Label({ style_class: 'prompt-dialog-error-label' });
|
||||
let warning = new St.Label({style_class: 'prompt-dialog-error-label'});
|
||||
warning.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
||||
warning.clutter_text.line_wrap = true;
|
||||
this.prompt.bind_property('warning',
|
||||
|
@ -24,7 +24,7 @@ const VPN_UI_GROUP = 'VPN Plugin UI';
|
||||
const NetworkSecretDialog = GObject.registerClass(
|
||||
class NetworkSecretDialog extends ModalDialog.ModalDialog {
|
||||
_init(agent, requestId, connection, settingName, hints, flags, contentOverride) {
|
||||
super._init({ styleClass: 'prompt-dialog' });
|
||||
super._init({styleClass: 'prompt-dialog'});
|
||||
|
||||
this._agent = agent;
|
||||
this._requestId = requestId;
|
||||
@ -469,10 +469,10 @@ class VPNRequestHandler extends Signals.EventEmitter {
|
||||
});
|
||||
|
||||
this._childPid = pid;
|
||||
this._stdin = new Gio.UnixOutputStream({ fd: stdin, close_fd: true });
|
||||
this._stdout = new Gio.UnixInputStream({ fd: stdout, close_fd: true });
|
||||
this._stdin = new Gio.UnixOutputStream({fd: stdin, close_fd: true});
|
||||
this._stdout = new Gio.UnixInputStream({fd: stdout, close_fd: true});
|
||||
GLib.close(stderr);
|
||||
this._dataStdout = new Gio.DataInputStream({ base_stream: this._stdout });
|
||||
this._dataStdout = new Gio.DataInputStream({base_stream: this._stdout});
|
||||
|
||||
if (this._newStylePlugin)
|
||||
this._readStdoutNewStyle();
|
||||
|
@ -28,10 +28,10 @@ const DIALOG_ICON_SIZE = 64;
|
||||
const DELAYED_RESET_TIMEOUT = 200;
|
||||
|
||||
const AuthenticationDialog = GObject.registerClass({
|
||||
Signals: { 'done': { param_types: [GObject.TYPE_BOOLEAN] } },
|
||||
Signals: {'done': {param_types: [GObject.TYPE_BOOLEAN]}},
|
||||
}, class AuthenticationDialog extends ModalDialog.ModalDialog {
|
||||
_init(actionId, description, cookie, userNames) {
|
||||
super._init({ styleClass: 'prompt-dialog' });
|
||||
super._init({styleClass: 'prompt-dialog'});
|
||||
|
||||
this.actionId = actionId;
|
||||
this.message = description;
|
||||
@ -45,7 +45,7 @@ const AuthenticationDialog = GObject.registerClass({
|
||||
|
||||
let title = _('Authentication Required');
|
||||
|
||||
let headerContent = new Dialog.MessageDialogContent({ title, description });
|
||||
let headerContent = new Dialog.MessageDialogContent({title, description});
|
||||
this.contentLayout.add_child(headerContent);
|
||||
|
||||
let bodyContent = new Dialog.MessageDialogContent();
|
||||
@ -106,7 +106,7 @@ const AuthenticationDialog = GObject.registerClass({
|
||||
GObject.BindingFlags.SYNC_CREATE);
|
||||
passwordBox.add_child(this._passwordEntry);
|
||||
|
||||
let warningBox = new St.BoxLayout({ vertical: true });
|
||||
let warningBox = new St.BoxLayout({vertical: true});
|
||||
|
||||
let capsLockWarning = new ShellEntry.CapsLockWarning();
|
||||
this._passwordEntry.bind_property('visible',
|
||||
@ -134,7 +134,7 @@ const AuthenticationDialog = GObject.registerClass({
|
||||
* infoMessage and errorMessageLabel - but it is still invisible because
|
||||
* gnome-shell.css sets the color to be transparent
|
||||
*/
|
||||
this._nullMessageLabel = new St.Label({ style_class: 'prompt-dialog-null-label' });
|
||||
this._nullMessageLabel = new St.Label({style_class: 'prompt-dialog-null-label'});
|
||||
this._nullMessageLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
||||
this._nullMessageLabel.clutter_text.line_wrap = true;
|
||||
warningBox.add_child(this._nullMessageLabel);
|
||||
|
@ -388,9 +388,9 @@ class ChatSource extends MessageTray.Source {
|
||||
getIcon() {
|
||||
let file = this._contact.get_avatar_file();
|
||||
if (file)
|
||||
return new Gio.FileIcon({ file });
|
||||
return new Gio.FileIcon({file});
|
||||
else
|
||||
return new Gio.ThemedIcon({ name: 'avatar-default' });
|
||||
return new Gio.ThemedIcon({name: 'avatar-default'});
|
||||
}
|
||||
|
||||
getSecondaryIcon() {
|
||||
@ -419,7 +419,7 @@ class ChatSource extends MessageTray.Source {
|
||||
default:
|
||||
iconName = 'user-offline';
|
||||
}
|
||||
return new Gio.ThemedIcon({ name: iconName });
|
||||
return new Gio.ThemedIcon({name: iconName});
|
||||
}
|
||||
|
||||
_updateAvatarIcon() {
|
||||
@ -427,7 +427,7 @@ class ChatSource extends MessageTray.Source {
|
||||
if (this._notification) {
|
||||
this._notification.update(this._notification.title,
|
||||
this._notification.bannerBodyText,
|
||||
{ gicon: this.getIcon() });
|
||||
{gicon: this.getIcon()});
|
||||
}
|
||||
}
|
||||
|
||||
@ -633,7 +633,7 @@ class ChatSource extends MessageTray.Source {
|
||||
if (this._notification) {
|
||||
this._notification.update(this._notification.title,
|
||||
this._notification.bannerBodyText,
|
||||
{ secondaryGIcon: this.getSecondaryIcon() });
|
||||
{secondaryGIcon: this.getSecondaryIcon()});
|
||||
}
|
||||
}
|
||||
|
||||
@ -667,14 +667,14 @@ class ChatNotificationMessage extends GObject.Object {
|
||||
|
||||
const ChatNotification = HAVE_TP ? GObject.registerClass({
|
||||
Signals: {
|
||||
'message-removed': { param_types: [ChatNotificationMessage.$gtype] },
|
||||
'message-added': { param_types: [ChatNotificationMessage.$gtype] },
|
||||
'timestamp-changed': { param_types: [ChatNotificationMessage.$gtype] },
|
||||
'message-removed': {param_types: [ChatNotificationMessage.$gtype]},
|
||||
'message-added': {param_types: [ChatNotificationMessage.$gtype]},
|
||||
'timestamp-changed': {param_types: [ChatNotificationMessage.$gtype]},
|
||||
},
|
||||
}, class ChatNotification extends MessageTray.Notification {
|
||||
_init(source) {
|
||||
super._init(source, source.title, null,
|
||||
{ secondaryGIcon: source.getSecondaryIcon() });
|
||||
{secondaryGIcon: source.getSecondaryIcon()});
|
||||
this.setUrgency(MessageTray.Urgency.HIGH);
|
||||
this.setResident(true);
|
||||
|
||||
@ -775,7 +775,7 @@ const ChatNotification = HAVE_TP ? GObject.registerClass({
|
||||
timestamp: currentTime,
|
||||
noTimestamp: false,
|
||||
});
|
||||
const { noTimestamp } = props;
|
||||
const {noTimestamp} = props;
|
||||
delete props.noTimestamp;
|
||||
|
||||
// Reset the old message timeout
|
||||
@ -897,7 +897,7 @@ class ChatNotificationBanner extends MessageTray.NotificationBanner {
|
||||
this._oldMaxScrollValue = Math.max(adjustment.lower, adjustment.upper - adjustment.page_size);
|
||||
});
|
||||
|
||||
this._inputHistory = new History.HistoryManager({ entry: this._responseEntry.clutter_text });
|
||||
this._inputHistory = new History.HistoryManager({entry: this._responseEntry.clutter_text});
|
||||
|
||||
this._composingTimeoutId = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user