aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-offline-handler.c
Commit message (Collapse)AuthorAgeFilesLines
* use libedataserver's e-url.Rodrigo Moya2005-01-171-1/+1
| | | | | | | | | | | | | | 2005-01-17 Rodrigo Moya <rodrigo@novell.com> * gui/calendar-component.c: * gui/calendar-offline-handler.c: * gui/comp-editor-factory.c: * gui/e-tasks.c: * gui/gnome-cal.c: * gui/misc.c: * gui/alarm-notify/alarm-notify.c: use libedataserver's e-url. svn path=/trunk/; revision=28422
* Fixes #61076JP Rosevear2004-12-221-2/+2
| | | | | | | | | | | | | | 2004-12-22 JP Rosevear <jpr@novell.com> Fixes #61076 * gui/comp-editor-factory.c (open_client): don't translate command line warnings * gui/calendar-offline-handler.c (backend_go_online): ditto (backend_go_offline): ditto svn path=/trunk/; revision=28173
* guard config.hJP Rosevear2004-10-081-1/+0
| | | | | | | | | | | | | | | | | | | | 2004-10-07 JP Rosevear <jpr@novell.com> * gui/print.c: guard config.h * gui/tasks-control.c: guard config.h, remove useless include * gui/migration.c: remove useless include * gui/main.c: remove useless include * gui/e-calendar-view.h: #define the type * gui/calendar-offline-handler.c: remove useless include * gui/calendar-config.c: tidy header svn path=/trunk/; revision=27501
* new files for managing interactive authentication with backends.Rodrigo Moya2003-12-221-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-22 Rodrigo Moya <rodrigo@ximian.com> * common/authentication.[ch]: new files for managing interactive authentication with backends. * common/Makefile.am: build new private library. * gui/alarm-notify/alarm-notify.c (alarm_notify_add_calendar): * gui/dialogs/event-page.c (source_changed_cb): * gui/dialogs/task-page.c (source_changed_cb): * gui/dialogs/copy-source-dialog.c (copy_source): * gui/calendar-component.c (setup_create_ecal): * gui/calendar-offline-handler.c (backend_go_offline, backend_go_online, calendar_offline_handler_init): * gui/comp-editor-factory.c (open_client): * gui/e-itip-control.c (start_calendar_server): * gui/e-tasks.c (e_tasks_add_todo_uri): * gui/gnome-cal.c (gnome_calendar_construct, gnome_calendar_add_event_uri): * gui/tasks-component.c (setup_create_ecal): * importers/icalendar-importer.c (load_file_fn, vcal_load_file_fn, gnome_calendar_import_data_fn): create the ECal's via the auth_new_cal_from* functions in the authentication module. * gui/alarm-notify/Makefile.am: * gui/Makefile.am: * importers/Makefile.am: link new private library. * Makefile.am: added new directory to the build. svn path=/trunk/; revision=23999
* rewrite for new ecal api, cache all ecal's by type and minimize loading.JP Rosevear2003-12-221-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* e_cal_new () -> e_cal_new_from_uri (). (backend_go_online): Ditto.Hans Petter Jansson2003-11-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-11-26 Hans Petter Jansson <hpj@ximian.com> * gui/calendar-offline-handler.c (backend_go_offline): e_cal_new () -> e_cal_new_from_uri (). (backend_go_online): Ditto. (calendar_offline_handler_init): Ditto. * gui/comp-editor-factory.c (open_client): Ditto. * gui/e-itip-control.c (start_calendar_server): Ditto. (object_requested_cb): Ditto. * gui/e-tasks.c (e_tasks_add_todo_uri): Ditto. * gui/gnome-cal.c (gnome_calendar_construct): Ditto. (gnome_calendar_add_event_uri): Ditto. * gui/alarm-notify/alarm-notify.c (alarm_notify_add_calendar): Ditto. * importers/icalendar-importer.c (load_file_fn): Ditto. (vcal_load_file_fn): Ditto. (gnome_calendar_import_data_fn): Ditto. * gui/dialogs/copy-source-dialog.c (copy_source): Pass sources to e_cal_new (). svn path=/trunk/; revision=23498
* Cleanup some ref/unref callsJP Rosevear2003-11-181-2/+2
| | | | | | | | 2003-11-17 JP Rosevear <jpr@ximian.com> * Cleanup some ref/unref calls svn path=/trunk/; revision=23412
* use a standard calendar status (backend_cal_opened_online): dittoJP Rosevear2003-11-121-4/+4
| | | | | | | | | | | | | | | | | | | | | | 2003-11-11 JP Rosevear <jpr@ximian.com> * gui/calendar-offline-handler.c (backend_cal_opened_offline): use a standard calendar status (backend_cal_opened_online): ditto * gui/alarm-notify/alarm-queue.c (cal_opened_cb): ditto * gui/gnome-cal.c (client_cal_opened_cb): ditto * gui/e-tasks.c (cal_opened_cb): ditto * gui/e-itip-control.c (default_server_started_cb): ditto * gui/e-cal-model.c (cal_opened_cb): ditto * gui/comp-editor-factory.c (cal_opened_cb): ditto svn path=/trunk/; revision=23286
* Various changes to merge in evolution-data-server reliance.JP Rosevear2003-11-071-19/+19
| | | | svn path=/trunk/; revision=23206
* Merge new-ui-branch to the trunk.Ettore Perazzoli2003-10-221-5/+13
| | | | svn path=/trunk/; revision=22965
* Merged from calendar-views-with-model branchRodrigo Moya2003-08-201-2/+0
| | | | svn path=/trunk/; revision=22308
* Chain. Prevent double unrefs. (impl_finalize): Chain.Hans Petter Jansson2003-08-141-1/+9
| | | | | | | | | | | | | | | | | | | | | 2003-08-12 Hans Petter Jansson <hpj@ximian.com> * gui/calendar-offline-handler.c (impl_dispose): Chain. Prevent double unrefs. (impl_finalize): Chain. * gui/e-alarm-list.c (finalize): Chain. * gui/e-comp-editor-registry.c (destroy): Chain. Prevent double frees. (editor_destroy_cb): Don't crash if we get the destroy signal twice. * gui/e-date-time-list.c (e_date_time_list_finalize): Chain. * gui/e-meeting-attendee.c (finalize): Chain. * gui/e-meeting-model.c (finalize): Chain. svn path=/trunk/; revision=22228
* guard against multiple destroysJP Rosevear2003-05-151-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-05-14 JP Rosevear <jpr@ximian.com> * gui/e-tasks.c (e_tasks_destroy): guard against multiple destroys * cal-client/cal-client.c (cal_client_finalize): unref the bonobo listener * gui/gnome-cal.c (gnome_calendar_destroy): guard against multiple destroy calls * gui/e-week-view.c (e_week_view_init): connect after destroy (invisible_destroyed): don't unref, its already destroyed * gui/e-day-view.c (e_day_view_init): connect after destroy (invisible_destroyed): don't unref, its already destroyed * gui/e-calendar-table.c (e_calendar_table_class_init): make sure we set the parent class (e_calendar_table_init): connect after the destroy handler runs (e_calendar_table_destroy): guard against multiple destroys (invisible_destroyed): don't unref the invisible, its already being destroyed * gui/calendar-offline-handler.c (backend_cal_set_mode): unref the client, we are done with it now (backend_cal_opened_online): ditto (impl_dispose): unref our main client * gui/calendar-commands.c (control_util_set_folder_bar_label): release/unref the shell view once we are done with it (control_util_show_settings): ditto svn path=/trunk/; revision=21180
* cast CalClient's to GObject, not GtkObject.Rodrigo Moya2003-03-051-4/+4
| | | | | | | | | 2003-03-05 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-offline-handler.c (backend_go_offline, backend_go_online): cast CalClient's to GObject, not GtkObject. svn path=/trunk/; revision=20166
* Fixes #37881JP Rosevear2003-03-051-2/+38
| | | | | | | | | | | 2003-02-11 JP Rosevear <jpr@ximian.com> Fixes #37881 * gui/e-meeting-model.c (process_section): if the attendee is the empty string, try to get the email svn path=/trunk/; revision=20161
* s/BonoboXObject/BonoboObject/Dan Winship2003-02-061-3/+3
| | | | | | | | * gui/calendar-offline-handler.c: s/BonoboXObject/BonoboObject/ * gui/comp-editor-factory.c: Likewise svn path=/trunk/; revision=19764
* Fixes some trivial, but distracting, warnings.Hans Petter Jansson2003-01-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-01-23 Hans Petter Jansson <hpj@ximian.com> Fixes some trivial, but distracting, warnings. * gui/calendar-config.c (on_timezone_set): Fix constness. * gui/e-timezone-entry.c (on_button_clicked): Fix constness. * gui/dialogs/event-page.c (contacts_changed_cb): Fix constness. * gui/dialogs/task-page.c (contacts_changed_cb): Fix constness. * gui/e-itip-control.c (start_default_server): Cast callback with G_CALLBACK (). * gui/dialogs/schedule-page.c (init_widgets): Cast callback with G_CALLBACK (). * gui/calendar-offline-handler.c (impl_dispose): Takes GObject, not GtkObject. (impl_finalize): Ditto. * gui/calendar-view.c (calendar_view_edit): Now takes parent window as second arg. * gui/e-meeting-model.c (select_names_ok_cb): Fix constness. (get_select_name_dialog): Cast callback to BonoboListenerCallbackFn. * gui/e-meeting-time-sel.c (e_meeting_time_selector_options_menu_position_callback): Add the push_in arg to arg list. This was crash-prone before. (e_meeting_time_selector_autopick_menu_position_callback): Ditto. * gui/alarm-notify/alarm-notify-dialog.c: Include e-unicode.h. svn path=/trunk/; revision=19605
* (calendar_offline_handler_class_init): GObjectified.Ettore Perazzoli2002-11-091-15/+24
| | | | | | | | | | | | | | (impl_finalize): Finalize impl. (impl_dispose): Dispose impl. (calendar_offline_handler_new): Use g_object_new(). (backend_cal_opened): use g_signal_connect() instead of gtk_signal_connect(). (backend_go_offline): Likewise. (backend_cal_opened): g_object_unref() instead of gtk_object_unref(). (backend_go_offline): Likewise. svn path=/trunk/; revision=18671
* connect to "cal_set_mode" signal before calling cal_client_set_mode. Also,Rodrigo Moya2001-12-031-7/+5
| | | | | | | | | | | | 2001-12-02 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-offline-handler.c (backend_cal_opened): connect to "cal_set_mode" signal before calling cal_client_set_mode. Also, s/cal_mode_set/cal_set_mode (backend_go_offline): connect to "cal_opened" signal before calling cal_client_open_calendar svn path=/trunk/; revision=14848
* Fixing the license text.Ettore Perazzoli2001-10-281-1/+0
| | | | svn path=/trunk/; revision=14211
* Update the licensing information to require version 2 of the GPLEttore Perazzoli2001-10-271-2/+2
| | | | | | (instead of version 2 or any later version). svn path=/trunk/; revision=14190
* fix logic checksJP Rosevear2001-10-101-3/+9
| | | | | | | | | | | | | | | | | | | | | 2001-10-10 JP Rosevear <jpr@ximian.com> * pcs/cal-factory.c (add_uri): fix logic checks * gui/dialogs/event-editor.c (event_editor_init): init the exisiting_org boolean (set_menu_sens): base sensitivity on existing_org boolean (event_editor_edit_comp): set exisiting_org boolean * gui/dialogs/task-editor.c: same as above * gui/calendar-offline-handler.c (add_connection): handle the protocol or host being unknown * cal-util/cal-component.c (cal_component_has_organizer): implement svn path=/trunk/; revision=13552
* replace use of gnome_vfs_uri with e_uriRodrigo Moya2001-10-041-9/+6
| | | | | | | | | | | | | | | | | | | | | | | 2001-10-03 Rodrigo Moya <rodrigo@ximian.com> * gui/component-factory.c: * gui/calendar-offline-handler.c: * gui/comp-editor-factory.c: replace use of gnome_vfs_uri with e_uri * gui/e-meeting-model.c (start_addressbook_server): make it return void, since the return value does not mind * pcs/cal.c: * pcs/cal-factory.c: * pcs/cal-backend.[ch]: don't use GnomeVFS for URI management * pcs/cal-backend-file.c: ditto, only use GnomeVFS for internal operations * cal-client/cal-client.c (cal_client_open_calendar): don't CORBA_exception_free before checking for exceptions svn path=/trunk/; revision=13380
* new protoJP Rosevear2001-09-261-10/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-26 JP Rosevear <jpr@ximian.com> * pcs/cal.h: new proto * pcs/cal.c (impl_Cal_set_mode): implement set mode method (cal_class_init): set setMode function in epv (cal_notify_mode): notify listener of mode change * pcs/cal-factory.c (add_uri): deal with UriType renaming * pcs/cal-backend.h: add new virtual methods and protos * pcs/cal-backend.c (cal_backend_class_init): init new virtual methods to null (cal_backend_set_mode): sets mode (cal_backend_get_mode): gets mode * pcs/cal-backend-file.c (cal_backend_file_class_init): overide get_mode and set_mode methods (cal_backend_file_get_mode): return mode (notify_mode): have listeners notified of the set mode call (cal_backend_file_set_mode): set the mode by indicating not supported * cal-client/cal-listener.h: update proto * cal-client/cal-listener.c (impl_notifyCalSetMode): implement set mode callback (cal_listener_construct): take set mode callback (cal_listener_new): ditto * cal-client/cal-client.h: update protos, add signal proto * cal-client/cal-client.c (cal_client_class_init): add cal_set_mode signal (cal_set_mode_cb): handle set mode callback from listener (cal_client_open_calendar): pass additional param to cal_listener_new (cal_client_set_mode): wrapper to set the calendar mode * idl/evolution-calendar.idl: make UriType into CalMode, add SetModeStatus enum and notifyCalSetMode method to the listener * gui/calendar-offline-handler.c (create_connection_list): fetch the uri list ourselves (impl_prepareForOffline): reflect param change of create_connect_list (update_offline): ditto (backend_cal_set_mode): set mode call back (backend_cal_opened): cal opened call back, set mode to local (impl_goOffline): reflect UriType renaming * cal-util/cal-util.h: rename UriType to CalMode svn path=/trunk/; revision=13142
* use bonobo-exception stuff to clean codeJP Rosevear2001-09-261-0/+267
2001-09-25 JP Rosevear <jpr@ximian.com> * pcs/cal.c: use bonobo-exception stuff to clean code * pcs/cal-factory.c (add_uri): add uri to the list if the type matches (impl_CalFactory_uriList): implement uriList method * pcs/cal-backend.h: new virtual function member * pcs/cal-backend.c (cal_backend_is_remote): call virtual function * pcs/cal-backend-file.c (cal_backend_file_class_init): override virtual function (cal_backend_file_is_remote): new virtual function, always return FALSE * idl/evolution-calendar.idl: uriList factory call, with flags for types to get * gui/dialogs/comp-editor.c (comp_editor_destroy): cast to remove warning * gui/e-itip-control.c (write_label_piece): kill warnings by take const char * * gui/component-factory.c (create_object): aggregate offline interface * gui/Makefile.am: compile new files * calobj.[hc]: Remove obsolete files * cal-util/cal-util.h: enum URI types for uriList call * cal-client/cal-client.c (build_uri_list): build list from string sequence (cal_client_uri_list): factory call to get uri list * cal-client/cal-client.h: new proto * cal-client/cal-client.c: use bonobo exception stuff to clean code * gui/calendar-offline-handler.[hc]: Start some skeleton routines for online/offline handling * pcs/cal-factory.c (launch_backend_for_uri): use accessor and remove FIXME svn path=/trunk/; revision=13110