utils: Add GDateTime utils

This will greatly help with the transition to GDateTime.
In the future, we can propose these APIs to GLib itself.
This commit is contained in:
Georges Basile Stavracas Neto
2019-04-26 12:59:29 -03:00
parent 3bff2b8981
commit 68943eec57
5 changed files with 164 additions and 2 deletions
+2 -1
View File
@@ -19,7 +19,9 @@
#ifndef __GCAL_UTILS_H__
#define __GCAL_UTILS_H__
#include "gcal-date-time-utils.h"
#include "gcal-manager.h"
#include <gtk/gtk.h>
#include <libecal/libecal.h>
#include <libgweather/gweather.h>
@@ -31,7 +33,6 @@
#define MINUTES_PER_DAY 1440
#define MAX_MINUTES (7 * MINUTES_PER_DAY)
#define gcal_clear_datetime(dt) g_clear_pointer (dt, g_date_time_unref)
#define gcal_clear_timeout(pp) { if (pp && *pp) { g_source_remove (*pp); *pp = 0; } }
#if !EDS_CHECK_VERSION (3, 31, 90)