diff options
author | Hans Breuer <hans@breuer.org> | 2011-01-10 21:35:53 +0100 |
---|---|---|
committer | Hans Breuer <hans@breuer.org> | 2011-01-10 21:39:34 +0100 |
commit | 0a9abb0222a657700da4051fb9c4112c395e15be (patch) | |
tree | b3234af741119a1abfa3cb2b1bc36eee9e6bf649 /gtk/gtknumerableicon.c | |
parent | f605d3d698fd2c3558aa0d0048cd5d89ada1ae98 (diff) | |
download | gtk+-0a9abb0222a657700da4051fb9c4112c395e15be.tar.gz |
[portability] Use G_PI rather than M_PI
Diffstat (limited to 'gtk/gtknumerableicon.c')
-rw-r--r-- | gtk/gtknumerableicon.c | 8 |
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); |