aboutsummaryrefslogtreecommitdiff
path: root/src/transport-widget.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-07-13 14:06:55 +0100
committerConor Curran <conor.curran@canonical.com>2010-07-13 14:06:55 +0100
commitec287ed34db17df23ab16d9199fbbb48bd6b246f (patch)
treeb7dc7479fcc01c36c1c3e703313ef7fdda1c57af /src/transport-widget.c
parentd8253fc0cfe667316e2e5f033bcbfba4c3044297 (diff)
downloadayatana-indicator-sound-ec287ed34db17df23ab16d9199fbbb48bd6b246f.tar.gz
ayatana-indicator-sound-ec287ed34db17df23ab16d9199fbbb48bd6b246f.tar.bz2
ayatana-indicator-sound-ec287ed34db17df23ab16d9199fbbb48bd6b246f.zip
fixed silly previous problem
Diffstat (limited to 'src/transport-widget.c')
-rw-r--r--src/transport-widget.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/transport-widget.c b/src/transport-widget.c
index f02200e..9450ea5 100644
--- a/src/transport-widget.c
+++ b/src/transport-widget.c
@@ -149,12 +149,13 @@ transport_widget_button_press_event (GtkWidget *menuitem,
gint result = determine_button_event(priv->play_button, event);
- GValue value = {0};
- g_value_init(&value, G_TYPE_INT);
- g_debug("TransportWidget::menu_press_event - going to send value %i", result);
- g_value_set_int(&value, result);
- dbusmenu_menuitem_handle_event (priv->twin_item, "Transport state change", &value, 0);
-
+ if(result >= 0){
+ GValue value = {0};
+ g_value_init(&value, G_TYPE_INT);
+ g_debug("TransportWidget::menu_press_event - going to send value %i", result);
+ g_value_set_int(&value, result);
+ dbusmenu_menuitem_handle_event (priv->twin_item, "Transport state change", &value, 0);
+ }
return TRUE;
}