aboutsummaryrefslogtreecommitdiff
path: root/src/transport-menu-item.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-09-02 23:21:00 +0100
committerConor Curran <conor.curran@canonical.com>2010-09-02 23:21:00 +0100
commit0d231118f14f622ca025ac29db0b2cd0eeaec004 (patch)
treeedb146c5fbd7e0874148b34e2ee2a1be21ad2f5b /src/transport-menu-item.vala
parent0125f59bd6229cc8c98314b86795814ca5df6c42 (diff)
downloadayatana-indicator-sound-0d231118f14f622ca025ac29db0b2cd0eeaec004.tar.gz
ayatana-indicator-sound-0d231118f14f622ca025ac29db0b2cd0eeaec004.tar.bz2
ayatana-indicator-sound-0d231118f14f622ca025ac29db0b2cd0eeaec004.zip
tidied the transport backend
Diffstat (limited to 'src/transport-menu-item.vala')
-rw-r--r--src/transport-menu-item.vala11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/transport-menu-item.vala b/src/transport-menu-item.vala
index 8bdd2c8..7faadb5 100644
--- a/src/transport-menu-item.vala
+++ b/src/transport-menu-item.vala
@@ -28,6 +28,11 @@ public class TransportMenuitem : PlayerItem
PLAY_PAUSE,
NEXT
}
+
+ public enum state{
+ PLAYING,
+ PAUSED
+ }
public TransportMenuitem(PlayerController parent)
{
@@ -35,9 +40,9 @@ public class TransportMenuitem : PlayerItem
this.property_set_int(MENUITEM_PLAY_STATE, 1);
}
- public void change_play_state(int state)
+ public void change_play_state(state update)
{
- this.property_set_int(MENUITEM_PLAY_STATE, state);
+ this.property_set_int(MENUITEM_PLAY_STATE, update);
}
public override void handle_event(string name, GLib.Value input_value, uint timestamp)
@@ -54,4 +59,6 @@ public class TransportMenuitem : PlayerItem
attrs.add(MENUITEM_PLAY_STATE);
return attrs;
}
+
+
} \ No newline at end of file