diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-03-30 19:25:21 +0100 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-03-30 19:25:21 +0100 |
commit | eacbe640fa7ffb8a99a04ebf21f94982c3679a8c (patch) | |
tree | 4fa69148cfa06ee45d84728f2d2196e5be709e88 /src/transport-menu-item.vala | |
parent | 6a225f960257026db4c5d57211b4159127bfc3a0 (diff) | |
download | ayatana-indicator-sound-eacbe640fa7ffb8a99a04ebf21f94982c3679a8c.tar.gz ayatana-indicator-sound-eacbe640fa7ffb8a99a04ebf21f94982c3679a8c.tar.bz2 ayatana-indicator-sound-eacbe640fa7ffb8a99a04ebf21f94982c3679a8c.zip |
MenuItem: use GtkLaunchContext with proper event timeout to launch applications
Also discards non-activation events
Diffstat (limited to 'src/transport-menu-item.vala')
-rw-r--r-- | src/transport-menu-item.vala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/transport-menu-item.vala b/src/transport-menu-item.vala index 4ec7dad..0af3118 100644 --- a/src/transport-menu-item.vala +++ b/src/transport-menu-item.vala @@ -70,6 +70,9 @@ public class TransportMenuitem : PlayerItem Variant input_value, uint timestamp) { + if (name != Dbusmenu.MENUITEM_EVENT_ACTIVATED) + return; + Variant v = input_value; if ( input_value.is_of_type (VariantType.VARIANT)){ v = input_value.get_variant(); @@ -82,7 +85,7 @@ public class TransportMenuitem : PlayerItem } else{ this.cached_action = (Transport.Action)input; - this.owner.instantiate(); + this.owner.instantiate(timestamp); this.property_set_int (MENUITEM_PLAY_STATE, (int)Transport.State.LAUNCHING); } } |