aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Cimitan <andrea.cimitan@canonical.com>2010-11-17 16:45:09 +0100
committerAndrea Cimitan <andrea.cimitan@canonical.com>2010-11-17 16:45:09 +0100
commitacd7737d412eeeb9d072e13d2d9b1815f334de2c (patch)
tree0c6f3796140e91b6f887a0d019c479a8ea59ffa0 /src
parentf5aa1d3501cb44f31ce94a1ec188355b41926c95 (diff)
downloadayatana-indicator-sound-acd7737d412eeeb9d072e13d2d9b1815f334de2c.tar.gz
ayatana-indicator-sound-acd7737d412eeeb9d072e13d2d9b1815f334de2c.tar.bz2
ayatana-indicator-sound-acd7737d412eeeb9d072e13d2d9b1815f334de2c.zip
fixed the redraw
Diffstat (limited to 'src')
-rw-r--r--src/transport-widget.c51
1 files changed, 25 insertions, 26 deletions
diff --git a/src/transport-widget.c b/src/transport-widget.c
index 1588308..eb1a8a7 100644
--- a/src/transport-widget.c
+++ b/src/transport-widget.c
@@ -1254,6 +1254,30 @@ draw (GtkWidget* button, cairo_t *cr)
/* SHADOW_BUTTON);*/
/* }*/
+ draw_gradient (cr,
+ X,
+ Y,
+ RECT_WIDTH,
+ OUTER_RADIUS,
+ OUTER_START,
+ OUTER_END);
+
+ draw_gradient (cr,
+ X,
+ Y + 1,
+ RECT_WIDTH - 2,
+ MIDDLE_RADIUS,
+ MIDDLE_START,
+ MIDDLE_END);
+
+ draw_gradient (cr,
+ X,
+ Y + 2,
+ RECT_WIDTH - 4,
+ MIDDLE_RADIUS,
+ MIDDLE_START,
+ MIDDLE_END);
+
//prev/next button
if(priv->current_command == TRANSPORT_PREVIOUS)
{
@@ -1324,6 +1348,7 @@ draw (GtkWidget* button, cairo_t *cr)
MIDDLE_RADIUS,
MIDDLE_START_PRELIGHT,
MIDDLE_END_PRELIGHT);
+
draw_gradient (cr,
X,
Y + 2,
@@ -1359,32 +1384,6 @@ draw (GtkWidget* button, cairo_t *cr)
MIDDLE_START_PRELIGHT,
MIDDLE_END_PRELIGHT);
}
- else
- {
- draw_gradient (cr,
- X,
- Y,
- RECT_WIDTH,
- OUTER_RADIUS,
- OUTER_START,
- OUTER_END);
-
- draw_gradient (cr,
- X,
- Y + 1,
- RECT_WIDTH - 2,
- MIDDLE_RADIUS,
- MIDDLE_START,
- MIDDLE_END);
-
- draw_gradient (cr,
- X,
- Y + 2,
- RECT_WIDTH - 4,
- MIDDLE_RADIUS,
- MIDDLE_START,
- MIDDLE_END);
- }
// play/pause shadow
if(priv->current_command != TRANSPORT_PLAY_PAUSE)