aboutsummaryrefslogtreecommitdiff
path: root/src/transport-menu-item.vala
diff options
context:
space:
mode:
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