aboutsummaryrefslogtreecommitdiff
path: root/src/transport-menu-item.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-06-11 15:09:07 +0100
committerConor Curran <conor.curran@canonical.com>2010-06-11 15:09:07 +0100
commit448e45e3fa53620804ab8ec9c5940946f45a8b62 (patch)
treedc1499102d21729c584ba3beee848e87aeb1358c /src/transport-menu-item.vala
parentda91c666d6b66163077ddb9e59bf556fb4d44953 (diff)
downloadayatana-indicator-sound-448e45e3fa53620804ab8ec9c5940946f45a8b62.tar.gz
ayatana-indicator-sound-448e45e3fa53620804ab8ec9c5940946f45a8b62.tar.bz2
ayatana-indicator-sound-448e45e3fa53620804ab8ec9c5940946f45a8b62.zip
new widget for the metadata
Diffstat (limited to 'src/transport-menu-item.vala')
-rw-r--r--src/transport-menu-item.vala10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/transport-menu-item.vala b/src/transport-menu-item.vala
index 9af52d1..0ecc9b1 100644
--- a/src/transport-menu-item.vala
+++ b/src/transport-menu-item.vala
@@ -1,21 +1,21 @@
using Dbusmenu;
using Gee;
-public class TransportMenuItem : Dbusmenu.Menuitem
+public class TransportMenuitem : Dbusmenu.Menuitem
{
/* Not ideal duplicate definition of const - see common-defs/h */
const string DBUSMENU_TRANSPORT_MENUITEM_TYPE = "x-canonical-transport-bar";
const string DBUSMENU_TRANSPORT_MENUITEM_STATE = "x-canonical-transport-state";
- public TransportMenuItem()
+ public TransportMenuitem()
{
this.property_set(MENUITEM_PROP_TYPE, DBUSMENU_TRANSPORT_MENUITEM_TYPE);
- this.property_set(MENUITEM_PROP_TYPE, DBUSMENU_TRANSPORT_MENUITEM_STATE);
+ this.property_set(DBUSMENU_TRANSPORT_MENUITEM_STATE, "play");
}
public override void handle_event(string name, GLib.Value input_value, uint timestamp)
{
+ this.property_set(DBUSMENU_TRANSPORT_MENUITEM_STATE, "1");
debug("TransportItem -> handle event caught!");
- }
-
+ }
} \ No newline at end of file