diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-07-13 14:06:55 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-07-13 14:06:55 +0100 |
commit | ec287ed34db17df23ab16d9199fbbb48bd6b246f (patch) | |
tree | b7dc7479fcc01c36c1c3e703313ef7fdda1c57af /src/transport-widget.c | |
parent | d8253fc0cfe667316e2e5f033bcbfba4c3044297 (diff) | |
download | ayatana-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.c | 13 |
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; } |