diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-08-06 13:08:06 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-08-06 13:08:06 -0500 |
commit | cd197748b97a3c2aeb4d3470805d3e12b7b46983 (patch) | |
tree | bdacc6a7b3b91c87e0aac9b31a53bff3be8ab6c6 /src/service.vala | |
parent | d4432eb40eeee22221748d3e4c1e074be3b12cc0 (diff) | |
download | ayatana-indicator-bluetooth-cd197748b97a3c2aeb4d3470805d3e12b7b46983.tar.gz ayatana-indicator-bluetooth-cd197748b97a3c2aeb4d3470805d3e12b7b46983.tar.bz2 ayatana-indicator-bluetooth-cd197748b97a3c2aeb4d3470805d3e12b7b46983.zip |
copyediting: don't use 'this.' when it's not needed
Diffstat (limited to 'src/service.vala')
-rw-r--r-- | src/service.vala | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/service.vala b/src/service.vala index 767343f..c51e58f 100644 --- a/src/service.vala +++ b/src/service.vala @@ -35,7 +35,7 @@ public class Service: Object public int run () { - if (this.loop != null) + if (loop != null) { warning ("service is already running"); return Posix.EXIT_FAILURE; @@ -44,12 +44,12 @@ public class Service: Object Bus.own_name (BusType.SESSION, "com.canonical.indicator.bluetooth", BusNameOwnerFlags.NONE, - this.on_bus_acquired, + on_bus_acquired, null, - this.on_name_lost); + on_name_lost); - this.loop = new MainLoop (null, false); - this.loop.run (); + loop = new MainLoop (null, false); + loop.run (); return Posix.EXIT_SUCCESS; } @@ -60,14 +60,14 @@ public class Service: Object var object_path = "/com/canonical/indicator/bluetooth"; try { - connection.export_action_group (object_path, this.actions); + connection.export_action_group (object_path, actions); } catch (Error e) { critical (@"Unable to export actions on $object_path: $(e.message)"); } - this.profiles.for_each ((name,profile) => { + profiles.for_each ((name,profile) => { var path = @"$object_path/$name"; debug (@"exporting menu '$path'"); profile.export_menu (connection, path); @@ -77,6 +77,6 @@ public class Service: Object void on_name_lost (DBusConnection connection, string name) { debug (@"name lost: $name"); - this.loop.quit (); + loop.quit (); } } |