From bd31f49bac99f21656dc7d0352d5b3f7385f71b2 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 26 Dec 2009 00:26:18 -0500 Subject: Coding style and whitespace cleanup. --- calendar/gui/e-cal-component-preview.c | 4 +++- calendar/gui/e-day-view-layout.c | 4 +++- calendar/gui/e-day-view.h | 6 ++++-- calendar/gui/print.c | 4 ++-- 4 files changed, 12 insertions(+), 6 deletions(-) (limited to 'calendar') diff --git a/calendar/gui/e-cal-component-preview.c b/calendar/gui/e-cal-component-preview.c index 6720156911..77fa25c995 100644 --- a/calendar/gui/e-cal-component-preview.c +++ b/calendar/gui/e-cal-component-preview.c @@ -72,7 +72,9 @@ clear_comp_info (ECalComponentPreview *preview) /* Stores information about actually shown component and returns whether component in the preview changed */ static gboolean -update_comp_info (ECalComponentPreview *preview, ECal *ecal, ECalComponent *comp) +update_comp_info (ECalComponentPreview *preview, + ECal *ecal, + ECalComponent *comp) { ECalComponentPreviewPrivate *priv; gboolean changed; diff --git a/calendar/gui/e-day-view-layout.c b/calendar/gui/e-day-view-layout.c index 51ced181b7..c11c4f6738 100644 --- a/calendar/gui/e-day-view-layout.c +++ b/calendar/gui/e-day-view-layout.c @@ -256,7 +256,9 @@ e_day_view_layout_day_event (EDayViewEvent *event, for (row = start_row; row <= end_row; row++) { /* resize the array if necessary */ if (e_bit_array_bit_count (grid [row]) <= free_col) - e_bit_array_insert (grid [row], e_bit_array_bit_count (grid [row]), free_col - e_bit_array_bit_count (grid [row]) + 1); + e_bit_array_insert ( + grid [row], e_bit_array_bit_count (grid [row]), + free_col - e_bit_array_bit_count (grid [row]) + 1); e_bit_array_change_one_row (grid [row], free_col, TRUE); cols_per_row[row]++; diff --git a/calendar/gui/e-day-view.h b/calendar/gui/e-day-view.h index 6729186b21..aee8be0683 100644 --- a/calendar/gui/e-day-view.h +++ b/calendar/gui/e-day-view.h @@ -45,7 +45,8 @@ G_BEGIN_DECLS of a normal event. */ #define E_DAY_VIEW_LONG_EVENT E_DAY_VIEW_MAX_DAYS -/* The maximum number of columns of appointments within a day in multi-day view. */ +/* The maximum number of columns of appointments within a day in multi-day + view. */ #define E_DAY_VIEW_MULTI_DAY_MAX_COLUMNS 6 /* minimum width of the event in one-day view in pixels */ @@ -533,7 +534,8 @@ gint e_day_view_get_work_day_end_minute (EDayView *day_view); void e_day_view_set_work_day_end_minute (EDayView *day_view, gint work_day_end_minute); -/* Whether we display the Marcus Bains Line in the main canvas and time canvas. */ +/* Whether we display the Marcus Bains Line in the main canvas and time + canvas. */ void e_day_view_marcus_bains_update (EDayView *day_view); gboolean e_day_view_marcus_bains_get_show_line(EDayView *day_view); void e_day_view_marcus_bains_set_show_line(EDayView *day_view, diff --git a/calendar/gui/print.c b/calendar/gui/print.c index ef511e5913..010a60423b 100644 --- a/calendar/gui/print.c +++ b/calendar/gui/print.c @@ -1339,7 +1339,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 '...' over the last all day event entry printed. '-1 -1' comes + /* Placing '...' over the last all day event entry printed. '-1 -1' comes from print_long_day_event (top/bottom spacing in each cell) */ y = top + LONG_DAY_EVENTS_TOP_SPACING + DAY_VIEW_ROW_HEIGHT * (i - 1) + (DAY_VIEW_ROW_HEIGHT - 1 - 1) * 0.5; @@ -1358,7 +1358,7 @@ print_day_details (GtkPrintContext *context, GnomeCalendar *gcal, time_t whence, cairo_set_source_rgb (cr, 0, 0, 0); print_border (context, left, right, - top, + top, top + rows_in_top_display * DAY_VIEW_ROW_HEIGHT + LONG_DAY_EVENTS_TOP_SPACING + LONG_DAY_EVENTS_BOTTOM_SPACING, 1.0, -1.0); -- cgit v1.2.3