aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-10-17 22:10:42 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-30 01:50:02 +0800
commit186100f9afd831bb783f199b044b5051b1cb10bf (patch)
tree48b61794a8049dc97f935de0a31c62f38a545ce8 /calendar
parenta97de21bd2726c985372b528249cf383a4966739 (diff)
downloadgsoc2013-evolution-186100f9afd831bb783f199b044b5051b1cb10bf.tar
gsoc2013-evolution-186100f9afd831bb783f199b044b5051b1cb10bf.tar.gz
gsoc2013-evolution-186100f9afd831bb783f199b044b5051b1cb10bf.tar.bz2
gsoc2013-evolution-186100f9afd831bb783f199b044b5051b1cb10bf.tar.lz
gsoc2013-evolution-186100f9afd831bb783f199b044b5051b1cb10bf.tar.xz
gsoc2013-evolution-186100f9afd831bb783f199b044b5051b1cb10bf.tar.zst
gsoc2013-evolution-186100f9afd831bb783f199b044b5051b1cb10bf.zip
calendar: Use G_PI
M_PI requires math.h. It's currently implicitly included, but might not be forever. (In fact, it'll go in the next commit, guess why I noticed it...)
Diffstat (limited to 'calendar')
-rw-r--r--calendar/gui/e-day-view-main-item.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/calendar/gui/e-day-view-main-item.c b/calendar/gui/e-day-view-main-item.c
index 0383d3b112..a0d881d563 100644
--- a/calendar/gui/e-day-view-main-item.c
+++ b/calendar/gui/e-day-view-main-item.c
@@ -316,7 +316,7 @@ day_view_main_item_draw_day_event (EDayViewMainItem *main_item,
cairo_pattern_add_color_stop_rgba (pat, 0.25, 0, 0, 0, 0.2);
cairo_pattern_add_color_stop_rgba (pat, 0, 0, 0, 0, 1);
cairo_set_source (cr, pat);
- cairo_arc (cr, item_x + item_w - E_DAY_VIEW_BAR_WIDTH + 5, item_y + 13.5, 8.0, 11 * M_PI / 8, M_PI / 8);
+ cairo_arc (cr, item_x + item_w - E_DAY_VIEW_BAR_WIDTH + 5, item_y + 13.5, 8.0, 11 * G_PI / 8, G_PI / 8);
cairo_fill (cr);
cairo_pattern_destroy (pat);
@@ -344,7 +344,7 @@ day_view_main_item_draw_day_event (EDayViewMainItem *main_item,
cairo_pattern_add_color_stop_rgba (pat, 0.7, 0, 0, 0, 0.2);
cairo_pattern_add_color_stop_rgba (pat, 0, 0, 0, 0, 1);
cairo_set_source (cr, pat);
- cairo_arc (cr, item_x + E_DAY_VIEW_BAR_WIDTH + 13, item_y + item_h - 5, 12.0, 3 * M_PI / 8, 9 * M_PI / 8);
+ cairo_arc (cr, item_x + E_DAY_VIEW_BAR_WIDTH + 13, item_y + item_h - 5, 12.0, 3 * G_PI / 8, 9 * G_PI / 8);
cairo_fill (cr);
cairo_pattern_destroy (pat);
@@ -365,7 +365,7 @@ day_view_main_item_draw_day_event (EDayViewMainItem *main_item,
cairo_pattern_add_color_stop_rgba (pat, 0.8, 0, 0, 0, 0.2);
cairo_pattern_add_color_stop_rgba (pat, 0, 0, 0, 0, 1);
cairo_set_source (cr, pat);
- cairo_arc (cr, item_x + item_w - E_DAY_VIEW_BAR_WIDTH + 1, item_y + item_h - 4.5, 12.0, 15 * M_PI / 8, 5 * M_PI / 8);
+ cairo_arc (cr, item_x + item_w - E_DAY_VIEW_BAR_WIDTH + 1, item_y + item_h - 4.5, 12.0, 15 * G_PI / 8, 5 * G_PI / 8);
cairo_fill (cr);
cairo_pattern_destroy (pat);