week-header, week-grid: remove duplicate code

This commit is contained in:
Georges Basile Stavracas Neto
2016-12-08 18:53:34 -02:00
parent 7a6ca3d711
commit c1ab1c2d3b
4 changed files with 45 additions and 66 deletions
+8
View File
@@ -27,6 +27,10 @@
#define ICAL_TIME_TYPE (icaltime_get_type ())
#define ALIGNED(x) (round (x) + 0.5)
#define MINUTES_PER_DAY 1440
#define MAX_MINUTES (7 * MINUTES_PER_DAY)
typedef enum
{
GCAL_WINDOW_VIEW_DAY,
@@ -95,6 +99,10 @@ gint icaltime_compare_with_current (const icaltimet
const icaltimetype *date2,
time_t *current_time_t);
GDateTime* get_start_of_week (icaltimetype *date);
GDateTime* get_end_of_week (icaltimetype *date);
/* code brought from evolution */
gsize e_strftime_fix_am_pm (gchar *str,
gsize max,