window: use a GcalEvent to delete events

Instead of using the GcalEventData struct, use the
deleted event. It holds a reference until the event
gets destroyed.

With this commit, we can safely drop GcalEventData
structure, since it's not used anymore.
This commit is contained in:
Georges Basile Stavracas Neto
2016-02-14 12:17:37 -02:00
parent 4676a21a58
commit c65fe989fe
3 changed files with 26 additions and 34 deletions
-6
View File
@@ -32,12 +32,6 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (GcalManager, gcal_manager, GCAL, MANAGER, GObject)
typedef struct
{
ESource *source;
ECalComponent *event_component;
} GcalEventData;
GcalManager* gcal_manager_new_with_settings (GSettings *settings);
ESource* gcal_manager_get_source (GcalManager *manager,