diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-09-08 15:51:52 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-09-08 15:51:52 +0100 |
commit | 1f038d6725571f8e80530a96112d427d5b051022 (patch) | |
tree | 65bf00e8c5951cca65196e7f02433081607a446c /src/play-button.c | |
parent | 9840130d7059edec3acd634d18f8f601c2afc28a (diff) | |
download | ayatana-indicator-sound-1f038d6725571f8e80530a96112d427d5b051022.tar.gz ayatana-indicator-sound-1f038d6725571f8e80530a96112d427d5b051022.tar.bz2 ayatana-indicator-sound-1f038d6725571f8e80530a96112d427d5b051022.zip |
title widget now shows the icon in the right place, play button have been alter accordingly
Diffstat (limited to 'src/play-button.c')
-rw-r--r-- | src/play-button.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/play-button.c b/src/play-button.c index a2eaf2e..2164527 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 @@ -719,8 +720,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}; |