aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-10-24 13:10:42 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-10-24 13:10:42 +0800
commitd48348f3404f71dddfacfd348f035479d308dede (patch)
tree631e2e89b2219027735c10f9723f76ab6bd3e265 /calendar
parent11f85495a9fb083e40ccc47c4ec533dbe6dea9e7 (diff)
downloadgsoc2013-evolution-d48348f3404f71dddfacfd348f035479d308dede.tar
gsoc2013-evolution-d48348f3404f71dddfacfd348f035479d308dede.tar.gz
gsoc2013-evolution-d48348f3404f71dddfacfd348f035479d308dede.tar.bz2
gsoc2013-evolution-d48348f3404f71dddfacfd348f035479d308dede.tar.lz
gsoc2013-evolution-d48348f3404f71dddfacfd348f035479d308dede.tar.xz
gsoc2013-evolution-d48348f3404f71dddfacfd348f035479d308dede.tar.zst
gsoc2013-evolution-d48348f3404f71dddfacfd348f035479d308dede.zip
Coding style and whitespace cleanups.
Diffstat (limited to 'calendar')
-rw-r--r--calendar/gui/print.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/calendar/gui/print.c b/calendar/gui/print.c
index 3cb2cedae6..829dde34bd 100644
--- a/calendar/gui/print.c
+++ b/calendar/gui/print.c
@@ -432,7 +432,7 @@ print_text (GtkPrintContext *context, PangoFontDescription *desc,
/* Set a clipping rectangle. */
cairo_move_to (cr, x1, y1);
cairo_rectangle (cr, x1, y1, x2 - x1, y2 - y1);
- cairo_clip (cr);
+ cairo_clip (cr);
cairo_new_path (cr);
cairo_set_source_rgb (cr, 0, 0, 0);
@@ -1311,12 +1311,11 @@ print_day_details (GtkPrintContext *context, GnomeCalendar *gcal, time_t whence,
rows_in_top_display = MIN (MAX (rows_in_top_display,
DAY_VIEW_MIN_ROWS_IN_TOP_DISPLAY),
(bottom-top)*0.5/DAY_VIEW_ROW_HEIGHT);
-
for (i = 0; i < rows_in_top_display; i++) {
- if (i < (rows_in_top_display - 1) ||
+ if (i < (rows_in_top_display - 1) ||
rows_in_top_display >= pdi.long_events->len) {
- event = &g_array_index (pdi.long_events, EDayViewEvent, i);
+ event = &g_array_index (pdi.long_events, EDayViewEvent, i);
print_day_long_event (context, font, left, right, top, bottom,
DAY_VIEW_ROW_HEIGHT, event, &pdi, model);
} else {
@@ -1337,7 +1336,7 @@ print_day_details (GtkPrintContext *context, GnomeCalendar *gcal, time_t whence,
/* Right align - 10 comes from print_day_long_event too */
x = right - gdk_pixbuf_get_width (pixbuf) * 0.5 - 10;
- /* Placing '...' at mid height. 4 and 7 constant come from print_day_long_event
+ /* Placing '...' at mid height. 4 and 7 constant come from print_day_long_event
(offsets used to place events boxes in their respective cells) */
y = top + DAY_VIEW_ROW_HEIGHT * i + (DAY_VIEW_ROW_HEIGHT - 4 - 7) * 0.5;