summaryrefslogtreecommitdiff
path: root/gtk/gtknumerableicon.c
diff options
context:
space:
mode:
authorHans Breuer <hans@breuer.org>2011-01-10 21:35:53 +0100
committerHans Breuer <hans@breuer.org>2011-01-10 21:39:34 +0100
commit0a9abb0222a657700da4051fb9c4112c395e15be (patch)
treeb3234af741119a1abfa3cb2b1bc36eee9e6bf649 /gtk/gtknumerableicon.c
parentf605d3d698fd2c3558aa0d0048cd5d89ada1ae98 (diff)
downloadgtk+-0a9abb0222a657700da4051fb9c4112c395e15be.tar.gz
[portability] Use G_PI rather than M_PI
Diffstat (limited to 'gtk/gtknumerableicon.c')
-rw-r--r--gtk/gtknumerableicon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtknumerableicon.c b/gtk/gtknumerableicon.c
index 622d793a27..678abdbf30 100644
--- a/gtk/gtknumerableicon.c
+++ b/gtk/gtknumerableicon.c
@@ -118,18 +118,18 @@ draw_default_surface (GtkNumerableIcon *self)
cr = cairo_create (surface);
cairo_arc (cr, DEFAULT_SURFACE_SIZE / 2., DEFAULT_SURFACE_SIZE / 2.,
- DEFAULT_RADIUS, 0., 2 * M_PI);
+ DEFAULT_RADIUS, 0., 2 * G_PI);
gdk_cairo_set_source_rgba (cr, self->priv->background);
cairo_fill (cr);
cairo_arc (cr, DEFAULT_SURFACE_SIZE / 2., DEFAULT_SURFACE_SIZE / 2.,
- DEFAULT_RADIUS - DEFAULT_BORDER_SIZE, 0., 2 * M_PI);
+ DEFAULT_RADIUS - DEFAULT_BORDER_SIZE, 0., 2 * G_PI);
gdk_cairo_set_source_rgba (cr, self->priv->foreground);
cairo_fill (cr);
cairo_arc (cr, DEFAULT_SURFACE_SIZE / 2., DEFAULT_SURFACE_SIZE / 2.,
- DEFAULT_RADIUS - 2 * DEFAULT_BORDER_SIZE, 0., 2 * M_PI);
+ DEFAULT_RADIUS - 2 * DEFAULT_BORDER_SIZE, 0., 2 * G_PI);
gdk_cairo_set_source_rgba (cr, self->priv->background);
cairo_fill (cr);
@@ -157,7 +157,7 @@ draw_from_gradient (cairo_pattern_t *pattern)
cairo_pattern_set_matrix (pattern, &matrix);
cairo_arc (cr, DEFAULT_SURFACE_SIZE / 2., DEFAULT_SURFACE_SIZE / 2.,
- DEFAULT_RADIUS, 0., 2 * M_PI);
+ DEFAULT_RADIUS, 0., 2 * G_PI);
cairo_set_source (cr, pattern);
cairo_fill (cr);