aboutsummaryrefslogtreecommitdiff
path: root/src/play-button.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-06-29 14:42:14 +0100
committerConor Curran <conor.curran@canonical.com>2010-06-29 14:42:14 +0100
commit8dc783c9943dbb1a80579d6f7e70492769b67717 (patch)
tree901ca8408291556a8ffcc55224b0b6133b0b3112 /src/play-button.c
parent914519bfe7983f250db3bd83a3f4545aa7071d66 (diff)
downloadayatana-indicator-sound-8dc783c9943dbb1a80579d6f7e70492769b67717.tar.gz
ayatana-indicator-sound-8dc783c9943dbb1a80579d6f7e70492769b67717.tar.bz2
ayatana-indicator-sound-8dc783c9943dbb1a80579d6f7e70492769b67717.zip
updates
Diffstat (limited to 'src/play-button.c')
-rw-r--r--src/play-button.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/play-button.c b/src/play-button.c
index 6b67042..e798668 100644
--- a/src/play-button.c
+++ b/src/play-button.c
@@ -40,7 +40,7 @@ static void play_button_init (PlayButton *self);
static void play_button_dispose (GObject *object);
static void play_button_finalize (GObject *object);
-static gboolean play_button_expose (GtkWidget *button, GdkEventExpose *event);
+static gboolean play_button_expose (GtkWidget *button, GdkEventExpose *event, gpointer userdata);
static void draw (GtkWidget* button, cairo_t *cr);
G_DEFINE_TYPE (PlayButton, play_button, GTK_TYPE_DRAWING_AREA);
@@ -81,7 +81,7 @@ play_button_finalize (GObject *object)
}
static gboolean
-play_button_expose (GtkWidget *button, GdkEventExpose *event)
+play_button_expose (GtkWidget *button, GdkEventExpose *event, gpointer userdata)
{
GtkAllocation alloc;
@@ -123,7 +123,7 @@ draw (GtkWidget* button, cairo_t *cr)
button->allocation.height / 2) - 5;
/* button back */
- cairo_arc (cr, x, y, radius, 0, 2 * M_PI);
+ cairo_arc (cr, x, y, radius, 0, 2 * G_PI);
cairo_set_source_rgb (cr, 1, 1, 1);
cairo_fill_preserve (cr);
cairo_set_source_rgb (cr, 0, 0, 0);
@@ -148,11 +148,11 @@ draw (GtkWidget* button, cairo_t *cr)
}
cairo_move_to (cr,
- x + (radius - inset) * cos (i * M_PI / 6),
- y + (radius - inset) * sin (i * M_PI / 6));
+ x + (radius - inset) * cos (i * G_PI / 6),
+ y + (radius - inset) * sin (i * G_PI / 6));
cairo_line_to (cr,
- x + radius * cos (i * M_PI / 6),
- y + radius * sin (i * M_PI / 6));
+ x + radius * cos (i * G_PI / 6),
+ y + radius * sin (i * G_PI / 6));
cairo_stroke (cr);
cairo_restore (cr); /* stack-pen-size */
}