diff options
author | David Trowbridge <trowbrds@cs.colorado.edu> | 2005-01-07 19:36:53 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2005-01-07 19:36:53 +0800 |
commit | fa51bd7c909b379c986a67dbcd4dea16c009e106 (patch) | |
tree | d1676d1c12a25ccbad1e46a17728f788d7be88ab /calendar/gui/migration.c | |
parent | c1d17ad26db6796ad5896ca67d82b489e99f55b5 (diff) | |
download | gsoc2013-evolution-fa51bd7c909b379c986a67dbcd4dea16c009e106.tar.gz gsoc2013-evolution-fa51bd7c909b379c986a67dbcd4dea16c009e106.tar.zst gsoc2013-evolution-fa51bd7c909b379c986a67dbcd4dea16c009e106.zip |
initial import of ECalEvent targets
2005-01-06 David Trowbridge <trowbrds@cs.colorado.edu>
* gui/e-cal-event[hc]: initial import of ECalEvent targets
* gui/migration.c (migrate_calendars): add component.migration event
svn path=/trunk/; revision=28266
Diffstat (limited to 'calendar/gui/migration.c')
-rw-r--r-- | calendar/gui/migration.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/calendar/gui/migration.c b/calendar/gui/migration.c index de43d4bb5f..76b8a52a16 100644 --- a/calendar/gui/migration.c +++ b/calendar/gui/migration.c @@ -47,6 +47,7 @@ #include <libedataserver/e-xml-hash-utils.h> #include "calendar-config.h" #include "calendar-config-keys.h" +#include "e-cal-event.h" #include "migration.h" static e_gconf_map_t calendar_display_map[] = { @@ -700,6 +701,8 @@ migrate_calendars (CalendarComponent *component, int major, int minor, int revis { ESourceGroup *on_this_computer = NULL, *on_the_web = NULL, *contacts = NULL; ESource *personal_source = NULL; + ECalEvent *ece; + ECalEventTargetComponent *target; gboolean retval = FALSE; /* we call this unconditionally now - create_groups either @@ -833,6 +836,21 @@ migrate_calendars (CalendarComponent *component, int major, int minor, int revis } e_source_list_sync (calendar_component_peek_source_list (component), NULL); + + /** @Event: component.migration + * @Title: Migration step in component initialization + * @Target: ECalEventTargetComponent + * + * component.migration is emitted during the calendar component + * initialization process. This allows new calendar backend types + * to be distributed as an e-d-s backend and a plugin without + * reaching their grubby little fingers into migration.c + */ + /* Fire off migration event */ + ece = e_cal_event_peek (); + target = e_cal_event_target_new_component (ece, calendar_component_peek (), 0); + e_event_emit ((EEvent *) ece, "component.migration", (EEventTarget *) target); + retval = TRUE; fail: if (on_this_computer) |