aboutsummaryrefslogtreecommitdiff
path: root/src/transport-menu-item.vala
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2011-03-11 12:56:28 -0500
committerKen VanDine <ken.vandine@canonical.com>2011-03-11 12:56:28 -0500
commitd1a4d4e51d74192975dd2aa1dda35581b1d23d73 (patch)
tree59a8e63ea80a23797a97c2965a17eff3f48b97cd /src/transport-menu-item.vala
parentf2b815cf615ba4532a7e04254ddb4acd1bbb75ff (diff)
parenta65cff5ec2d7625408d58fe6b23ddb40d7f63ee2 (diff)
downloadayatana-indicator-sound-d1a4d4e51d74192975dd2aa1dda35581b1d23d73.tar.gz
ayatana-indicator-sound-d1a4d4e51d74192975dd2aa1dda35581b1d23d73.tar.bz2
ayatana-indicator-sound-d1a4d4e51d74192975dd2aa1dda35581b1d23d73.zip
releasing version 0.6.3-0ubuntu1
Diffstat (limited to 'src/transport-menu-item.vala')
-rw-r--r--src/transport-menu-item.vala15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/transport-menu-item.vala b/src/transport-menu-item.vala
index b0009d9..67e9562 100644
--- a/src/transport-menu-item.vala
+++ b/src/transport-menu-item.vala
@@ -20,19 +20,10 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
using Dbusmenu;
using Gee;
using DbusmenuTransport;
+using Transport;
public class TransportMenuitem : PlayerItem
{
- public enum action{
- PREVIOUS,
- PLAY_PAUSE,
- NEXT
- }
-
- public enum state{
- PLAYING,
- PAUSED
- }
public TransportMenuitem(PlayerController parent)
{
@@ -40,7 +31,7 @@ public class TransportMenuitem : PlayerItem
this.property_set_int(MENUITEM_PLAY_STATE, 1);
}
- public void change_play_state(state update)
+ public void change_play_state(Transport.State update)
{
//debug("UPDATING THE TRANSPORT DBUSMENUITEM PLAY STATE WITH VALUE %i",
// (int)update);
@@ -62,7 +53,7 @@ public class TransportMenuitem : PlayerItem
int32 input = v.get_int32();
//debug("transport menu item -> handle_event with value %s", input.to_string());
//debug("transport owner name = %s", this.owner.app_info.get_name());
- this.owner.mpris_bridge.transport_update((action)input);
+ this.owner.mpris_bridge.transport_update((Transport.Action)input);
}
public static HashSet<string> attributes_format()