aboutsummaryrefslogtreecommitdiff
path: root/src/phone.vala
diff options
context:
space:
mode:
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 ()