aboutsummaryrefslogtreecommitdiff
path: root/src/transport-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/transport-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/transport-menu-item.vala')
-rw-r--r--src/transport-menu-item.vala64
1 files changed, 32 insertions, 32 deletions
diff --git a/src/transport-menu-item.vala b/src/transport-menu-item.vala
index 36429e8..57eb67b 100644
--- a/src/transport-menu-item.vala
+++ b/src/transport-menu-item.vala
@@ -23,43 +23,43 @@ using DbusmenuTransport;
public class TransportMenuitem : PlayerItem
{
- public enum action{
- PREVIOUS,
- PLAY_PAUSE,
- NEXT
- }
+ public enum action{
+ PREVIOUS,
+ PLAY_PAUSE,
+ NEXT
+ }
- public enum state{
- PLAYING,
- PAUSED
- }
-
- public TransportMenuitem(PlayerController parent)
+ public enum state{
+ PLAYING,
+ PAUSED
+ }
+
+ public TransportMenuitem(PlayerController parent)
{
- Object(item_type: MENUITEM_TYPE, owner: parent);
- this.property_set_int(MENUITEM_PLAY_STATE, 1);
- }
+ Object(item_type: MENUITEM_TYPE, owner: parent);
+ this.property_set_int(MENUITEM_PLAY_STATE, 1);
+ }
- public void change_play_state(state update)
- {
+ public void change_play_state(state update)
+ {
debug("UPDATING THE TRANSPORT DBUSMENUITEM PLAY STATE WITH VALUE %i",
(int)update);
- this.property_set_int(MENUITEM_PLAY_STATE, update);
- }
-
- public override void handle_event(string name, GLib.Value input_value, uint timestamp)
- {
- int input = input_value.get_int();
- debug("handle_event with value %s", input.to_string());
- debug("transport owner name = %s", this.owner.name);
- this.owner.mpris_bridge.transport_update((action)input);
- }
+ this.property_set_int(MENUITEM_PLAY_STATE, update);
+ }
+
+ public override void handle_event(string name, GLib.Value input_value, uint timestamp)
+ {
+ int input = input_value.get_int();
+ debug("handle_event with value %s", input.to_string());
+ debug("transport owner name = %s", this.owner.name);
+ this.owner.mpris_bridge.transport_update((action)input);
+ }
- public static HashSet<string> attributes_format()
- {
- HashSet<string> attrs = new HashSet<string>();
- attrs.add(MENUITEM_PLAY_STATE);
- return attrs;
- }
+ public static HashSet<string> attributes_format()
+ {
+ HashSet<string> attrs = new HashSet<string>();
+ attrs.add(MENUITEM_PLAY_STATE);
+ return attrs;
+ }
} \ No newline at end of file