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 | |
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
-rw-r--r-- | src/play-button.c | 2 | ||||
-rw-r--r-- | src/sound-service.c | 4 | ||||
-rw-r--r-- | src/transport-widget.c | 13 |
3 files changed, 10 insertions, 9 deletions
diff --git a/src/play-button.c b/src/play-button.c index d6d243c..f712209 100644 --- a/src/play-button.c +++ b/src/play-button.c @@ -361,7 +361,7 @@ determine_button_event(GtkWidget* button, GdkEventButton* event) { g_debug("event x coordinate = %f", event->x); g_debug("event y coordinate = %f", event->y); - gint result = 0; + gint result = -1; // For now very simple rectangular collision detection if(event->x > 55 && event->x < 95 && event->y > 22 && event->y < 46){ diff --git a/src/sound-service.c b/src/sound-service.c index 8f4e941..a5f3941 100644 --- a/src/sound-service.c +++ b/src/sound-service.c @@ -43,8 +43,8 @@ service_shutdown (IndicatorService *service, gpointer user_data) if (mainloop != NULL) { g_debug("Service shutdown !"); // TODO: uncomment for release !! - close_pulse_activites(); - g_main_loop_quit(mainloop); + //close_pulse_activites(); + //g_main_loop_quit(mainloop); } return; } 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; } |