diff options
author | JP Rosevear <jpr@ximian.com> | 2003-12-22 01:05:24 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2003-12-22 01:05:24 +0800 |
commit | 093937a09306fc4f6f2cfb730d5e58c8b7d39e25 (patch) | |
tree | 6459a5ed73bbe03e319500dbe3e0950c7386d152 /calendar/gui/dialogs | |
parent | ffc6f6edaa26c5764bb91b780e7344440d3d22be (diff) | |
download | gsoc2013-evolution-093937a09306fc4f6f2cfb730d5e58c8b7d39e25.tar gsoc2013-evolution-093937a09306fc4f6f2cfb730d5e58c8b7d39e25.tar.gz gsoc2013-evolution-093937a09306fc4f6f2cfb730d5e58c8b7d39e25.tar.bz2 gsoc2013-evolution-093937a09306fc4f6f2cfb730d5e58c8b7d39e25.tar.lz gsoc2013-evolution-093937a09306fc4f6f2cfb730d5e58c8b7d39e25.tar.xz gsoc2013-evolution-093937a09306fc4f6f2cfb730d5e58c8b7d39e25.tar.zst gsoc2013-evolution-093937a09306fc4f6f2cfb730d5e58c8b7d39e25.zip |
rewrite for new ecal api, cache all ecal's by type and minimize loading.
2003-12-21 JP Rosevear <jpr@ximian.com>
* gui/e-itip-control.[hc]: rewrite for new ecal api, cache all
ecal's by type and minimize loading. Switch to using the source
option menu
* conduits/todo/todo-conduit.c (start_calendar_server): ditto
* conduits/calendar/calendar-conduit.c (start_calendar_server):
use ECalSourceType
* importers/icalendar-importer.c (load_file_fn): ditto
(vcal_load_file_fn): ditto
(gnome_calendar_import_data_fn): ditto
* gui/dialogs/task-page.c (source_changed_cb): ditto
* gui/dialogs/event-page.c (source_changed_cb): ditto
* gui/dialogs/copy-source-dialog.h: update proto
* gui/dialogs/copy-source-dialog.c (copy_source_dialog): ditto
* gui/alarm-notify/alarm-notify.c (alarm_notify_add_calendar): ditto
* gui/tasks-component.c (copy_task_list_cb): ditto
(setup_create_ecal): ditto
* gui/gnome-cal.c (gnome_calendar_construct): ditto
(gnome_calendar_add_event_uri): ditto
* gui/e-tasks.c (e_tasks_add_todo_uri): ditto
* gui/comp-editor-factory.c (open_client): ditto
* gui/calendar-offline-handler.c (backend_go_offline): ditto
(backend_go_online): ditto
(calendar_offline_handler_init): ditto
* gui/calendar-component.c (copy_calendar_cb): ditto
(setup_create_ecal): ditto
* gui/print.c (print_month_small): don't pass type to
e_cal_generate_instances
(print_day_details): ditto
(print_week_summary): ditto
* gui/tag-calendar.c (tag_calendar_by_client): ditto
svn path=/trunk/; revision=23994
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/copy-source-dialog.c | 8 | ||||
-rw-r--r-- | calendar/gui/dialogs/copy-source-dialog.h | 2 | ||||
-rw-r--r-- | calendar/gui/dialogs/event-page.c | 2 | ||||
-rw-r--r-- | calendar/gui/dialogs/task-page.c | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/calendar/gui/dialogs/copy-source-dialog.c b/calendar/gui/dialogs/copy-source-dialog.c index 11b523a1f8..1dc440d0ec 100644 --- a/calendar/gui/dialogs/copy-source-dialog.c +++ b/calendar/gui/dialogs/copy-source-dialog.c @@ -32,7 +32,7 @@ typedef struct { ESourceList *source_list; GConfClient *conf_client; ESource *orig_source; - CalObjType obj_type; + ECalSourceType obj_type; ESource *selected_source; } CopySourceDialogData; @@ -111,7 +111,7 @@ copy_source (CopySourceDialogData *csdd) * source to copy to. */ gboolean -copy_source_dialog (GtkWindow *parent, ESource *source, CalObjType obj_type) +copy_source_dialog (GtkWindow *parent, ESource *source, ECalSourceType obj_type) { CopySourceDialogData csdd; gboolean result = FALSE; @@ -120,9 +120,9 @@ copy_source_dialog (GtkWindow *parent, ESource *source, CalObjType obj_type) g_return_val_if_fail (E_IS_SOURCE (source), FALSE); - if (obj_type == CALOBJ_TYPE_EVENT) + if (obj_type == E_CAL_SOURCE_TYPE_EVENT) gconf_key = "/apps/evolution/calendar/sources"; - else if (obj_type == CALOBJ_TYPE_TODO) + else if (obj_type == E_CAL_SOURCE_TYPE_TODO) gconf_key = "/apps/evolution/tasks/sources"; else return FALSE; diff --git a/calendar/gui/dialogs/copy-source-dialog.h b/calendar/gui/dialogs/copy-source-dialog.h index e3c750d8a0..597b1f25fc 100644 --- a/calendar/gui/dialogs/copy-source-dialog.h +++ b/calendar/gui/dialogs/copy-source-dialog.h @@ -26,6 +26,6 @@ #include <libecal/e-cal.h> #include <libecal/e-cal-util.h> -gboolean copy_source_dialog (GtkWindow *parent, ESource *source, CalObjType obj_type); +gboolean copy_source_dialog (GtkWindow *parent, ESource *source, ECalSourceType type); #endif diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c index c8b90f6d81..9a6b9c25ba 100644 --- a/calendar/gui/dialogs/event-page.c +++ b/calendar/gui/dialogs/event-page.c @@ -1212,7 +1212,7 @@ source_changed_cb (GtkWidget *widget, ESource *source, gpointer data) if (!priv->updating) { ECal *client; - client = e_cal_new (source, CALOBJ_TYPE_EVENT); + client = e_cal_new (source, E_CAL_SOURCE_TYPE_EVENT); if (!client || !e_cal_open (client, FALSE, NULL)) { GtkWidget *dialog; diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c index e2be632847..69bad550cc 100644 --- a/calendar/gui/dialogs/task-page.c +++ b/calendar/gui/dialogs/task-page.c @@ -794,7 +794,7 @@ source_changed_cb (GtkWidget *widget, ESource *source, gpointer data) if (!priv->updating) { ECal *client; - client = e_cal_new (source, CALOBJ_TYPE_TODO); + client = e_cal_new (source, E_CAL_SOURCE_TYPE_TODO); if (!client || !e_cal_open (client, FALSE, NULL)) { GtkWidget *dialog; |