aboutsummaryrefslogtreecommitdiff
path: root/src/transport-widget.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-11-16 18:11:20 +0000
committerConor Curran <conor.curran@canonical.com>2011-11-16 18:11:20 +0000
commit9272abc2956c822f25f88aaae1c20f06c0540559 (patch)
tree9b0b2ad13427f23b380ab6492dacf1fe84b37f1e /src/transport-widget.c
parentef3495e8ca6aa257c2d3123a7b0a25067570b0de (diff)
downloadayatana-indicator-sound-9272abc2956c822f25f88aaae1c20f06c0540559.tar.gz
ayatana-indicator-sound-9272abc2956c822f25f88aaae1c20f06c0540559.tar.bz2
ayatana-indicator-sound-9272abc2956c822f25f88aaae1c20f06c0540559.zip
fix the collision detection
Diffstat (limited to 'src/transport-widget.c')
-rw-r--r--src/transport-widget.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transport-widget.c b/src/transport-widget.c
index c535e00..2d1a7f2 100644
--- a/src/transport-widget.c
+++ b/src/transport-widget.c
@@ -561,15 +561,15 @@ transport_widget_collision_detection ( gint x,
{
TransportAction event = TRANSPORT_ACTION_NO_ACTION;
- if (x > 67 && x < 112
+ if (x > 57 && x < 102
&& y > 12 && y < 40){
event = TRANSPORT_ACTION_PREVIOUS;
}
- else if (x > 111 && x < 153
+ else if (x > 101 && x < 143
&& y > 5 && y < 47){
event = TRANSPORT_ACTION_PLAY_PAUSE;
}
- else if (x > 152 && x < 197
+ else if (x > 142 && x < 187
&& y > 12 && y < 40){
event = TRANSPORT_ACTION_NEXT;
}