aboutsummaryrefslogtreecommitdiff
path: root/src/play-button.c
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2010-09-08 19:51:33 +0200
committerSebastien Bacher <seb128@ubuntu.com>2010-09-08 19:51:33 +0200
commitd1fd48d0ed8ce30d29c424c9ff12d9b02a744f52 (patch)
tree7855b6beeae39a8af9f1edc22dbf8b0dc82f0dbf /src/play-button.c
parent7e9c9ed5e67bf26226996dda674ac4e4c5b4b272 (diff)
parent75f6c6bfa400649014ed90d87e57d5bf4b542f31 (diff)
downloadayatana-indicator-sound-d1fd48d0ed8ce30d29c424c9ff12d9b02a744f52.tar.gz
ayatana-indicator-sound-d1fd48d0ed8ce30d29c424c9ff12d9b02a744f52.tar.bz2
ayatana-indicator-sound-d1fd48d0ed8ce30d29c424c9ff12d9b02a744f52.zip
releasing version 0.4.3-0ubuntu1
Diffstat (limited to 'src/play-button.c')
-rw-r--r--src/play-button.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/play-button.c b/src/play-button.c
index ccc23cb..0c934e5 100644
--- a/src/play-button.c
+++ b/src/play-button.c
@@ -388,19 +388,20 @@ determine_button_event(GtkWidget* button, GdkEventButton* event)
g_debug("event y coordinate = %f", event->y);
PlayButtonEvent button_event = TRANSPORT_NADA;
// For now very simple rectangular collision detection
- if(event->x > 55 && event->x < 95
+ if(event->x > 67 && event->x < 112
&& event->y > 12 && event->y < 40){
button_event = TRANSPORT_PREVIOUS;
}
- else if(event->x > 99 && event->x < 136
+ else if(event->x > 111 && event->x < 153
&& event->y > 5 && event->y < 47){
button_event = TRANSPORT_PLAY_PAUSE;
}
- else if(event->x > 137 && event->x < 179
+ else if(event->x > 152 && event->x < 197
&& event->y > 12 && event->y < 40){
button_event = TRANSPORT_NEXT;
}
return button_event;
+
}
void
@@ -730,8 +731,8 @@ draw (GtkWidget* button, cairo_t *cr)
cairo_surface_t* surf = NULL;
cairo_t* cr_surf = NULL;
- double INNER_START[] = {229.0f/255.0f, 223.0f/255.0f, 215.0f/255.0f, 1.0f};
- double INNER_END[] = {183.0f / 255.0f, 178.0f / 255.0f, 172.0f / 255.0f, 1.0f};
+ //double INNER_START[] = {229.0f/255.0f, 223.0f/255.0f, 215.0f/255.0f, 1.0f};
+ //double INNER_END[] = {183.0f / 255.0f, 178.0f / 255.0f, 172.0f / 255.0f, 1.0f};
double MIDDLE_START[] = {61.0f / 255.0f, 60.0f / 255.0f, 57.0f / 255.0f, 1.0f};
double MIDDLE_END[] = {94.0f / 255.0f,93.0f / 255.0f, 90.0f / 255.0f,1.0f};
double OUTER_START[] = {36.0f / 255.0f, 35.0f / 255.0f, 33.0f / 255.0f, 1.0f};