aboutsummaryrefslogtreecommitdiff
path: root/src/transport-widget.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-03-08 21:49:27 +0000
committerConor Curran <conor.curran@canonical.com>2011-03-08 21:49:27 +0000
commit1844fd179212b85591f0e4eeb33591edba2f0f0b (patch)
tree4170d9046395644e87b0312bdf9c74210f7f69d4 /src/transport-widget.c
parent7576ffb4d9b247d1db2e44a7ea0f4ec8b5101f20 (diff)
downloadayatana-indicator-sound-1844fd179212b85591f0e4eeb33591edba2f0f0b.tar.gz
ayatana-indicator-sound-1844fd179212b85591f0e4eeb33591edba2f0f0b.tar.bz2
ayatana-indicator-sound-1844fd179212b85591f0e4eeb33591edba2f0f0b.zip
ensure we don't trigger a simple next/previous after releasing from a skip
Diffstat (limited to 'src/transport-widget.c')
-rw-r--r--src/transport-widget.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/transport-widget.c b/src/transport-widget.c
index 5d58201..2f5001c 100644
--- a/src/transport-widget.c
+++ b/src/transport-widget.c
@@ -395,7 +395,9 @@ transport_widget_button_release_event (GtkWidget *menuitem,
TransportWidgetPrivate * priv = TRANSPORT_WIDGET_GET_PRIVATE ( transport );
TransportWidgetEvent result = transport_widget_determine_button_event ( transport,
event );
- if (result != TRANSPORT_NADA && priv->current_command == result){
+ if (result != TRANSPORT_NADA &&
+ priv->current_command == result &&
+ priv->skip_frequency == 0){
GVariant* new_transport_state = g_variant_new_int32 ((int)result);
dbusmenu_menuitem_handle_event ( priv->twin_item,
"Transport state change",