aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2020-10-25 16:25:22 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-10-26 11:57:18 +0100
commit89e7fc16f96d04c6f14049d81399fa854a3ee390 (patch)
treec49b05f9d34ce848d13946eff74a1c0cbf34ed62 /src
parentd0974811c803891aff5562fc8c4d18ea36d3f3a7 (diff)
downloadayatana-indicator-bluetooth-89e7fc16f96d04c6f14049d81399fa854a3ee390.tar.gz
ayatana-indicator-bluetooth-89e7fc16f96d04c6f14049d81399fa854a3ee390.tar.bz2
ayatana-indicator-bluetooth-89e7fc16f96d04c6f14049d81399fa854a3ee390.zip
src/*: Scope and white-space fixes.
Diffstat (limited to 'src')
-rw-r--r--src/desktop.vala4
-rw-r--r--src/main.vala2
-rw-r--r--src/profile.vala1
-rw-r--r--src/service.vala2
4 files changed, 5 insertions, 4 deletions
diff --git a/src/desktop.vala b/src/desktop.vala
index 5791e90..6e69bb4 100644
--- a/src/desktop.vala
+++ b/src/desktop.vala
@@ -30,7 +30,7 @@ class Desktop: Profile
{
if (idle_rebuild_id != 0)
{
- Source.remove (idle_rebuild_id);
+ Source.remove (idle_rebuild_id);
idle_rebuild_id = 0;
}
@@ -139,7 +139,7 @@ class Desktop: Profile
/* There is no working backend that can be used there, disable
the action until that situation gets sorted out
see http://launchpad.net/bugs/1562822
-
+
if (device.supports_browsing)
submenu.append (_("Browse files…"),
@"indicator.desktop-browse-files::$(device.address)");
diff --git a/src/main.vala b/src/main.vala
index be02a67..2b0c39b 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -27,7 +27,7 @@ public static int main (string[] args)
// create the backend
var bluetooth = new Bluez (null);
-
+
// start the service
var service = new Service (bluetooth);
return service.run ();
diff --git a/src/profile.vala b/src/profile.vala
index 767a5cd..921b573 100644
--- a/src/profile.vala
+++ b/src/profile.vala
@@ -170,6 +170,7 @@ class Profile: Object
builder.add ("{sv}", "accessible-desc", new Variant.string (a11y));
builder.add ("{sv}", "icon", icon.serialize());
builder.add ("{sv}", "title", new Variant.string (_("Bluetooth")));
+
return builder.end ();
}
}
diff --git a/src/service.vala b/src/service.vala
index 4df3590..480834d 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -21,7 +21,7 @@
/**
* Boilerplate class to own the name on the bus,
* to create the profiles, and to export them on the bus.
- */
+ */
public class Service: Object
{
private MainLoop loop;