diff options
author | Milan Crha <mcrha@redhat.com> | 2011-06-14 14:54:20 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-06-14 14:54:20 +0800 |
commit | 38790d8478e906a5c59d0c4a5216f297f305bfeb (patch) | |
tree | 0f9a96db2765901f2a27b68c84815a491214ecc1 /plugins/default-source | |
parent | 08af0d1f81a4e983bb49d8fb8fe74e670adbb8f6 (diff) | |
download | gsoc2013-evolution-38790d8478e906a5c59d0c4a5216f297f305bfeb.tar gsoc2013-evolution-38790d8478e906a5c59d0c4a5216f297f305bfeb.tar.gz gsoc2013-evolution-38790d8478e906a5c59d0c4a5216f297f305bfeb.tar.bz2 gsoc2013-evolution-38790d8478e906a5c59d0c4a5216f297f305bfeb.tar.lz gsoc2013-evolution-38790d8478e906a5c59d0c4a5216f297f305bfeb.tar.xz gsoc2013-evolution-38790d8478e906a5c59d0c4a5216f297f305bfeb.tar.zst gsoc2013-evolution-38790d8478e906a5c59d0c4a5216f297f305bfeb.zip |
Do not use deprecated EBook/ECal API
Diffstat (limited to 'plugins/default-source')
-rw-r--r-- | plugins/default-source/default-source.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/default-source/default-source.c b/plugins/default-source/default-source.c index 770dc25852..02a0d42baa 100644 --- a/plugins/default-source/default-source.c +++ b/plugins/default-source/default-source.c @@ -30,8 +30,8 @@ #include <calendar/gui/e-cal-config.h> #include <libedataserver/e-source.h> #include <addressbook/gui/widgets/eab-config.h> -#include <libebook/e-book.h> -#include <libecal/e-cal.h> +#include <libebook/e-book-client.h> +#include <libecal/e-cal-client.h> #include <glib/gi18n.h> #include <string.h> @@ -58,7 +58,7 @@ commit_default_calendar (EPlugin *epl, EConfigTarget *target) cal_target = (ECalConfigTargetSource *) target; source = cal_target->source; if (e_source_get_property (source, "default")) - e_cal_set_default_source (source, cal_target->source_type, NULL); + e_cal_client_set_default_source (source, cal_target->source_type, NULL); } void @@ -70,7 +70,7 @@ commit_default_book (EPlugin *epl, EConfigTarget *target) book_target = (EABConfigTargetSource *) target; source = book_target->source; if (e_source_get_property (source, "default")) - e_book_set_default_source (source, NULL); + e_book_client_set_default_source (source, NULL); } @@ -101,14 +101,14 @@ org_gnome_autocomplete_book (EPlugin *epl, EConfigHookItemFactoryData *data) } static const gchar * -get_calendar_option_caption (ECalSourceType source_type) +get_calendar_option_caption (ECalClientSourceType source_type) { const gchar *res = "???"; switch (source_type) { - case E_CAL_SOURCE_TYPE_EVENT: res = _("Mark as _default calendar"); break; - case E_CAL_SOURCE_TYPE_TODO: res = _("Mark as _default task list"); break; - case E_CAL_SOURCE_TYPE_JOURNAL: res = _("Mark as _default memo list"); break; + case E_CAL_CLIENT_SOURCE_TYPE_EVENTS: res = _("Mark as _default calendar"); break; + case E_CAL_CLIENT_SOURCE_TYPE_TASKS: res = _("Mark as _default task list"); break; + case E_CAL_CLIENT_SOURCE_TYPE_MEMOS: res = _("Mark as _default memo list"); break; default: break; } |