aboutsummaryrefslogtreecommitdiff
path: root/src/phone.vala
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-08-03 10:47:23 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-08-03 10:47:23 -0500
commit43059ed45ac41e1bf6172b3eec236ea086d81cda (patch)
tree729f113dabd2c0f8079a8479a99f4f9355cfba5a /src/phone.vala
parentdfd38e506145b8569611e5fb0eb8cb49eef1b7b2 (diff)
downloadayatana-indicator-bluetooth-43059ed45ac41e1bf6172b3eec236ea086d81cda.tar.gz
ayatana-indicator-bluetooth-43059ed45ac41e1bf6172b3eec236ea086d81cda.tar.bz2
ayatana-indicator-bluetooth-43059ed45ac41e1bf6172b3eec236ea086d81cda.zip
change the 'BluetoothMenu' superclass to 'Profile'
Diffstat (limited to 'src/phone.vala')
-rw-r--r--src/phone.vala14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/phone.vala b/src/phone.vala
index a2a9917..8c9c816 100644
--- a/src/phone.vala
+++ b/src/phone.vala
@@ -17,29 +17,27 @@
* Charles Kerr <charles.kerr@canonical.com>
*/
-class PhoneMenu: BluetoothMenu
+class Phone: Profile
{
private Action[] actions;
public override void add_actions_to_group (SimpleActionGroup group)
{
- base.add_actions_to_group (group);
-
for (var i=0; i<actions.length; i++)
group.insert (actions[i]);
}
- public PhoneMenu (Bluetooth bluetooth)
+ public Phone (Bluetooth bluetooth)
{
base ("phone");
- this.actions = {};
- this.actions += new SimpleAction.stateful ("root-phone", null, action_state_for_root());
- this.actions += create_settings_action ();
+ actions = {};
+ actions += new SimpleAction.stateful ("root-phone", null, action_state_for_root());
+ actions += create_settings_action ();
var section = new Menu ();
section.append (_("Sound settingsā€¦"), "indicator.phone-settings");
- this.menu.append_section (null, section);
+ menu.append_section (null, section);
}
Action create_settings_action ()