diff options
author | Sebastien Bacher <seb128@ubuntu.com> | 2010-09-08 19:51:33 +0200 |
---|---|---|
committer | Sebastien Bacher <seb128@ubuntu.com> | 2010-09-08 19:51:33 +0200 |
commit | d1fd48d0ed8ce30d29c424c9ff12d9b02a744f52 (patch) | |
tree | 7855b6beeae39a8af9f1edc22dbf8b0dc82f0dbf /src/transport-menu-item.vala | |
parent | 7e9c9ed5e67bf26226996dda674ac4e4c5b4b272 (diff) | |
parent | 75f6c6bfa400649014ed90d87e57d5bf4b542f31 (diff) | |
download | ayatana-indicator-sound-d1fd48d0ed8ce30d29c424c9ff12d9b02a744f52.tar.gz ayatana-indicator-sound-d1fd48d0ed8ce30d29c424c9ff12d9b02a744f52.tar.bz2 ayatana-indicator-sound-d1fd48d0ed8ce30d29c424c9ff12d9b02a744f52.zip |
releasing version 0.4.3-0ubuntu1
Diffstat (limited to 'src/transport-menu-item.vala')
-rw-r--r-- | src/transport-menu-item.vala | 11 |
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 |