diff options
Diffstat (limited to 'src/transport-menu-item.vala')
-rw-r--r-- | src/transport-menu-item.vala | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/transport-menu-item.vala b/src/transport-menu-item.vala index 0bcd23a..e767a90 100644 --- a/src/transport-menu-item.vala +++ b/src/transport-menu-item.vala @@ -44,9 +44,7 @@ public class TransportMenuitem : PlayerItem public void handle_cached_action() { if (this.cached_action != Transport.Action.NO_ACTION){ - debug ("TRYING TO FIRE OF A CACHED ACTION %i", (int)this.cached_action); - Timeout.add_seconds (2, send_cached_action); - //this.owner.mpris_bridge.transport_update(this.cached_action); + Timeout.add_seconds (4, send_cached_action); } } @@ -57,10 +55,8 @@ public class TransportMenuitem : PlayerItem return false; } - public void change_play_state(Transport.State update) + public void change_play_state (Transport.State update) { - //debug("UPDATING THE TRANSPORT DBUSMENUITEM PLAY STATE WITH VALUE %i", - // (int)update); int temp = (int)update; this.property_set_int(MENUITEM_PLAY_STATE, temp); } @@ -69,8 +65,6 @@ public class TransportMenuitem : PlayerItem Variant input_value, uint timestamp) { - debug ( "Handle event in transport menu item - is the player actually running %s", - this.running.to_string() ); Variant v = input_value; if ( input_value.is_of_type (VariantType.VARIANT)){ v = input_value.get_variant(); @@ -79,13 +73,9 @@ public class TransportMenuitem : PlayerItem int32 input = v.get_int32(); if (this.running == true){ - //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((Transport.Action)input); } else{ - debug("transport cached action = %i", (Transport.Action)input); - this.cached_action = (Transport.Action)input; this.owner.instantiate(); } |