manager: add GcalContext property

This improves access to the GcalContext inside GcalManager.

Also, remove test-manager since it only tests that gcal_manager_new()
returns non-NULL.
This commit is contained in:
Michael Catanzaro
2019-09-19 16:04:04 -05:00
parent 8e6a3b9f3f
commit 50b6d00784
5 changed files with 42 additions and 70 deletions
+3 -1
View File
@@ -30,7 +30,9 @@ G_BEGIN_DECLS
#define GCAL_TYPE_MANAGER (gcal_manager_get_type ())
G_DECLARE_FINAL_TYPE (GcalManager, gcal_manager, GCAL, MANAGER, GObject)
GcalManager* gcal_manager_new (void);
typedef struct _GcalContext GcalContext;
GcalManager* gcal_manager_new (GcalContext *context);
ESource* gcal_manager_get_source (GcalManager *self,
const gchar *uid);