diff options
author | Marco Trevisan (TreviƱo) <mail@3v1n0.net> | 2013-04-05 14:11:02 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2013-04-05 14:11:02 +0000 |
commit | 63616b0b258f640aa84150913f3d01cd79bb6c65 (patch) | |
tree | 4fa69148cfa06ee45d84728f2d2196e5be709e88 /src/transport-menu-item.vala | |
parent | 6a225f960257026db4c5d57211b4159127bfc3a0 (diff) | |
parent | eacbe640fa7ffb8a99a04ebf21f94982c3679a8c (diff) | |
download | ayatana-indicator-sound-63616b0b258f640aa84150913f3d01cd79bb6c65.tar.gz ayatana-indicator-sound-63616b0b258f640aa84150913f3d01cd79bb6c65.tar.bz2 ayatana-indicator-sound-63616b0b258f640aa84150913f3d01cd79bb6c65.zip |
MenuItem: use GtkLaunchContext with proper event timeout to launch applications
Also discards non-activation events. Fixes: https://bugs.launchpad.net/bugs/1163434.
Approved by PS Jenkins bot, Lars Uebernickel.
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); } } |