diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-09-07 10:04:07 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-09-07 10:04:07 +0100 |
commit | 32442108b50ade909fa9076513139d73cde577a1 (patch) | |
tree | f43d4018dc327cd212c09c03c771905a27769753 /src/play-button.c | |
parent | 71f036ce6cbd106f3754d7008303d1b108433ae2 (diff) | |
download | ayatana-indicator-sound-32442108b50ade909fa9076513139d73cde577a1.tar.gz ayatana-indicator-sound-32442108b50ade909fa9076513139d73cde577a1.tar.bz2 ayatana-indicator-sound-32442108b50ade909fa9076513139d73cde577a1.zip |
button release outside of control now acts as it should do
Diffstat (limited to 'src/play-button.c')
-rw-r--r-- | src/play-button.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/play-button.c b/src/play-button.c index 0c2a59a..84af260 100644 --- a/src/play-button.c +++ b/src/play-button.c @@ -431,7 +431,14 @@ play_button_react_to_button_release(GtkWidget* button, PlayButtonEvent command) { g_return_if_fail(IS_PLAY_BUTTON(button)); PlayButtonPrivate* priv = PLAY_BUTTON_GET_PRIVATE(button); - priv->current_command = command; + if(priv->current_command == TRANSPORT_NADA){ + g_debug("returning from the playbutton release because my previous command was nada"); + return; + } + else if(priv->current_command != TRANSPORT_NADA && + command != TRANSPORT_NADA){ + priv->current_command = command; + } cairo_t *cr; |