[gnome-shell-extensions] screenshot-window-sizer: Reindent to conform with new style
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] screenshot-window-sizer: Reindent to conform with new style
- Date: Wed, 22 May 2019 18:45:57 +0000 (UTC)
commit cdd3fba5932a37729764c70d409fd46b2262f57d
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Feb 15 23:35:47 2019 +0100
screenshot-window-sizer: Reindent to conform with new style
Instead of aligning arguments like we used to do, use a consistent
four-space indent as mandated by gjs' current style guide.
https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/66
extensions/screenshot-window-sizer/extension.js | 28 +++++++++++++------------
1 file changed, 15 insertions(+), 13 deletions(-)
---
diff --git a/extensions/screenshot-window-sizer/extension.js b/extensions/screenshot-window-sizer/extension.js
index 0db7c83..4d21212 100644
--- a/extensions/screenshot-window-sizer/extension.js
+++ b/extensions/screenshot-window-sizer/extension.js
@@ -47,8 +47,9 @@ function flashMessage(message) {
text.opacity = 255;
let monitor = Main.layoutManager.primaryMonitor;
- text.set_position(monitor.x + Math.floor(monitor.width / 2 - text.width / 2),
- monitor.y + Math.floor(monitor.height / 2 - text.height / 2));
+ text.set_position(
+ monitor.x + Math.floor(monitor.width / 2 - text.width / 2),
+ monitor.y + Math.floor(monitor.height / 2 - text.height / 2));
Tweener.addTween(text, {
opacity: 0,
@@ -137,17 +138,18 @@ function cycleScreenshotSizes(display, window, binding) {
}
function enable() {
- Main.wm.addKeybinding('cycle-screenshot-sizes',
- ExtensionUtils.getSettings(),
- Meta.KeyBindingFlags.PER_WINDOW,
- Shell.ActionMode.NORMAL,
- cycleScreenshotSizes);
- Main.wm.addKeybinding('cycle-screenshot-sizes-backward',
- ExtensionUtils.getSettings(),
- Meta.KeyBindingFlags.PER_WINDOW |
- Meta.KeyBindingFlags.IS_REVERSED,
- Shell.ActionMode.NORMAL,
- cycleScreenshotSizes);
+ Main.wm.addKeybinding(
+ 'cycle-screenshot-sizes',
+ ExtensionUtils.getSettings(),
+ Meta.KeyBindingFlags.PER_WINDOW,
+ Shell.ActionMode.NORMAL,
+ cycleScreenshotSizes);
+ Main.wm.addKeybinding(
+ 'cycle-screenshot-sizes-backward',
+ ExtensionUtils.getSettings(),
+ Meta.KeyBindingFlags.PER_WINDOW | Meta.KeyBindingFlags.IS_REVERSED,
+ Shell.ActionMode.NORMAL,
+ cycleScreenshotSizes);
}
function disable() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]