[gnome-sound-recorder] misc: fix space/tabs usage



commit d996c01db90c9c56cfcf2799ced7d0c1573cbe90
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Tue Jun 2 18:58:23 2020 +0200

    misc: fix space/tabs usage
    
    now that we have an .editorconfig file, things should be cleaner

 .eslintrc.yml                  |  5 ++---
 data/application.css           |  6 +++---
 src/application.js             |  5 +----
 src/main.js                    | 10 ++++++----
 src/org.gnome.SoundRecorder.in | 10 ++++++----
 5 files changed, 18 insertions(+), 18 deletions(-)
---
diff --git a/.eslintrc.yml b/.eslintrc.yml
index 9579d61..db7e1bf 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -1,4 +1,3 @@
 extends:
- - ./lint/eslintrc-gjs.yml
- - ./lint/eslintrc-sound-recorder.yml
-
+  - ./lint/eslintrc-gjs.yml
+  - ./lint/eslintrc-sound-recorder.yml
\ No newline at end of file
diff --git a/data/application.css b/data/application.css
index 25d70a1..3067e28 100644
--- a/data/application.css
+++ b/data/application.css
@@ -3,9 +3,9 @@
   background-color: @theme_bg_color;
 }
 
-.list-row { 
-  padding: 6px; 
-  box-shadow: inset 0 -1px alpha(black, 0.1); 
+.list-row {
+  padding: 6px;
+  box-shadow: inset 0 -1px alpha(black, 0.1);
 }
 
 .recording-time-label {
diff --git a/src/application.js b/src/application.js
index 5af3546..0cfb11b 100644
--- a/src/application.js
+++ b/src/application.js
@@ -1,4 +1,4 @@
-/* exported SIGINT SIGTERM application settings Application */
+/* exported application settings Application */
 /*
 * Copyright 2013 Meg Ford
 * This library is free software; you can redistribute it and/or
@@ -27,9 +27,6 @@ const Gdk = imports.gi.Gdk;
 
 const MainWindow = imports.mainWindow;
 
-var SIGINT = 2;
-var SIGTERM = 15;
-
 var application = null;
 
 var settings = new Gio.Settings({ schema: pkg.name });
diff --git a/src/main.js b/src/main.js
index 416f6de..156bf4b 100644
--- a/src/main.js
+++ b/src/main.js
@@ -28,7 +28,8 @@
 
 pkg.initGettext();
 pkg.initFormat();
-pkg.require({ 'Gdk': '3.0',
+pkg.require({
+    'Gdk': '3.0',
     'GdkPixbuf': '2.0',
     'GLib': '2.0',
     'GObject': '2.0',
@@ -36,10 +37,11 @@ pkg.require({ 'Gdk': '3.0',
     'Gst': '1.0',
     'GstAudio': '1.0',
     'GstPbutils': '1.0',
-    'Handy': '1' });
+    'Handy': '1'
+});
 
-const Application = imports.application;
+const Application = imports.application.Application;
 
 function main(argv) {
-    return new Application.Application().run(argv);
+    return new Application().run(argv);
 }
diff --git a/src/org.gnome.SoundRecorder.in b/src/org.gnome.SoundRecorder.in
index b34882a..4a14c67 100755
--- a/src/org.gnome.SoundRecorder.in
+++ b/src/org.gnome.SoundRecorder.in
@@ -1,6 +1,8 @@
 #!@GJS@
-imports.package.init({ name: "@APPLICATION_ID@",
-                        version: "@PACKAGE_VERSION@",
-                        prefix: "@prefix@",
-                        libdir: "@libdir@" });
+imports.package.init({
+    name: "@APPLICATION_ID@",
+    version: "@PACKAGE_VERSION@",
+    prefix: "@prefix@",
+    libdir: "@libdir@"
+});
 imports.package.run(imports.main);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]