aboutsummaryrefslogtreecommitdiff
path: root/src/title-menu-item.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-12-07 14:18:28 +0000
committerConor Curran <conor.curran@canonical.com>2010-12-07 14:18:28 +0000
commit55b5ef4065d32cca71b745c8dc4790e1b71af0fd (patch)
tree3924e039f2eb72d08738c8017b667cffa37aa5ac /src/title-menu-item.vala
parent4280f27f7b3f42a73c971664f0cd322780c2bff6 (diff)
downloadayatana-indicator-sound-55b5ef4065d32cca71b745c8dc4790e1b71af0fd.tar.gz
ayatana-indicator-sound-55b5ef4065d32cca71b745c8dc4790e1b71af0fd.tar.bz2
ayatana-indicator-sound-55b5ef4065d32cca71b745c8dc4790e1b71af0fd.zip
tabs to spaces tab width 2
Diffstat (limited to 'src/title-menu-item.vala')
-rw-r--r--src/title-menu-item.vala60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/title-menu-item.vala b/src/title-menu-item.vala
index 64ddebf..d782e84 100644
--- a/src/title-menu-item.vala
+++ b/src/title-menu-item.vala
@@ -23,37 +23,37 @@ using Gee;
public class TitleMenuitem : PlayerItem
{
- public TitleMenuitem(PlayerController parent)
- {
- Object(item_type: MENUITEM_TYPE, owner: parent);
- this.property_set(MENUITEM_NAME, parent.name);
+ public TitleMenuitem(PlayerController parent)
+ {
+ Object(item_type: MENUITEM_TYPE, owner: parent);
+ this.property_set(MENUITEM_NAME, parent.name);
debug("title init - icon name = %s", parent.icon_name);
this.property_set(MENUITEM_ICON, parent.icon_name);
- this.property_set_bool(MENUITEM_RUNNING, false);
- }
-
- public override void handle_event(string name, GLib.Value input_value, uint timestamp)
- {
- if(this.owner.current_state == PlayerController.state.OFFLINE)
- {
- this.owner.instantiate();
- }
- else if(this.owner.current_state == PlayerController.state.CONNECTED){
- this.owner.mpris_bridge.expose();
- }
- }
-
- public void toggle_active_triangle(bool update)
- {
- this.property_set_bool(MENUITEM_RUNNING, update);
- }
-
- public static HashSet<string> attributes_format()
- {
- HashSet<string> attrs = new HashSet<string>();
- attrs.add(MENUITEM_NAME);
- attrs.add(MENUITEM_RUNNING);
- attrs.add(MENUITEM_ICON);
+ this.property_set_bool(MENUITEM_RUNNING, false);
+ }
+
+ public override void handle_event(string name, GLib.Value input_value, uint timestamp)
+ {
+ if(this.owner.current_state == PlayerController.state.OFFLINE)
+ {
+ this.owner.instantiate();
+ }
+ else if(this.owner.current_state == PlayerController.state.CONNECTED){
+ this.owner.mpris_bridge.expose();
+ }
+ }
+
+ public void toggle_active_triangle(bool update)
+ {
+ this.property_set_bool(MENUITEM_RUNNING, update);
+ }
+
+ public static HashSet<string> attributes_format()
+ {
+ HashSet<string> attrs = new HashSet<string>();
+ attrs.add(MENUITEM_NAME);
+ attrs.add(MENUITEM_RUNNING);
+ attrs.add(MENUITEM_ICON);
return attrs;
- }
+ }
} \ No newline at end of file