aboutsummaryrefslogtreecommitdiff
path: root/src/profile.vala
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-08-06 13:43:31 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-08-06 13:43:31 -0500
commitbbca3ae3b9bd150902cebd938df24f1ad4ed7d3d (patch)
tree9e624a802f712f896778b914c2c6375cdb862615 /src/profile.vala
parentc920d6f9c8d967d7de311fc417fd5a8c8e85dd43 (diff)
downloadayatana-indicator-bluetooth-bbca3ae3b9bd150902cebd938df24f1ad4ed7d3d.tar.gz
ayatana-indicator-bluetooth-bbca3ae3b9bd150902cebd938df24f1ad4ed7d3d.tar.bz2
ayatana-indicator-bluetooth-bbca3ae3b9bd150902cebd938df24f1ad4ed7d3d.zip
copyediting: fix lines that wrap
Diffstat (limited to 'src/profile.vala')
-rw-r--r--src/profile.vala31
1 files changed, 24 insertions, 7 deletions
diff --git a/src/profile.vala b/src/profile.vala
index 91a0f8e..03c7b8b 100644
--- a/src/profile.vala
+++ b/src/profile.vala
@@ -69,14 +69,20 @@ class Profile: Object
protected MenuItem create_enabled_menuitem ()
{
MenuItem item = new MenuItem ("Bluetooth", "indicator.bluetooth-enabled");
- item.set_attribute ("x-canonical-type", "s", "com.canonical.indicator.switch");
+
+ item.set_attribute ("x-canonical-type", "s",
+ "com.canonical.indicator.switch");
+
return item;
}
private MenuItem create_root_menuitem ()
{
var item = new MenuItem (null, @"indicator.root-$profile_name");
- item.set_attribute ("x-canonical-type", "s", "com.canonical.indicator.root");
+
+ item.set_attribute ("x-canonical-type", "s",
+ "com.canonical.indicator.root");
+
return item;
}
@@ -86,10 +92,19 @@ class Profile: Object
protected Action create_enabled_action (Bluetooth bluetooth)
{
- var action = new SimpleAction.stateful ("bluetooth-enabled", null, !bluetooth.blocked);
- action.activate.connect (() => action.set_state (!action.get_state().get_boolean()));
- action.notify["state"].connect (() => bluetooth.try_set_blocked (!action.get_state().get_boolean()));
- bluetooth.notify["blocked"].connect (() => action.set_state (!bluetooth.blocked));
+ var action = new SimpleAction.stateful ("bluetooth-enabled",
+ null,
+ !bluetooth.blocked);
+
+ action.activate.connect (()
+ => action.set_state (!action.get_state().get_boolean()));
+
+ action.notify["state"].connect (()
+ => bluetooth.try_set_blocked (!action.get_state().get_boolean()));
+
+ bluetooth.notify["blocked"].connect (()
+ => action.set_state (!bluetooth.blocked));
+
return action;
}
@@ -99,7 +114,9 @@ class Profile: Object
{
if (root_action == null)
{
- root_action = new SimpleAction.stateful (@"root-$profile", null, action_state_for_root());
+ root_action = new SimpleAction.stateful (@"root-$profile",
+ null,
+ action_state_for_root());
notify["visible"].connect (() => update_root_action_state());
}