aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
Commit message (Collapse)AuthorAgeFilesLines
* use libxml2 headers.Rodrigo Moya2002-11-0514-94/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-05 Rodrigo Moya <rodrigo@ximian.com> * pcs/cal-backend.c: use libxml2 headers. * gui/alarm-notify/Makefile.am: * gui/dialogs/Makefile.am: * gui/Makefile.am: s/XML_I18N/INTLTOOL. Fixed execution of $(ORBIT_IDL). * gui/alarm-notify/alarm-notify.[ch]: converted to BonoboObject. * gui/alarm-notify/alarm-notify-dialog.c: compilation fixes. (alarm_notify_dialog): adapted to new glade_xml_new signature. * gui/alarm-notify/alarm-queue.c: ported to BonoboActivation and GtkStock and GtkDialog. * gui/alarm-notify/notify-main.c: ported to BonoboActivation and use GObject functions instead of GtkObject ones. * gui/alarm-notify/save.h: removed BonoboConfig related functions. * gui/alarm-notify/config-data.c: use GObject functions instead of GtkObject ones. * TODO.port: added file for keeping track of disabled things while we port. svn path=/trunk/; revision=18550
* added new marshallers.Rodrigo Moya2002-11-0513-285/+274
| | | | | | | | | | | | | | | | | | | | | 2002-11-04 Rodrigo Moya <rodrigo@ximian.com> * cal-util/cal-util-marshal.list: added new marshallers. * cal-client/cal-client.c (get_objects_atomically): fixed calls to g_signal_handler_disconnect_by_func. (cal_client_class_init): fixed typos. * cal-client/cal-client-multi.[ch]: * cal-client/cal-client-types.c: * cal-client/cal-query.[ch]: ported to GObject. * cal-client/cal-listener.[ch]: converted to BonoboObject. * cal-client/Makefile.am: * pcs/Makefile.am: fixed flags for orbit-idl svn path=/trunk/; revision=18547
* added marshallers.Rodrigo Moya2002-11-056-147/+180
| | | | | | | | | | | 2002-11-04 Rodrigo Moya <rodrigo@ximian.com> * cal-util/Makefile.am: * cal-util/cal-util-marshal.list: added marshallers. * cal-client/cal-client.[ch]: ported to GObject. svn path=/trunk/; revision=18532
* ported to GObject.Rodrigo Moya2002-11-044-39/+45
| | | | | | | | | | | 2002-11-04 Rodrigo Moya <rodrigo@ximian.com> * cal-util/cal-component.[ch]: ported to GObject. * cal-util/cal-util.c (cal_util_generate_alarms_for_comp): use g_object_* instead of gtk_object_*. svn path=/trunk/; revision=18525
* use EConfigListener instead of BonoboConfig.Rodrigo Moya2002-11-046-32/+30
| | | | | | | | | | | | | 2002-11-03 Rodrigo Moya <rodrigo@ximian.com> * cal-client/cal-client.c (get_default_uri): use EConfigListener instead of BonoboConfig. * cal-client/cal-client.c: * cal-client/cal-listener.[ch]: * cal-client/query-listener.c: warning free. svn path=/trunk/; revision=18517
* don't use BonoboConfig, but EConfigListener.Rodrigo Moya2002-11-044-72/+83
| | | | | | | | | | | | 2002-11-03 Rodrigo Moya <rodrigo@ximian.com> * pcs/cal-backend-util.[ch]: don't use BonoboConfig, but EConfigListener. * gui/calendar-config.c: use /apps/Evolution prefix for all configuration keys. svn path=/trunk/; revision=18515
* cal-client/cal-listener.hRodrigo Moya2002-11-0228-97/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-10-31 Rodrigo Moya <rodrigo@ximian.com> * cal-util/cal-component.[ch]: * cal-util/cal-recur.h: * cal-util/cal-util.[ch]: * cal-client/cal-client.h: * cal-client/cal-client-multi.h: * cal-client/cal-client-types.[ch]: * cal-client/cal-listener.h * cal-client/cal-query.[ch]: * cal-client/query-listener.h: * pcs/cal.h: * pcs/cal-backend.[ch]: * pcs/cal-backend-file.h: * pcs/cal-backend-util.h: * pcs/cal-common.h: * pcs/cal-factory.h: * pcs/query.[ch]: * pcs/query-backend.[ch]: started GNOME 2 porting. cal-util, cal-client and pcs compiled ok. * cal-client/cal-client.c (cal_client_construct): * pcs/cal-factory.c: use b-a instead of OAF and bonobo-config instead of bonobo-conf. svn path=/trunk/; revision=18496
* cleaned up the status bar messages for all widgets.Rodrigo Moya2002-10-302-0/+11
| | | | | | | | | 2002-10-29 Rodrigo Moya <rodrigo@ximian.com> * gui/gnome-cal.c (backend_died_cb): cleaned up the status bar messages for all widgets. svn path=/trunk/; revision=18467
* Update with bug numbers.JP Rosevear2002-10-261-1/+7
| | | | svn path=/trunk/; revision=18441
* initialize new values (clean_up): free new values (find_my_address): if weJP Rosevear2002-10-244-10/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-10-24 JP Rosevear <jpr@ximian.com> * gui/e-itip-control.c (init): initialize new values (clean_up): free new values (find_my_address): if we have a delegator address, use it instead (write_html): display delegator info to user (show_current_event): if we have a calendar uri, use that and describe the event differently (show_current_todo): ditto (show_current): search for delegator X properties (e_itip_control_set_delegator_address): accessor (e_itip_control_get_delegator_address): ditto (e_itip_control_set_delegator_name): ditto (e_itip_control_get_delegator_name): ditto (e_itip_control_set_calendar_uri): ditto (e_itip_control_get_calendar_uri): ditto * gui/e-itip-control.h: add protos * gui/itip-utils.c (comp_from): use the first attendee as the from address for things other than request, cancel and add (use organizer) and publish (use default address) svn path=/trunk/; revision=18425
* Fixes #32613Rodrigo Moya2002-10-233-20/+58
| | | | | | | | | | | | 2002-10-23 Rodrigo Moya <rodrigo@ximian.com> Fixes #32613 * gui/component-factory.c (sc_user_create_new_item_cb): use the default calendar/tasks folder to activate the component editor. (get_data_uri): deal correctly with the URIs being used. svn path=/trunk/; revision=18415
* fix warningJP Rosevear2002-10-232-2/+7
| | | | | | | | 2002-10-23 JP Rosevear <jpr@ximian.com> * gui/e-itip-control.c (show_current): fix warning svn path=/trunk/; revision=18414
* Fixes #32371Rodrigo Moya2002-10-232-3/+12
| | | | | | | | | | | 2002-10-22 Rodrigo Moya <rodrigo@ximian.com> Fixes #32371 * pcs/query.c (start_cached_query_cb): CORBA_exception_init the CORBA_Environment before using it. svn path=/trunk/; revision=18413
* use NULL for pointer instead of FALSE.Rodrigo Moya2002-10-232-1/+6
| | | | | | | | | 2002-10-22 Rodrigo Moya <rodrigo@ximian.com> * pcs/cal-factory.c (lookup_backend): use NULL for pointer instead of FALSE. svn path=/trunk/; revision=18411
* use e_config_listener_* to get values (itip_addresses_get): dittoJP Rosevear2002-10-233-37/+29
| | | | | | | | | | | | | | | | 2002-10-22 JP Rosevear <jpr@ximian.com> * gui/itip-utils.c (get_address): use e_config_listener_* to get values (itip_addresses_get): ditto (itip_addresses_get_default): ditto * gui/calendar-model.c (calendar_model_value_to_string): don't send back a null string (affects if it is the group header) (calendar_model_init): pre load config database info so we don't do corba calls during draws svn path=/trunk/; revision=18410
* fix c/p typeJP Rosevear2002-10-182-1/+5
| | | | | | | | 2002-10-17 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.c (gnome_calendar_construct): fix c/p type svn path=/trunk/; revision=18390
* if the value is a datetime, convert it to a dateJP Rosevear2002-10-185-2/+259
| | | | | | | | | | | | | | | | | | 2002-10-17 JP Rosevear <jpr@ximian.com> * gui/dialogs/recurrence-page.c (fill_ending_date): if the value is a datetime, convert it to a date * gui/itip-utils.c (comp_compliant): convert an UNTIL date value to a datetime value * cal-util/cal-component.c (cal_component_has_simple_recurrence): check to see if the component recurrences meet our definition of "simple" * cal-util/cal-component.h: new proto svn path=/trunk/; revision=18389
* changed to have a gboolean return type, which is what it's supposed to do.Rodrigo Moya2002-10-183-7/+16
| | | | | | | | | | | | | 2002-10-17 Rodrigo Moya <rodrigo@ximian.com> * gui/dialogs/recurrence-page.c (fill_component): changed to have a gboolean return type, which is what it's supposed to do. (recurrence_page_fill_component): return the result from fill_component. * gui/dialogs/comp-editor-page.h: fixed typo in function prototype. svn path=/trunk/; revision=18387
* try to preserve the work week view setting if it makes sense (set_view):JP Rosevear2002-10-162-3/+22
| | | | | | | | | | | | 2002-10-11 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.c (gnome_calendar_on_date_navigator_selection_changed): try to preserve the work week view setting if it makes sense (set_view): don't update the info again based on our view change call svn path=/trunk/; revision=18369
* Fixes #11434Rodrigo Moya2002-10-098-0/+102
| | | | | | | | | | | | | | | | | | | | | 2002-10-08 Rodrigo Moya <rodrigo@ximian.com> Fixes #11434 * gui/dialogs/comp-editor-page.[ch] (comp_editor_page_display_validation_error): new function. * gui/dialogs/event-page.c (event_page_fill_component): * gui/dialogs/recurrence-page.c (fill_component): * gui/dialogs/task-details-page.c (task_details_page_fill_component): * gui/dialogs/task-page.c (task_page_fill_component): added checks for all date values, and return FALSE if we find some invalid date/times. * gui/dialogs/comp-editor.c (save_comp): activate the page that returns error in fill_component. svn path=/trunk/; revision=18352
* set the 24 hour format initiallyJP Rosevear2002-10-094-55/+15
| | | | | | | | | | | | | | | | 2002-10-08 JP Rosevear <jpr@ximian.com> * gui/dialogs/cal-prefs-dialog.c (cal_prefs_dialog_create_time_edit): set the 24 hour format initially 2002-10-08 JP Rosevear <jpr@ximian.com> * gui/e-week-view.c: remove pilot settings from contextual menu * gui/e-day-view.c: ditto svn path=/trunk/; revision=18351
* Fixes #31774Rodrigo Moya2002-10-082-2/+9
| | | | | | | | | | | 2002-10-07 Rodrigo Moya <rodrigo@ximian.com> Fixes #31774 * gui/dialogs/alarm-options.c (dalarm_widgets_to_alarm, palarm_widgets_to_alarm): use correct pointer in loop. svn path=/trunk/; revision=18346
* cast the correct itemJP Rosevear2002-10-082-1/+6
| | | | | | | | | 2002-10-07 JP Rosevear <jpr@ximian.com> * gui/dialogs/cal-prefs-dialog.c (setup_changes): cast the correct item svn path=/trunk/; revision=18345
* Fixes crash in #19159Rodrigo Moya2002-10-072-7/+23
| | | | | | | | | | | | | | 2002-10-07 Rodrigo Moya <rodrigo@ximian.com> Fixes crash in #19159 * gui/alarm-notify/alarm-queue.c (lookup_queued_alarm): don't crash if we don't find the queued alarm in the internal list. (alarm_trigger_cb, create_snooze, display_notification, audio_notification, procedure_notification, remove_queued_alarm): check return value from lookup_queued_alarm. svn path=/trunk/; revision=18331
* Fixes #15892Rodrigo Moya2002-10-0711-26/+222
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-10-04 Rodrigo Moya <rodrigo@ximian.com> Fixes #15892 * idl/evolution-calendar.idl: added notifyErrorOccurred method to the Listener interface, so that backends can notify clients of errors that can't be reported otherwise. * pcs/cal.[ch] (cal_notify_error): new function. * pcs/cal-backend-file.c (save): made to save to temporary file and then moved to the correct file, so that we don't lose any data if there's a problem while saving. (notify_error): new function for notifying error messages to clients. * cal-client/cal-listener.[ch]: added new callback function for getting error messages from backends. (impl_notifyErrorOccurred): new method implementation. (cal_listener_class_init): initialize new epv member. (cal_listener_init, cal_listener_destroy, cal_listener_construct, cal_listener_new): initialize new function pointer. * cal-client/cal-client.[ch]: adapted to changes in CalListener class. (cal_client_class_init): added "backend_error" signal to CalClient class. (backend_error_cb): callback for "error_occurred" signal on the CalListener, which just emits the "backend_error" signal of CalClient. * gui/gnome-cal.c (gnome_calendar_construct): connect to "backend_error" signal on the CalClient's we create. (backend_error_cb): display error message on error from backend. * gui/e-tasks.c: likewise. svn path=/trunk/; revision=18329
* removed unneeded g_assert which was preventing the alarm daemon to startRodrigo Moya2002-10-032-2/+6
| | | | | | | | | | 2002-10-02 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/notify-main.c (alarm_notify_factory_fn): removed unneeded g_assert which was preventing the alarm daemon to start correctly in some cases. svn path=/trunk/; revision=18317
* Fixes #30057Rodrigo Moya2002-10-039-42/+106
| | | | | | | | | | | | | | | | | | | | | 2002-10-02 Rodrigo Moya <rodrigo@ximian.com> Fixes #30057 * cal-client/cal-client.c (cal_client_is_read_only): added check of the status of the client before trying to make CORBA calls. * gui/calendar-commands.c (sensitize_calendar_commands, sensitize_taskpad_commands): * gui/tasks-control.c (sensitize_commands): * gui/dialogs/event-editor.c (set_menu_sens): * gui/dialogs/task-editor.c (set_menu_sens): * gui/e-calendar-table.c (e_calendar_table_on_right_click): * gui/e-day-view.c (e_day_view_on_event_right_click): * gui/e-week-view.c (e_week_view_show_popup_menu): take into account the read-onlyness of clients to disable/enable menu items. svn path=/trunk/; revision=18316
* added isReadOnly method to Cal interface.Rodrigo Moya2002-10-028-1/+103
| | | | | | | | | | | | | | | | | | | 2002-10-01 Rodrigo Moya <rodrigo@ximian.com> * idl/evolution-calendar.idl: added isReadOnly method to Cal interface. * pcs/cal.c (impl_Cal_is_read_only): new method implementation. * pcs/cal-backend.[ch]: added is_read_only method to CalBackend class. (cal_backend_is_read_only): new function. * pcs/cal-backend-file.c (cal_backend_file_is_read_only): new method. (cal_backend_file_class_init): set new signal's virtual method. * cal-client/cal-client.[ch] (cal_client_is_read_only): new function. svn path=/trunk/; revision=18282
* Fixes #15710Rodrigo Moya2002-10-013-1/+60
| | | | | | | | | | | | | | | | | 2002-10-01 Rodrigo Moya <rodrigo@ximian.com> Fixes #15710 * gui/dialogs/alarm-page.c (alarm_page_init): added a X-EVOLUTION-NEEDS-DESCRIPTION property, so that we later set it correctly if it hasn't been set in the meanwhile (editing options for the alarm). * gui/dialogs/alarm-options.c (dalarm_widgets_to_alarm, palarm_widgets_to_alarm): removed X-EVOLUTION-NEEDS-DESCRIPTION property from alarms every time we set the description of the alarm. svn path=/trunk/; revision=18277
* Fixes #30290Rodrigo Moya2002-10-012-3/+9
| | | | | | | | | | | 2002-10-01 Rodrigo Moya <rodrigo@ximian.com> Fixes #30290 * importers/icalendar-importer.c (process_item_fn): return a status of BUSY rather than NOT_READY, to avoid the display of the error message. svn path=/trunk/; revision=18276
* load multi_day_split (calconduit_save_configuration): save itJP Rosevear2002-10-012-4/+95
| | | | | | | | | | | | | | | | | | | | | | 2002-09-30 JP Rosevear <jpr@ximian.com> * conduits/calendar/calendar-conduit.c (calconduit_load_configuration): load multi_day_split (calconduit_save_configuration): save it (calconduit_dupe_configuration): copy it (e_cal_gui_new): create gui for it (e_cal_gui_fill_widgets): fill gui with value (e_cal_gui_fill_config): get value from gui and store in config (e_calendar_context_destroy): destroy new_cfg and gui properly (process_multi_day): skip item if its multi-day and we don't want to split (fill_widgets): fill local config widgets (create_settings_window): create local config widgets (save_settings): fill config from local widgets Fixes #23763 svn path=/trunk/; revision=18269
* It's a grand old string-review! Nitpicky and minor changes; details in the ↵Aaron Weber2002-10-013-3/+10
| | | | | | appropriate ChangeLog files. svn path=/trunk/; revision=18268
* Remove "/Toolbar/New" and "/Toolbar/NewTask" since they're not there anyDan Winship2002-09-282-2/+6
| | | | | | | | * gui/calendar-commands.c (pixmaps): Remove "/Toolbar/New" and "/Toolbar/NewTask" since they're not there any more. Kills some bonobo-ui spewage. svn path=/trunk/; revision=18254
* Non-Connector part of #29334 (meeting created by a delegate in theDan Winship2002-09-2819-45/+274
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | delegator's calendar should have the delegator as Organizer). * idl/evolution-calendar.idl: add Cal_getEmailAddress, to return the email address associated with a backend (if any). * pcs/cal-backend.c (cal_backend_get_email_address): New. * pcs/cal-backend-file.c (cal_backend_file_get_email_address): Return NULL (for now). * pcs/cal.c (impl_Cal_get_email_address): Implement this by calling cal_backend_get_email_address and returning a NotFound exception if it returns NULL. * cal-client/cal-client.c (cal_client_get_email_address): New. (cal_client_init, cal_client_destroy, etc): initialize/free email_address * gui/dialogs/event-editor.c (event_editor_construct): Split this out of event_editor_init. Take and set a CalClient. (event_editor_new): Take a CalClient. * gui/dialogs/task-editor.c (task_editor_construct, task_editor_new): Likewise. * gui/dialogs/meeting-page.c (meeting_page_new, meeting_page_construct): Take a CalClient and call cal_client_get_email_address to find the default organizer address. (Also fix a bug if the default account's name has non-ASCII characters.) * gui/itip-utils.c (comp_from): New. When sending a REQUEST or CANCEL, use the Organizer as the From address. (itip_send_comp): Call comp_from and pass the result to Composer_setHeaders. * gui/comp-editor-factory.c (edit_existing, edit_new): Pass the CalClient to event_editor_new/task_editor_new * gui/e-calendar-table.c (open_task): Likewise. * gui/e-tasks.c (e_tasks_new_task): Likewise. * gui/gnome-cal.c (gnome_calendar_edit_object, gnome_calendar_new_task): Likewise. svn path=/trunk/; revision=18253
* only change the attendee value if it isn't emptyJP Rosevear2002-09-272-1/+7
| | | | | | | | | 2002-09-26 JP Rosevear <jpr@ximian.com> * gui/e-meeting-model.c (set_value_at): only change the attendee value if it isn't empty svn path=/trunk/; revision=18234
* Should fix once for all #24210Rodrigo Moya2002-09-266-29/+80
| | | | | | | | | | | | | | | | | | | | | | 2002-09-26 Rodrigo Moya <rodrigo@ximian.com> Should fix once for all #24210 * idl/evolution-calendar.idl: changed the notifyObjUpdated method of the QueryListener interface accept a list of UIDs. * cal-client/query-listener.[ch] (impl_notifyObjUpdated): likewise for the QueryListener class. * cal-client/cal-query.c (obj_updated_cb): changed to adapt the multiple-id's received in the QueryListener class' signal to the one-by-one update notification of the public CalQuery class, thus keeping the changes needed for this minimal. * pcs/query.c (add_component, start_cached_query_cb): changed to send sequences of UIDs. svn path=/trunk/; revision=18232
* Add "calendar/public" and "tasks/public". (type_is_calendar,Dan Winship2002-09-265-38/+110
| | | | | | | | | | | | | | | | | * gui/component-factory.c (folder_types): Add "calendar/public" and "tasks/public". (type_is_calendar, type_is_tasks): New utility functions (create_view, create_folder, remove_folder, xfer_folder, sc_user_create_new_item_cb): Use type_is_calendar/type_is_tasks * importers/icalendar-importer.c (get_uri_from_folder_path): allow importing into public calendar/task folders too. * gui/e-itip-control.c: Note that it's intentional that we use "calendar" and "tasks" here instead of "calendar/*" and "tasks/*". (31032) svn path=/trunk/; revision=18222
* if the item being sent is not a meeting, send it as a mixed item with aJP Rosevear2002-09-262-7/+105
| | | | | | | | | | | | 2002-09-25 JP Rosevear <jpr@ximian.com> * gui/itip-utils.c (itip_send_comp): if the item being sent is not a meeting, send it as a mixed item with a description and the calendar text in an attachment Fixes #30638 svn path=/trunk/; revision=18215
* Fixes #27961Rodrigo Moya2002-09-252-0/+12
| | | | | | | | | | | 2002-09-25 Rodrigo Moya <rodrigo@ximian.com> Fixes #27961 * pcs/cal-backend-file.c (cal_backend_file_update_object): set the LAST-MODIFIED time of the components when we save them. svn path=/trunk/; revision=18213
* return a builtin timezone if we don't find the timezone in our component.Rodrigo Moya2002-09-252-7/+22
| | | | | | | | | | 2002-09-24 Rodrigo Moya <rodrigo@ximian.com> * pcs/cal-backend-file.c (cal_backend_file_get_timezone_object, cal_backend_file_get_timezone): return a builtin timezone if we don't find the timezone in our component. svn path=/trunk/; revision=18202
* make sure the start/end for no time palm events are DATE values, tidy codeJP Rosevear2002-09-242-13/+24
| | | | | | | | | | 2002-09-24 JP Rosevear <jpr@ximian.com> * conduits/calendar/calendar-conduit.c (comp_from_remote_record): make sure the start/end for no time palm events are DATE values, tidy code slightly svn path=/trunk/; revision=18199
* convert to date values if the original start and end were both datesJP Rosevear2002-09-242-2/+12
| | | | | | | | | | 2002-09-24 JP Rosevear <jpr@ximian.com> * conduits/calendar/calendar-conduit.c (process_multi_day): convert to date values if the original start and end were both dates svn path=/trunk/; revision=18198
* unref the query since now the query object on the server keeps a copy ofRodrigo Moya2002-09-242-1/+6
| | | | | | | | | | 2002-09-24 Rodrigo Moya <rodrigo@ximian.com> * cal-client/cal-query.c (cal_query_destroy): unref the query since now the query object on the server keeps a copy of it and must know when the listener is no longer valid. svn path=/trunk/; revision=18196
* unref the QueryListener object. (query_construct): create anRodrigo Moya2002-09-242-1/+24
| | | | | | | | | | 2002-09-24 Rodrigo Moya <rodrigo@ximian.com> * pcs/query.c (listener_died_cb): unref the QueryListener object. (query_construct): create an EComponentListener for the non-cached queries' listeners also. svn path=/trunk/; revision=18195
* add libeutil to the linkJP Rosevear2002-09-243-0/+10
| | | | | | | | | | 2002-09-23 JP Rosevear <jpr@ximian.com> * conduits/todo/Makefile.am: add libeutil to the link * conduits/calendar/Makefile.am: ditto svn path=/trunk/; revision=18172
* fix non-ANSI switch statements.Dan Winship2002-09-234-0/+16
| | | | | | | | | | | | * pcs/cal.c (imple_Cal_update_objects, impl_Cal_remove_object): fix non-ANSI switch statements. * gui/e-meeting-model.c (is_cell_editable, value_is_empty, process_free_busy_comp): Likewise * gui/itip-utils.c (comp_compliant): Likewise. svn path=/trunk/; revision=18169
* install an idle callback that will start the alarm daemon.Rodrigo Moya2002-09-232-4/+25
| | | | | | | | | | 2002-09-23 Rodrigo Moya <rodrigo@ximian.com> * gui/main.c (launch_alarm_daemon): install an idle callback that will start the alarm daemon. (launch_alarm_daemon_cb): actually activate the alarm daemon here. svn path=/trunk/; revision=18168
* remove timeout function always and re-add it if the query is in progress.Rodrigo Moya2002-09-232-14/+15
| | | | | | | | | 2002-09-23 Rodrigo Moya <rodrigo@ximian.com> * pcs/query.c (start_cached_query_cb): remove timeout function always and re-add it if the query is in progress. svn path=/trunk/; revision=18166
* move success notification code to its own code block, since it was beingRodrigo Moya2002-09-232-27/+41
| | | | | | | | | | | 2002-09-23 Rodrigo Moya <rodrigo@ximian.com> * pcs/query.c (start_cached_query_cb): move success notification code to its own code block, since it was being run for parse errors also. Also, remove all traces of the query from the cache if there is an error. Also, use GINT_TO_POINTER instead of GPOINTER_TO_INT. svn path=/trunk/; revision=18165
* Fixes #28310Rodrigo Moya2002-09-231-0/+2
| | | | | | | | | | | | 2002-09-23 Rodrigo Moya <rodrigo@ximian.com> Fixes #28310 * gui/alarm-notify/save.c (save_notification_time): only save the new notification time if it is bigger than the already saved one. This should avoid some reminders showing up twice. svn path=/trunk/; revision=18163
* only save the new notification time if it is bigger than the already savedRodrigo Moya2002-09-232-1/+13
| | | | | | | | | | 2002-09-23 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/save.c (save_notification_time): only save the new notification time if it is bigger than the already saved one. This should avoid some reminders showing up twice. svn path=/trunk/; revision=18162
* check to see if the component is already on the server or notJP Rosevear2002-09-215-107/+49
| | | | | | | | | | | | | | | | | | | 2002-09-20 JP Rosevear <jpr@ximian.com> * gui/comp-util.c (cal_comp_is_on_server): check to see if the component is already on the server or not * gui/comp-util.h: change proto * gui/e-week-view.c (e_week_view_on_editing_stopped): only delete the event if the summary is empty and the component is not already on the server * gui/e-day-view.c (e_day_view_on_editing_stopped): same Fixes #14111 svn path=/trunk/; revision=18138
* set the deleted attendees array to size 0 after we clean it upJP Rosevear2002-09-202-1/+9
| | | | | | | | | | | 002-09-20 JP Rosevear <jpr@ximian.com> * gui/dialogs/meeting-page.c (meeting_page_fill_widgets): set the deleted attendees array to size 0 after we clean it up Fixes #30479 svn path=/trunk/; revision=18135
* remove the query from the cache if it failed. (start_cached_query_cb):Rodrigo Moya2002-09-202-0/+23
| | | | | | | | | | 2002-09-20 Rodrigo Moya <rodrigo@ximian.com> * pcs/query.c (parse_sexp): remove the query from the cache if it failed. (start_cached_query_cb): notify of errors in the query. svn path=/trunk/; revision=18133
* added a list of EComponentListener's to control the lifetime of theRodrigo Moya2002-09-202-1/+45
| | | | | | | | | | | | | 2002-09-19 Rodrigo Moya <rodrigo@ximian.com> * pcs/query.c: added a list of EComponentListener's to control the lifetime of the listeners. (query_init): initialize new member. (query_destroy): free new member. (start_cached_query_cb): create a EComponentListener for the new listener being added. svn path=/trunk/; revision=18122
* More fixes for #24210Rodrigo Moya2002-09-202-64/+248
| | | | | | | | | | | | | | | | | | | 2002-09-19 Rodrigo Moya <rodrigo@ximian.com> More fixes for #24210 * pcs/query.c: added list of cached queries and changed the Query class to work with several listeners, not only one. (query_init): initialize new members. (query_destroy): free new members. (add_component, remove_component, parse_sexp, match_component, process_components_cb): notify all listeners. (notify_uid_cb, start_cached_query_cb): implemented integration of cached queries. (query_new): search the query in the cache before creating a new one. And if we create a new one, store it in the cache. svn path=/trunk/; revision=18120
* bump the month_num by 1 because it indexs at 0JP Rosevear2002-09-192-2/+12
| | | | | | | | | | | | 002-09-19 JP Rosevear <jpr@ximian.com> * gui/dialogs/recurrence-page.c (simple_recur_to_comp): bump the month_num by 1 because it indexs at 0 (recurrence_page_fill_widgets): lower the month_num by one as above Fixes #30381 svn path=/trunk/; revision=18110
* Fixes #26362Rodrigo Moya2002-09-172-1/+47
| | | | | | | | | | | 2002-09-17 Rodrigo Moya <rodrigo@ximian.com> Fixes #26362 * gui/e-itip-control.c (show current): add a default reminder if default reminders are set in the configuration. svn path=/trunk/; revision=18084
* keep the selection if we right click in it (but not on an appointment)JP Rosevear2002-09-123-14/+31
| | | | | | | | | | | | 2002-09-11 JP Rosevear <jpr@ximian.com> * gui/e-day-view.c (e_day_view_on_top_canvas_button_press): keep the selection if we right click in it (but not on an appointment) (e_day_view_on_main_canvas_button_press): ditto * gui/e-week-view.c (e_week_view_on_button_press): sam svn path=/trunk/; revision=18046
* create a new appointment based on the selectionJP Rosevear2002-09-122-47/+40
| | | | | | | | | | | | 2002-09-11 JP Rosevear <jpr@ximian.com> * gui/e-week-view.c (e_week_view_new_appointment): create a new appointment based on the selection (e_week_view_on_button_press): use above (e_week_view_on_new_appointment): ditto (e_week_view_on_new_meeting): ditto svn path=/trunk/; revision=18043
* duh, don't blindly increment the hour without adjusting for the dayJP Rosevear2002-09-112-4/+10
| | | | | | | | | | | | 2002-09-10 JP Rosevear <jpr@ximian.com> * gui/comp-editor-factory.c (get_default_event): duh, don't blindly increment the hour without adjusting for the day boundaries Fixes #29983 svn path=/trunk/; revision=18034
* Fixes #24032Rodrigo Moya2002-09-102-9/+26
| | | | | | | | | | | | | 2002-09-10 Rodrigo Moya <rodrigo@ximian.com> Fixes #24032 * gui/e-itip-control.c (init): don't get servers here, since we don't know the type of the component(s) to be loaded. (show_current): get servers here. (destroy): only free stuff that needs to be freed. svn path=/trunk/; revision=18030
* display status messages for all operations we make, so that when usingRodrigo Moya2002-09-102-8/+25
| | | | | | | | | | 2002-09-09 Rodrigo Moya <rodrigo@ximian.com> * gui/gnome-cal.c (client_cal_opened_cb): display status messages for all operations we make, so that when using remote slow backends, so that users have always indication of what's happening. svn path=/trunk/; revision=18028
* kill warningJP Rosevear2002-09-076-34/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-09-06 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.c (gnome_calendar_edit_object): kill warning * gui/e-week-view.h: new proto * gui/e-week-view.c (e_week_view_set_selected_time_range_visible): select a range of time in the currently visible area, if out side the visible area, select as much as possible (e_week_view_on_text_item_event): call above * gui/e-week-view-event-item.c (e_week_view_event_item_button_press): call above * gui/e-day-view.c (e_day_view_set_selected_time_range_in_top_visible): select a range of time in the currently visible area, if out side the visible area, select as much as possible (e_day_view_set_selected_time_range_visible): the same for the main canvas (e_day_view_on_long_event_button_press): call above (e_day_view_on_event_button_press): ditto svn path=/trunk/; revision=18010
* don't try to send via the server if we are publishing; don't bail out on aJP Rosevear2002-09-062-5/+18
| | | | | | | | | | 2002-09-05 JP Rosevear <jpr@ximian.com> * gui/itip-utils.c (itip_send_comp): don't try to send via the server if we are publishing; don't bail out on a 0 length to list if we are publishing svn path=/trunk/; revision=17992
* Changed the description of the calendar/tasks page of the settings dialog,Anna Marie Dirks2002-09-062-1/+8
| | | | | | | | | | 2002-09-05 Anna Marie Dirks <anna@ximian.com> * gui/GNOME_Evolution_Calendar.oaf.in: Changed the description of the calendar/tasks page of the settings dialog, to be hopefully more descriptive and less awkwardly worded. svn path=/trunk/; revision=17989
* added support for text/x-calendar targets, in which case a VCALENDARRodrigo Moya2002-09-052-8/+32
| | | | | | | | | | 2002-09-05 Rodrigo Moya <rodrigo@ximian.com> * gui/e-day-view.c (e_day_view_on_drag_data_get): added support for text/x-calendar targets, in which case a VCALENDAR component, with full timezone information is returned. svn path=/trunk/; revision=17984
* don't listen to client signals after we get destroyedJP Rosevear2002-09-052-0/+9
| | | | | | | | | | | 2002-09-04 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.c (gnome_calendar_destroy): don't listen to client signals after we get destroyed Fixes #17036 svn path=/trunk/; revision=17976
* bail out if we couldn't send the cancelJP Rosevear2002-09-057-31/+75
| | | | | | | | | | | | | | | | | | | | | | 2002-09-04 JP Rosevear <jpr@ximian.com> * gui/dialogs/event-editor.c (event_editor_send_comp): bail out if we couldn't send the cancel * gui/dialogs/task-editor.c (task_editor_send_comp): ditto * gui/dialogs/comp-editor.c (save_comp_with_send): indicate send status (real_send_comp): return success/fail, only resave the component a if we successfully sent (comp_editor_send_comp): return success/fail * gui/itip-utils.h: update proto * gui/itip-utils.c (itip_send_comp): return true if we sent the message svn path=/trunk/; revision=17966
* provide error message param, give a dialog with the message if we get aJP Rosevear2002-09-059-22/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-09-04 JP Rosevear <jpr@ximian.com> * gui/itip-utils.c (comp_server_send): provide error message param, give a dialog with the message if we get a busy result; return TRUE if we succeed (itip_send_comp): bail out if we had a problem sending via the server * cal-client/cal-client.c (cal_client_send_object): pass back error message if we get the busy exception in the new param * cal-client/cal-client.h: update proto * pcs/cal.c (impl_Cal_send_object): dump backend error message into Busy exception * pcs/cal-backend.h: update proto * pcs/cal-backend.c (cal_backend_send_object): take/pass new error message parameter * pcs/cal-backend-file.c (cal_backend_file_send_object): take new param * idl/evolution-calendar.idl: add errorMsg to Busy exception svn path=/trunk/; revision=17964
* Pass NULL as @unpopulate_folder_context_menu_fn toEttore Perazzoli2002-09-053-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (create_component): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * gui/component-factory.c (create_object): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * mail-account-gui.c (mail_account_gui_save): Remove unused variable. * component-factory.c (unpopulate_folder_context_menu): New. (create_component): Pass it to evolution_shell_component_new(). * component-factory.c (create_component): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * e-storage-set-view.c (popup_folder_menu): Remove the context menu items using evolution_shell_component_client_unpopulate_folder_context_menu() instead of doing it ourself, since BonoboUI sucks. * evolution-shell-component-client.c (evolution_shell_component_client_unpopulate_folder_context_menu): New. * evolution-test-component.c (register_component): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * evolution-shell-component.c: New member unpopulate_folder_context_menu_fn in EvolutionShellComponentPrivate. New member uic in EvolutionShellComponentPrivate. (init): Init new members to NULL. (destroy): bonobo_object_unref() priv->uic if not NULL. (evolution_shell_component_new): New arg @unpopulate_folder_context_menu_fn. (evolution_shell_component_construct): Likewise. (impl_populateFolderContextMenu): Set priv->uic to the newly created UIComponent. (impl_unpopulateFolderContextMenu): New, implementation for the ::unpopulateFolderContextMenu CORBA method. (class_init): Install. * Evolution-ShellComponent.idl (unpopulateFolderContextMenu): New method. (AlreadyPopulated): New exception. (populateFolderContextMenu): Can raise it. (NotPopulated): New exception. svn path=/trunk/; revision=17963
* don't make the reply component minimalJP Rosevear2002-09-042-5/+14
| | | | | | | | | | | 2002-09-03 JP Rosevear <jpr@ximian.com> * gui/itip-utils.c (comp_compliant): don't make the reply component minimal Fixes #28956 svn path=/trunk/; revision=17957
* use bonobo_object_release_unref to release the remote SelectNamesMike Kestner2002-08-313-2/+8
| | | | | | | | | | 2002-08-30 Mike Kestner <mkestner@ximian.com> * gui/dialogs/event-page.c: * gui/dialogs/task-page.c: use bonobo_object_release_unref to release the remote SelectNames component, not CORBA_Object_release. svn path=/trunk/; revision=17939
* make the sure to list is 0 length before sending via imipJP Rosevear2002-08-311-1/+1
| | | | | | | | | 2002-08-30 JP Rosevear <jpr@ximian.com> * gui/itip-utils.c (itip_send_comp): make the sure to list is 0 length before sending via imip svn path=/trunk/; revision=17935
* select the top canvas if the user right-clicks on itJP Rosevear2002-08-304-1/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 002-08-29 JP Rosevear <jpr@ximian.com> * gui/e-day-view.c (e_day_view_on_top_canvas_button_press): select the top canvas if the user right-clicks on it (e_day_view_on_main_canvas_button_press): select the row the user is right-clicking on (e_day_view_on_long_event_button_press): select the top canvas if the user right-clicks on an event there (e_day_view_on_event_button_press): select the relevant rows if the user right-clicks on an event (e_day_view_set_selected_time_range_in_top): select a number of days in the top canvas * gui/e-week-view.c (e_week_view_on_button_press): select the day the user is right-clicking on (e_week_view_on_text_item_event): select the corresponding time range when showing the contextual menu for an event * gui/e-week-view-event-item.c (e_week_view_event_item_button_press): select the corresponding time range when showing the contextual menu for an event Fixes #14660 svn path=/trunk/; revision=17924
* added missing header file.Rodrigo Moya2002-08-293-0/+7
| | | | | | | | | 2002-08-28 Rodrigo Moya <rodrigo@ximian.com> * gui/e-day-view.c: * gui/e-week-view.c: added missing header file. svn path=/trunk/; revision=17920
* Add an evolution:shell_component_launch_order and renameDan Winship2002-08-292-1/+9
| | | | | | | | * gui/GNOME_Evolution_Calendar.oaf.in: Add an evolution:shell_component_launch_order and rename evolution:shell_component_icon. svn path=/trunk/; revision=17907
* use EConfigListener instead of direct access to the bonobo-conf database.Rodrigo Moya2002-08-275-426/+176
| | | | | | | | | | | | | | | | | | | | 2002-08-27 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-config.c: use EConfigListener instead of direct access to the bonobo-conf database. (calendar_config_init): create the EConfigListener here, and install an atexit function to unref the config listener object. (config_read, property_change_cb, calendar_config_write, calendar_config_write_on_exit): removed unneeded functions. (calendar_config_get_*, calendar_config_set_*): changed to make use of EConfigListener directly. * gui/main.c (main): removed call to calendar_config_write_on_exit. * gui/dialogs/cal-prefs-dialog.c (update_config): removed call to calendar_config_write. svn path=/trunk/; revision=17874
* Fixes #12326Rodrigo Moya2002-08-265-157/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-08-26 Rodrigo Moya <rodrigo@ximian.com> Fixes #12326 * gui/alarm-notify/config-data.c (ensure_inited): create a EConfigListener for configuration access. (do_cleanup): g_atexit installed function, to clean up configuration database resources. (config_data_get_timezone): retrieve the configuration for the EConfigListener object. (config_data_get_listener): new function. * gui/alarm-notify/save.c (get_config_db, discard_config_db): removed. Use EConfigListener instead. (save_notification_time, get_saved_notification_time, save_calendars_to_load, get_calendars_to_load, save_blessed_program, is_blessed_program): use EConfigListener. * gui/alarm-notify/notify-main.c (init_alarm_notify_service): removed. (alarm_notify_factory_fn): create here the alarm_notify_service if it hasn't been created yet. (load_calendars): likewise. (main): don't call init_alarm_notify_service. svn path=/trunk/; revision=17859
* if its a non-participant, add it as a resource to match dialog labelJP Rosevear2002-08-232-2/+17
| | | | | | | | | | | 2002-08-22 JP Rosevear <jpr@ximian.com> * gui/e-meeting-model.c (process_section): if its a non-participant, add it as a resource to match dialog label (set_value_at): if the type is set to be a resource, switch the role to non-participant by default svn path=/trunk/; revision=17840
* if the value given is a date, convert to a time in the current zoneJP Rosevear2002-08-222-4/+17
| | | | | | | | | 2002-08-22 JP Rosevear <jpr@ximian.com> * gui/calendar-model.c (set_completed): if the value given is a date, convert to a time in the current zone svn path=/trunk/; revision=17835
* don't set the tasks ui component until the container is set, remove unusedJP Rosevear2002-08-212-5/+8
| | | | | | | | | | 2002-08-20 JP Rosevear <jpr@ximian.com> * gui/tasks-control.c (tasks_control_activate): don't set the tasks ui component until the container is set, remove unused pixmaps svn path=/trunk/; revision=17818
* disconnect destroy signal callbacks on tablesJP Rosevear2002-08-202-3/+13
| | | | | | | | | | | 2002-08-19 JP Rosevear <jpr@ximian.com> * gui/e-meeting-model.c (destroy): disconnect destroy signal callbacks on tables Fixes #28231 svn path=/trunk/; revision=17813
* clone the ical component before adding itJP Rosevear2002-08-202-1/+13
| | | | | | | | | | | 2002-08-20 JP Rosevear <jpr@ximian.com> * gui/itip-utils.c (comp_toplevel_with_zones): clone the ical component before adding it Fixes #29061 svn path=/trunk/; revision=17810
* make sure to get the date in the current zone, not at UTCJP Rosevear2002-08-202-1/+6
| | | | | | | | | 002-08-20 JP Rosevear <jpr@ximian.com> * gui/comp-editor-factory.c (get_default_event): make sure to get the date in the current zone, not at UTC svn path=/trunk/; revision=17802
* stop adding redundant information for start/end/due/complete timesJP Rosevear2002-08-192-42/+33
| | | | | | | | | | | | | 2002-08-19 JP Rosevear <jpr@ximian.com> * gui/e-itip-control.c (set_date_label): stop adding redundant information for start/end/due/complete times (write_html): convert newlines properly and escape characters for summary, location, description; put text information on separate line from bolded title to make it look nicer when there are line breaks svn path=/trunk/; revision=17798
* added internal EComponentListener object, to listen for the activated Cal.Rodrigo Moya2002-08-165-0/+89
| | | | | | | | | | | | | | | | | | | | 2002-08-16 Rodrigo Moya <rodrigo@ximian.com> * cal-client/cal-client.[ch]: added internal EComponentListener object, to listen for the activated Cal. (cal_client_class_init): added "backend_died" signal. (cal_client_destroy): clean up component listener. (backend_died_cb): new callback for getting signals from the EComponentListener. (cal_opened_cb): setup component listener. * cal-client/Makefile.am: added libetuil to needed LIBS. * gui/gnome-cal.c (backend_died_cb): new callback. (gnome_calendar_construct): connect to "backend_died" signal on all CalClient's we create. svn path=/trunk/; revision=17787
* listen for the time editors to changeJP Rosevear2002-08-154-7/+89
| | | | | | | | | | | | | | | | | | | | | | | 2002-08-14 JP Rosevear <jpr@ximian.com> * gui/dialogs/cal-prefs-dialog.c (init_widgets): listen for the time editors to change (cal_prefs_dialog_start_of_day_changed): make sure the start is never after the end (cal_prefs_dialog_end_of_day_changed): make sure the end is never after the start * gui/e-meeting-time-sel.c (e_meeting_time_selector_set_working_hours): make sure to show a minimum of 1 hour for work day * gui/e-day-view-main-item.c (e_day_view_main_item_draw): calculate the work/not working color boxes to the nearest pixel, rather the the nearest time division Fixes #10286, #26285 svn path=/trunk/; revision=17776
* Remove a bunch of old #if 0 code. (update_item): SetDan Winship2002-08-144-180/+28
| | | | | | | | | | | | | * gui/e-itip-control.c: Remove a bunch of old #if 0 code. (update_item): Set X-MICROSOFT-CDO-REPLYTIME here. * gui/itip-utils.c (comp_toplevel_with_zones): Don't set it here. * cal-util/cal-component.c (ensure_mandatory_properties): Use icaltime_current_time_with_zone rather than rolling our own. (cal_component_strip_errors): Remove unused variable. svn path=/trunk/; revision=17770
* set status message on ECalendarTable when opening the tasks.Rodrigo Moya2002-08-132-1/+31
| | | | | | | | | | | | 2002-08-13 Rodrigo Moya <rodrigo@ximian.com> * gui/gnome-cal.c (gnome_calendar_open): set status message on ECalendarTable when opening the tasks. (client_cal_opened_cb): set ECalendarTable status message to NULL when we open the tasks folder. Also, clear up calendar status message in all cases, not only if the folder was opened successfully. svn path=/trunk/; revision=17768
* set status message to NULL if there is an error opening the calendar.Rodrigo Moya2002-08-132-2/+9
| | | | | | | | | | | 2002-08-13 Rodrigo Moya <rodrigo@ximian.com> * gui/gnome-cal.c (gnome_calendar_open): set status message to NULL if there is an error opening the calendar. (client_cal_opened_cb): set status message to NULL only when we have successfully opened the main CalClient. svn path=/trunk/; revision=17767
* set the editor to changed so the item actually gets savedJP Rosevear2002-08-102-0/+7
| | | | | | | | | 2002-08-09 JP Rosevear <jpr@ximian.com> * gui/dialogs/comp-editor.c (real_send_comp): set the editor to changed so the item actually gets saved svn path=/trunk/; revision=17753
* check for an attendee in the list (comp_to_list): only add the user ifJP Rosevear2002-08-094-60/+57
| | | | | | | | | | | | | | | | | | 2002-08-08 JP Rosevear <jpr@ximian.com> * gui/itip-utils.c (users_has_attendee): check for an attendee in the list (comp_to_list): only add the user if they aren't on the list (comp_server_send): don't remove the users, pass back the list (itip_send_comp): send to server before doing comp_minimal * gui/dialogs/comp-editor.c (real_send_comp): edit and save the updated comp * pcs/cal.c (impl_Cal_send_object): copy the correct item to pass back svn path=/trunk/; revision=17747
* Initialize loaded_backends before using it. (Just kills off a harmlessDan Winship2002-08-092-9/+17
| | | | | | | | * pcs/query-backend.c (query_backend_new): Initialize loaded_backends before using it. (Just kills off a harmless g_warning.) svn path=/trunk/; revision=17745
* Fixes #15710Rodrigo Moya2002-08-085-1/+63
| | | | | | | | | | | | | | | | | | | 2002-08-08 Rodrigo Moya <rodrigo@ximian.com> Fixes #15710 * cal-util/cal-component.[ch] (cal_component_alarm_get_icalcomponent): new function for getting the icalcomponent from a CalComponentAlarm. * gui/comp-util.c (cal_comp_event_new_with_defaults): added X-EVOLUTION-NEEDS-DESCRIPTION property to the default reminder alarm, so that we can identify it when saving the component. * gui/dialogs/alarm-page.c (alarm_page_fill_component): if the alarm has the X-EVOLUTION-NEEDS-DESCRIPTION property, set the description to be the same as of the component. svn path=/trunk/; revision=17744
* just return the object untouched since we don't send anythingJP Rosevear2002-08-0810-87/+343
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-08-07 JP Rosevear <jpr@ximian.com> * pcs/cal-backend-file.c (cal_backend_file_send_object): just return the object untouched since we don't send anything * pcs/cal-backend.c (cal_backend_remove_object): call virtual method * pcs/cal-backend.h: add send result codes, new proto * pcs/cal.c (impl_Cal_send_object): implement sendObject corba call (cal_class_init): add to epv * gui/itip-utils.c (comp_toplevel_with_zones): utility function to create icalcomponent with necessary timezone info (comp_has_attendee): see if attendee is in the attendee list (comp_server_send): use above and remove attendees if the server sends them * gui/e-itip-control.c (show_current_todo): remove unused var * idl/evolution-calendar.idl: add Busy exception and * cal-client/cal-client.c (cal_client_send_object): send object via the server (if the server can) * cal-client/cal-client.h: add send results and new proto svn path=/trunk/; revision=17734
* new function. (query_backend_get_uids): new function. (query_backend_new):Rodrigo Moya2002-08-064-15/+139
| | | | | | | | | | | | | | | | | | | | 2002-08-05 Rodrigo Moya <rodrigo@ximian.com> * pcs/query-backend.[ch] (query_backend_get_object_component): new function. (query_backend_get_uids): new function. (query_backend_new): create the static GHashTable if it hasn't been created yet. (query_backend_destroy): destroy the static GHashTable if empty. (foreach_uid_cb): call object_updated_cb, which does everything. * pcs/query.c: make use of the new QueryBackend class. (query_init): initialize new private structure member. (query_destroy): clean up new member, without freeing it, since it is managed internally in query-backend.c. (query_construct): create a QueryBackend for the query. svn path=/trunk/; revision=17713
* Fixes the crash in #19159Rodrigo Moya2002-08-052-0/+9
| | | | | | | | | | | 2002-08-04 Rodrigo Moya <rodrigo@ximian.com> Fixes the crash in #19159 * gui/alarm-notify/alarm-queue.c (create_snooze): check for NULL pointers before using them. svn path=/trunk/; revision=17697
* don't warn if we can't use the small font, just set use_small_font toJP Rosevear2002-08-022-1/+6
| | | | | | | | | 2002-08-02 JP Rosevear <jpr@ximian.com> * gui/e-week-view.c (e_week_view_init): don't warn if we can't use the small font, just set use_small_font to FALSE svn path=/trunk/; revision=17689
* new util function to add information to an itip message that might notJP Rosevear2002-08-022-36/+49
| | | | | | | | | | | | 2002-08-02 JP Rosevear <jpr@ximian.com> * gui/e-itip-control.c (adjust_item): new util function to add information to an itip message that might not already be there for display purposes (summary, location, etc) (show_current_event): use above (show_current_todo): ditto svn path=/trunk/; revision=17688
* initialize value to corba nilJP Rosevear2002-08-022-0/+6
| | | | | | | | 2002-08-02 JP Rosevear <jpr@ximian.com> * gui/e-meeting-model.c (init): initialize value to corba nil svn path=/trunk/; revision=17687
* Use meeting-request-16.png instead of meeting-request.png.Ettore Perazzoli2002-08-024-5/+10
| | | | | | | | | | * gui/component-factory.c (create_object): Use meeting-request-16.png instead of meeting-request.png. * gui/calendar-commands.c (pixmaps): Remove pixmaps in /menu/File/New/NewFirstItem/. svn path=/trunk/; revision=17676
* use get_due_status (get_color): ditto (get_due_status): utility functionJP Rosevear2002-08-022-66/+75
| | | | | | | | | | | 2002-08-01 JP Rosevear <jpr@ximian.com> * gui/calendar-model.c (is_overdue): use get_due_status (get_color): ditto (get_due_status): utility function to reduce replicated code, handle the case where the due date is just a date svn path=/trunk/; revision=17671
* new class for implementing a backend cache for the calendar queries.Rodrigo Moya2002-08-014-0/+331
| | | | | | | | | | | 2002-07-31 Rodrigo Moya <rodrigo@ximian.com> * pcs/query-backend.[ch]: new class for implementing a backend cache for the calendar queries. * pcs/Makefile.am: added new files. svn path=/trunk/; revision=17668
* Change the order so that "New Contact" is first and "New Contact List" isEttore Perazzoli2002-08-013-10/+16
| | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (create_component): Change the order so that "New Contact" is first and "New Contact List" is next. * gui/component-factory.c (create_object): Change the order of the user creatable items a bit so that "New Appointment" and "New Meeting" are at the top when in a calendar folder. * component-factory.c (create_component): Put "New Mail Message" before "New Message Post" instead of vice versa. * evolution-mail-global.xml: Remove "New Mail Message" and "Post Message" items. svn path=/trunk/; revision=17661
* Pass "contacts" as the @folder_type toEttore Perazzoli2002-08-013-8/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (add_creatable_item): Pass "contacts" as the @folder_type to evolution_shell_component_add_user_creatable_item(). * gui/component-factory.c (add_creatable_item): New arg @folder_type, pass it to evolution_shell_component_add_user_creatable_item(). (create_object): Set the right folder types for the various user-creatable items. * component-factory.c (create_component): Pass "mail" as @folder_type to evolution_shell_component_add_user_creatable_item(). * evolution-test-component.c (register_component): Pass NULL for @folder_type to evolution_shell_component_add_user_creatable_item(). * e-shell-user-creatable-items-handler.c: New member folder_type in struct MenuItem. (ensure_menu_items): Initialize ->folder_type. (item_is_default): New helper function. (create_menu_xml): New arg @folder_type. Put the items on the top using item_is_default(). (shell_view_view_changed_callback): Pass the folder type to create_menu_xml(). * evolution-shell-component.c: New member folder_type in UserCreatableItemType. (user_creatable_item_type_new): New arg @folder_type. (user_creatable_item_type_free): Free ->folder_type. (evolution_shell_component_add_user_creatable_item): New arg @folder_type. (impl__get_userCreatableItemTypes): Set ->folderType in the returned CORBA structs. * Evolution-ShellComponent.idl: New member folderType in struct UserCreatableItemType. * e-shell-user-creatable-items-handler.c: New member component_id in struct MenuItem. Removed member menu_xml from EShellUserCreatableItemsHandlerPrivate. (init): No need to initialize menu_xml here anymore. (impl_destroy): ...And no need to free here, either. (setup_menu_xml): New, derived from ensure_menu_xml(). This orders the menu so that the items for the current component go at the top. (create_menu_xml): Removed. (e_shell_user_creatable_items_handler_attach_menus): Set up properly for the current component ID, using setup_menu_xml(). svn path=/trunk/; revision=17658
* we no longer need to manually save the state (e_tasks_open): we no longerJP Rosevear2002-08-012-38/+10
| | | | | | | | | | | | | 2002-07-31 JP Rosevear <jpr@ximian.com> * gui/e-tasks.c (e_tasks_destroy): we no longer need to manually save the state (e_tasks_open): we no longer need to manually load the state (display_view_cb): attach the gal view to the table Fixes #27894 svn path=/trunk/; revision=17656
* Add bug fix numbers.JP Rosevear2002-07-311-0/+6
| | | | svn path=/trunk/; revision=17654
* make sure that the work week view goes to the current work week if the dayJP Rosevear2002-07-312-4/+15
| | | | | | | | | | 2002-07-29 JP Rosevear <jpr@ximian.com> * gui/e-day-view.c (e_day_view_find_work_week_start): make sure that the work week view goes to the current work week if the day selected is before the start of the work week svn path=/trunk/; revision=17645
* fixed mapping of popdown menu to ICAL_STATUS_ values.Rodrigo Moya2002-07-293-10/+28
| | | | | | | | | | | | | | | | 2002-07-28 Rodrigo Moya <rodrigo@ximian.com> * gui/dialogs/task-details-page.c: fixed mapping of popdown menu to ICAL_STATUS_ values. (task_details_page_fill_widgets): when we can't set the status, default to ICAL_STATUS_NONE, which maps to 'Not started'. Fixed use of 'percent' variable, which was being used after being freed. (percent_complete_changed): default to ICAL_STATUS_NONE (Not Started). * gui/dialogs/task-details-page.glade: added 'Needs Action' to popdown menu values. svn path=/trunk/; revision=17624
* remove useless debug statementJP Rosevear2002-07-272-1/+7
| | | | | | | | | | | 2002-07-26 JP Rosevear <jpr@ximian.com> * cal-client/cal-client.c (cal_client_construct): remove useless debug statement Probably fixes #19333 svn path=/trunk/; revision=17619
* new function for adding VTIMEZONE components to a VCALENDAR component.Rodrigo Moya2002-07-276-8/+133
| | | | | | | | | | | | | | | | | | | | | 2002-07-26 Rodrigo Moya <rodrigo@ximian.com> * cal-util/cal-util.[ch] (cal_util_add_timezones_from_component): new function for adding VTIMEZONE components to a VCALENDAR component. * gui/e-calendar-table.c (copy_row_cb): added VTIMEZONE components to resulting VCALENDAR top-level component. * gui/e-week-view.c (e_week_view_copy_clipboard): copy to the clipboard a top-level VCALENDAR component, with all the needed VTIMEZONE components. (e_week_view_on_copy): likewise. * gui/e-day-view.c (e_day_view_copy_clipboard): likewise. (e_day_view_on_copy): likewise. svn path=/trunk/; revision=17604
* focus the editor if it does exist, create a new one if it doesn't (notJP Rosevear2002-07-272-2/+8
| | | | | | | | | 2002-07-26 JP Rosevear <jpr@ximian.com> * gui/comp-editor-factory.c (impl_editExisting): focus the editor if it does exist, create a new one if it doesn't (not vice-versa) svn path=/trunk/; revision=17603
* set large_font to NULL (e_day_view_style_set): calculate large font, fallJP Rosevear2002-07-262-6/+17
| | | | | | | | | | 2002-07-25 JP Rosevear <jpr@ximian.com> * gui/e-day-view.c (e_day_view_init): set large_font to NULL (e_day_view_style_set): calculate large font, fall back to the style->font if necessary svn path=/trunk/; revision=17594
* display the location in the itip informationJP Rosevear2002-07-252-0/+12
| | | | | | | | | 2002-07-24 JP Rosevear <jpr@ximian.com> * gui/e-itip-control.c (write_html): display the location in the itip information svn path=/trunk/; revision=17578
* Touch up changelog.JP Rosevear2002-07-251-0/+2
| | | | svn path=/trunk/; revision=17575
* set status to in progress if the percent is between 0 and 100JP Rosevear2002-07-252-4/+17
| | | | | | | | | | | 2002-07-24 JP Rosevear <jpr@ximian.com> * gui/calendar-model.c (set_percent): set status to in progress if the percent is between 0 and 100 (set_status): if the value is set to in process, change the percent to 50 svn path=/trunk/; revision=17574
* add a day for the leap year only if we are currently counting Feb., not if42002-07-252-1/+7
| | | | | | | | | | 2002-07-24 <jpr@ximian.com> * cal-util/timeutil.c (time_day_of_year): add a day for the leap year only if we are currently counting Feb., not if the month passed in is Feb. Fixes #23446. svn path=/trunk/; revision=17571
* use proper meeting icon32002-07-242-1/+6
| | | | | | | | 2002-07-23 <jpr@ximian.com> * gui/e-day-view.c (e_day_view_realize): use proper meeting icon svn path=/trunk/; revision=17553
* Replace a bunch of old gnomecal functions with the functionally identicalDan Winship2002-07-232-34/+14
| | | | | | | * cal-util/timeutil.c: Replace a bunch of old gnomecal functions with the functionally identical ones from Connector. svn path=/trunk/; revision=17548
* Split pcs-backend-file out of libpcs and build it as a separate (noinst)Dan Winship2002-07-232-2/+13
| | | | | | | | | | * pcs/Makefile.am: Split pcs-backend-file out of libpcs and build it as a separate (noinst) library libpcsfile.a. This gets the db3 dependencies out of libpcs, and people trying to create a calendar backend shouldn't be calling functions from the existing backends anyway so there's no reason to install them. svn path=/trunk/; revision=17529
* if there's an exception, continue with the next item.Rodrigo Moya2002-07-193-2/+10
| | | | | | | | | 2002-07-18 Rodrigo Moya <rodrigo@ximian.com> * importers/icalendar-importer.c (get_uri_from_folder_path): if there's an exception, continue with the next item. svn path=/trunk/; revision=17507
* Install libversit.a so that people compiling against the addressbook canPeter Williams2002-07-189-25/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-09 Peter Williams <peterw@ximian.com> * libversit/Makefile.am (privlib_LIBRARIES): Install libversit.a so that people compiling against the addressbook can do so successfully. * Makefile.am: create our *Conf.sh files and dist them and install them. * configure.in: Define and subst some variables that the Conf.sh file need. 2002-07-08 Peter Williams <peterw@ximian.com> * backend/ebook/Makefile.am: Install libebook-static.la. Also change --all-static to -all-static, which is the right flag. * backend/pas/Makefile.am: Install the PAS headers in $(includedir)/evolution/pas. Install libpas.a 2002-07-08 Peter Williams <peterw@ximian.com> * cal-util/Makefile.am: Install libcal-util-static.la and fix the -all-static flag to make it install statically. * pcs/Makefile.am: Install libpcs.a and its headers. * pcs/cal-backend-util.h: Same sort of include namespacing fix, but for pcs. * pcs/cal.h: * pcs/query.h: * pcs/cal-factory.h: * pcs/cal-backend.h: * pcs/cal-backend-file.h: Same. 2002-07-17 Peter Williams <peterw@ximian.com> * calendar/cal-util/Makefile.am (GTKDOC_LIBS): Because we're using libtool as our LD, we can reference .la's and libtool will DTRT for us. * calendar/cal-client/Makefile.am (GTKDOC_LIBS): Same here. 2002-07-03 Peter Williams <peterw@ximian.com> * Makefile.am: Install libeutil, libeconduit, and libedb3util and their headers. 2002-07-08 Peter Williams <peterw@ximian.com> * Makefile.am: Reference the new libefilterbar.a. 2002-07-12 Peter Williams <peterw@ximian.com> * Makefile.am (INCLUDES): Add -I$(builddir)/libical/src/libical for the generated ical.h (some headers rely on this because they too get installed.) 2002-07-09 Peter Williams <peterw@ximian.com> * e-timezone-dialog/Makefile.am: Add -I$(top_builddir)/libical/src/libical; some headers that we rely on get installed, so they point to the ical.h that gets generated and installed; consequently we need to be able to find the generated ical.h * misc/Makefile.am: Install libemiscwidgets.a and its headers. However, break EFilterBar into a separate libefilterbar.a because we don't want the installed library to depend on libfilter. svn path=/trunk/; revision=17496
* use util function to see if the user is the organizer72002-07-1811-55/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-17 <jpr@ximian.com> * gui/calendar-model.c (calendar_model_value_at): use util function to see if the user is the organizer * gui/dialogs/cancel-comp.c (cancel_component_dialog): add deleting proto to indicate whether cancelling or deleting is the primary operation * gui/dialogs/cancel-comp.h: update proto * gui/dialogs/comp-editor.c (delete_cmd): offer to cancel * gui/dialogs/task-editor.c (cancel_task_cmd): call cancel_component_dialog with new param * gui/dialogs/event-editor.c (cancel_meeting_cmd): ditto * gui/e-week-view.c (e_week_view_on_editing_stopped): only update request if user is organizer (e_week_view_show_popup_menu): disable the meeting and meeting organizer mask if appropriate (e_week_view_delete_event_internal): offer to cancel the meeting (e_week_view_on_cut): ditto (selection_received): send request if its a meeting * gui/e-day-view.h: add meeting icon/mask * gui/e-day-view.c (e_day_view_on_event_right_click): disable the meeting and meeting organizer mask if appropriate (e_day_view_delete_event_internal): offer to cancel meeting (e_day_view_on_cut): ditto (e_day_view_finish_long_event_resize): only update request if user is organizer (e_day_view_reshape_long_event): add meeting icon to count (e_day_view_reshape_day_event): ditto (e_day_view_on_top_canvas_drag_data_received): only update request if user is organizer (e_day_view_on_main_canvas_drag_data_received): ditto (selection_received): offer to send meeting info * gui/e-day-view-main-item.c (e_day_view_main_item_draw_day_event): draw meeting icon if appropriate (using dummy icon atm) svn path=/trunk/; revision=17491
* Fixes #8001Rodrigo Moya2002-07-164-37/+107
| | | | | | | | | | | | | | | | | | | 2002-07-14 Rodrigo Moya <rodrigo@ximian.com> Fixes #8001 * importers/icalendar-importer.c (connect_to_shell): new function for connecting the importers (both iCal and vCal) to the shell, needed for some information retrieval about the folders we're importing to. (ical_importer_new, vcal_importer_new): call connect_to_shell. (importer_destroy_cb): unref the shell client object. (get_uri_from_folder_path): retrieve the uri from the storage registry. (check_folder_type): removed. * importers/Makefile.am: included libeshell to LIBS. svn path=/trunk/; revision=17463
* Sigh, fix for the wombat.idl -> Evolution-Wombat.idl rename here too. AtPeter Williams2002-07-132-1/+7
| | | | | | | | | | 2002-07-12 Peter Williams <peterw@ximian.com> * pcs/cal.c: Sigh, fix for the wombat.idl -> Evolution-Wombat.idl rename here too. At least grep indicates that's all that needs to be fixed. svn path=/trunk/; revision=17443
* Add include lines to get ebook headers relative to <ebook/foo.h>, notPeter Williams2002-07-116-12/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-09 Peter Williams <peterw@ximian.com> * tools/Makefile.am (INCLUDES): Add include lines to get ebook headers relative to <ebook/foo.h>, not "foo.h". addressbook: 2002-07-08 Peter Williams <peterw@ximian.com> * backend/ebook/e-book.h: Normalize includes to <ebook/foo.h>, so that the installed headers will work sanely. * backend/ebook/e-card-cursor.h: * backend/ebook/e-book-view.h: * backend/ebook/e-card-simple.h: * backend/ebook/e-card.h: * backend/ebook/e-destination.h: Same. * printing/Makefile.am (INCLUDES): add -Iaddressbook/backend to access the ebook headers. Also the builddir version to get the generated addressbook.h * gui/widgets/Makefile.am (INCLUDES): Same builddir fix. * gui/merging/e-card-merging.c: Fix an ebook #include. * gui/merging/Makefile.am (INCLUDES): Same idea. * gui/contact-list-editor/Makefile.am (INCLUDES): Same. * gui/contact-editor/Makefile.am (INCLUDES): Same builddir change. calendar: 2002-07-08 Peter Williams <peterw@ximian.com> * gui/Makefile.am (INCLUDES): Change the -I flags to get it to play nicely with the new Ebook header paradigm. * gui/dialogs/Makefile.am: Same. * gui/e-meeting-model.c: More of the same. * gui/dialogs/e-delegate-dialog.c: * gui/dialogs/e-meeting-model.c: * gui/dialogs/comp-editor-util.c: Fix include lines to get ebook headers. * pcs/Makefile.am: Same. composer: 2002-07-08 Peter Williams <peterw@ximian.com> * Makefile.am (INCLUDES): Fix cflags for ebook header namespacing. importers: 2002-07-08 Peter Williams <peterw@ximian.com> * Makefile.am: Fix cflags to get at ebook headers correctly. * pine-importer.c: Fix include lines to get ebook headers the "right" way. * evolution-gnomecard-importer.c: Same. mail: 2002-07-08 Peter Williams <peterw@ximian.com> * Makefile.am (INCLUDES): Add -I flags to get the ebook headers. svn path=/trunk/; revision=17411
* Fixes #16034Rodrigo Moya2002-07-035-12/+62
| | | | | | | | | | | | | | | | 2002-07-02 Rodrigo Moya <rodrigo@ximian.com> Fixes #16034 * gui/e-day-view.c (e_day_view_reshape_long_event): (e_day_view_reshape_day_event): * gui/e-day-view-main-item.c (e_day_view_main_item_draw_day_event): * gui/e-week-view.c (e_week_view_reshape_event_span): * gui/e-week-view-event-item.c (e_week_view_event_item_draw_icons): Don't assume all categories have icons when allocating space for the icons. svn path=/trunk/; revision=17357
* New arg @tooltip; pass it toEttore Perazzoli2002-07-023-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (add_creatable_item): New arg @tooltip; pass it to evolution_shell_component_add_user_creatable_item() [which now has a @tooltip arg]. * gui/component-factory.c (add_creatable_item): New arg @tooltip. Pass it to evolution_shell_component_add_user_creatable_item(), which now has a @tooltip arg. (create_object): Added tooltips. * component-factory.c (create_component): Pass a tooltip to evolution_shell_component_add_user_creatable_item. * e-shell-user-creatable-items-handler.c: New member tooltip in struct MenuItem. (ensure_menu_items): Initialize the tooltip member. (shell_view_view_changed_callback): Set the tooltip for the "New" button. (ensure_menu_xml): Set up the tooltip here as well. * evolution-shell-component.c: Add tooltip member to struct UserCreatableItemType. (user_creatable_item_type_new): New arg @tooltip. (evolution_shell_component_add_user_creatable_item): New arg @tooltip. (impl__get_userCreatableItemTypes): Put the tooltip in the struct as well. * e-shell-user-creatable-items-handler.c (setup_toolbar_button): Create a GtkTooltips object and attach it to the combo_button using gtk_object_set_data(). (shell_view_view_changed_callback): Set up a tooltip for the button, according to the default. * Evolution-ShellComponent.idl: Add a tooltip member to struct UserCreatableItemType. svn path=/trunk/; revision=17343
* listen for timezone config change (property_change_cb): set the timezoneJP Rosevear2002-07-013-2/+31
| | | | | | | | | | | | | 2002-07-01 JP Rosevear <jpr@ximian.com> * gui/calendar-config.c (config_read): listen for timezone config change (property_change_cb): set the timezone if it changed elsewhere * gui/main.c (init_bonobo): call bonobo_activate because we make bonobo related calls before the bonobo_main call svn path=/trunk/; revision=17335
* Fixes #25410Rodrigo Moya2002-06-262-0/+16
| | | | | | | | | | | | 2002-06-25 Rodrigo Moya <rodrigo@ximian.com> Fixes #25410 * gui/alarm-notify.c (AlarmNotify_removeCalendar): do proper cleanup on removal of clients. (alarm_notify_add_calendar): ditto. svn path=/trunk/; revision=17287
* plug leak and actually use the minimal comp we createJP Rosevear2002-06-252-1/+10
| | | | | | | | | 2002-06-25 JP Rosevear <jpr@ximian.com> * gui/itip-utils.c (comp_compliant): plug leak and actually use the minimal comp we create svn path=/trunk/; revision=17275
* add back protoJP Rosevear2002-06-2516-235/+625
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-06-25 JP Rosevear <jpr@ximian.com> * gui/dialogs/comp-editor-page.h: add back proto * gui/dialogs/comp-editor-page.c (comp_editor_page_notify_needs_send): add page needs_send signal * gui/e-meeting-time-sel.c (e_meeting_time_selector_on_invite_others_button_draw): check to see if the button should be sensitive when drawing (e_meeting_time_selector_construct): listen for the button draw signal * cal-util/cal-component.c (cal_component_strip_errors): remove X-LIC-ERROR x properties * cal-util/cal-component.h: new proto * gui/dialogs/meeting-page.c (change_clicked_cb): set needs_send to true (meeting_page_fill_widgets): set up gui based on if the user or someone else is the organizer (meeting_page_construct): read the addresses here for the combo box (get_widgets): explicitly set the value in list values * gui/dialogs/event-editor.c (set_menu_sens): base this on the exist org and user org values of the comp editor (event_editor_edit_comp): set up editable row restrictions on the meeting model if the user is not an organizer, and don't set needs send if we aren't the organizer initially (model_row_changed_cb): set needs_send to true (row_count_changed_cb): ditto * gui/dialogs/meeting-page.glade: update gui * gui/dialogs/comp-editor.c (save_comp_with_send): if the user is not the organizer, REPLY rather than REQUEST (comp_editor_set_existing_org): accessor (comp_editor_get_existing_org): ditto (comp_editor_set_user_org): ditto (comp_editor_get_user_org): ditto (real_edit_comp): determine if there is an existing organizer and if the organizers is a user (page_changed_cb): warn the user that changes may be discarded (page_summary_changed_cb): ditto (page_dates_changed_cb): ditto * gui/dialogs/comp-editor.h: new protos * gui/itip-utils.c (itip_organizer_is_user): determine if the organizer of a component is a user (itip_sentby_is_user): same for sentby field of organizer (comp_sentby): use above routines instead (comp_compliant): strip all X-LIC-ERROR fields generated by libical * gui/e-meeting-model.c (is_cell_editable): if there is a list of editable rows, allow only the status column of those rows to be edited (init): init edit_rows (e_meeting_model_restricted_add): add an editable row to the model (e_meeting_model_restricted_remove): remove an editable row (e_meeting_model_restricted_clear): clear all editable rows (e_meeting_model_etable_click_to_add): set the click to add arg on all tables (e_meeting_model_etable_from_model): track the tables (table_destroy_list_cb): remove the table being destroyed from the list (table_destroy_state_cb): remove the table being destroyed from the list * gui/e-meeting-model.h: new protos * gui/e-itip-control.c (update_attendee_status): kill warning svn path=/trunk/; revision=17274
* update for new zonesJP Rosevear2002-06-192-77/+4
| | | | | | | | 2002-06-18 JP Rosevear <jpr@ximian.com> * zones.h: update for new zones svn path=/trunk/; revision=17231
* Reverse unintended changeJP Rosevear2002-06-191-0/+6
| | | | | | | | | | 2002-06-18 JP Rosevear <jpr@ximian.com> * conduits/todo/Makefile.am: Reverse unintended change * conduits/calendar/Makefile.am: ditto svn path=/trunk/; revision=17229
* update for new zonesJP Rosevear2002-06-191-0/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-06-18 JP Rosevear <jpr@ximian.com> * zones.h: update for new zones 2002-06-18 JP Rosevear <jpr@ximian.com> * gui/e-meeting-time-sel.c (e_meeting_time_selector_on_invite_others_button_draw): check to see if the button should be sensitive when drawing (e_meeting_time_selector_construct): listen for the button draw signal * cal-util/cal-component.c (cal_component_strip_errors): remove X-LIC-ERROR x properties * cal-util/cal-component.h: new proto * gui/dialogs/meeting-page.c (change_clicked_cb): set needs_send to true (meeting_page_fill_widgets): set up gui based on if the user or someone else is the organizer (meeting_page_construct): read the addresses here for the combo box (get_widgets): explicitly set the value in list values * gui/dialogs/event-editor.c (set_menu_sens): base this on the exist org and user org values of the comp editor (event_editor_edit_comp): set up editable row restrictions on the meeting model if the user is not an organizer, and don't set needs send if we aren't the organizer initially (model_row_changed_cb): set needs_send to true (row_count_changed_cb): ditto * gui/dialogs/meeting-page.glade: update gui * gui/dialogs/comp-editor.c (save_comp_with_send): if the user is not the organizer, REPLY rather than REQUEST (comp_editor_set_existing_org): accessor (comp_editor_get_existing_org): ditto (comp_editor_set_user_org): ditto (comp_editor_get_user_org): ditto (real_edit_comp): determine if there is an existing organizer and if the organizers is a user (page_changed_cb): warn the user that changes may be discarded (page_summary_changed_cb): ditto (page_dates_changed_cb): ditto * gui/dialogs/comp-editor.h: new protos * gui/itip-utils.c (itip_organizer_is_user): determine if the organizer of a component is a user (itip_sentby_is_user): same for sentby field of organizer (comp_sentby): use above routines instead (comp_compliant): strip all X-LIC-ERROR fields generated by libical * gui/e-meeting-model.c (is_cell_editable): if there is a list of editable rows, allow only the status column of those rows to be edited (init): init edit_rows (e_meeting_model_restricted_add): add an editable row to the model (e_meeting_model_restricted_remove): remove an editable row (e_meeting_model_restricted_clear): clear all editable rows (e_meeting_model_etable_click_to_add): set the click to add arg on all tables (e_meeting_model_etable_from_model): track the tables (table_destroy_list_cb): remove the table being destroyed from the list (table_destroy_state_cb): remove the table being destroyed from the list * gui/e-meeting-model.h: new protos * gui/e-itip-control.c (update_attendee_status): kill warning svn path=/trunk/; revision=17226
* Fixes wombat crash (for JP and myself)Rodrigo Moya2002-06-182-5/+14
| | | | | | | | | | | | | 2002-06-17 Rodrigo Moya <rodrigo@ximian.com> Fixes wombat crash (for JP and myself) * gui/gnome-cal.c (gnome_calendar_open): don't call add_alarms here, since the client is not yet attached to the backend, and the alarm daemon does unref the client before creating a new one. (client_cal_opened_cb): call add_alarms here. svn path=/trunk/; revision=17215
* added timeout_id to LoadedClient structure, to keep track of the timeoutRodrigo Moya2002-06-132-26/+33
| | | | | | | | | | | | | | 2002-06-12 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify.c: added timeout_id to LoadedClient structure, to keep track of the timeout function. (retry_timeout_cb): don't use RetryData, but the LoadedClient. (cal_opened_cb): ditto, and assigned lc->timeout_id to the return value of g_timeout_add(). (alarm_notify_add_calendar): destroy the timeout callback when destroying the LoadedClient structure. svn path=/trunk/; revision=17178
* Free the uri_string once we're done with it.Jeffrey Stedfast2002-06-132-1/+8
| | | | | | | | | 2002-06-12 Jeffrey Stedfast <fejj@ximian.com> * pcs/cal-factory.c (open_fn): Free the uri_string once we're done with it. svn path=/trunk/; revision=17176
* Fix a typo.Kjartan Maraas2002-06-132-1/+5
| | | | | | | | 2002-06-12 Kjartan Maraas <kmaraas@gnome.org> * gui/dialogs/cal-prefs-dialog.glade: Fix a typo. svn path=/trunk/; revision=17174
* removed already loaded client when asked to be opened again, and *really*Rodrigo Moya2002-06-122-11/+13
| | | | | | | | | | 2002-06-10 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/alarm-notify.c (alarm_notify_add_calendar): removed already loaded client when asked to be opened again, and *really* re-open it again. svn path=/trunk/; revision=17167
* gal_view_menus_set_show_define_views (..., FALSE);Christopher James Lahey2002-06-052-0/+6
| | | | | | | | | 2002-06-04 Christopher James Lahey <clahey@ximian.com> * gui/gnome-cal.c (gnome_calendar_setup_view_menus): gal_view_menus_set_show_define_views (..., FALSE); svn path=/trunk/; revision=17112
* Set the title of our GalViewCollection.Christopher James Lahey2002-06-043-0/+10
| | | | | | | | | | 2002-06-04 Christopher James Lahey <clahey@ximian.com> * gui/e-tasks.c (e_tasks_setup_view_menus), gui/gnome-cal.c (gnome_calendar_setup_view_menus): Set the title of our GalViewCollection. svn path=/trunk/; revision=17103
* In an attempt to clean up the config dialog (and to reduce its overallAnna Marie Dirks2002-06-042-179/+288
| | | | | | | | | | | 2002-06-03 Anna Marie Dirks <anna@ximian.com> * gui/dialogs/cal-prefs-dialog.glade: In an attempt to clean up the config dialog (and to reduce its overall girth), I have re-laid-out the calendar preferences dialog. It now conforms to standard Evolution spacing and padding guidelines, and exhibits proper alignment, etc. svn path=/trunk/; revision=17087
* keep a reference to the Query object, to avoid crashes when the queriesRodrigo Moya2002-06-042-4/+12
| | | | | | | | | | 2002-06-03 Rodrigo Moya <rodrigo@ximian.com> * pcs/query.c: keep a reference to the Query object, to avoid crashes when the queries are destroyed before finishing processing. Fixes #25056. svn path=/trunk/; revision=17080
* update protoJP Rosevear2002-05-274-11/+39
| | | | | | | | | | | | | | | | | | | 2002-05-26 JP Rosevear <jpr@ximian.com> * gui/dialogs/comp-editor.h: update proto * gui/dialogs/comp-editor.c (comp_editor_get_comp): new function to get base comp * gui/e-comp-editor-registry.c (e_comp_editor_registry_add): get the base comp, not the current comp, don't unref it (foreach_close_cb): block the signal, unblock it if the editor could not be closed (e_comp_editor_registry_close_all): fix preconditions (editor_destroy_cb): get the base comp, not the current comp, don't unref it svn path=/trunk/; revision=17020
* if there are remaining items, return false (foreach_close_cb): don'tJP Rosevear2002-05-277-15/+37
| | | | | | | | | | | | | | | | | | | | 2002-05-26 JP Rosevear <jpr@ximian.com> * gui/e-comp-editor-registry.c (e_comp_editor_registry_close_all): if there are remaining items, return false (foreach_close_cb): don't remove the item if it couldn't be closed * gui/e-comp-editor-registry.h: update proto * gui/component-factory.c (request_quit): return a boolean indicating if everything was closed * gui/dialogs/comp-editor.h: update proto * gui/dialogs/comp-editor.c (comp_editor_close): return true if the editor was closed, false otherwise svn path=/trunk/; revision=17019
* a registry of comp editors so we can close them all centrallyJP Rosevear2002-05-2713-205/+451
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-05-26 JP Rosevear <jpr@ximian.com> * gui/e-comp-editor-registry.[hc]: a registry of comp editors so we can close them all centrally * gui/gnome-cal.c (gnome_calendar_init): there is no editor hash now (gnome_calendar_destroy): ditto (gnome_calendar_edit_object): look for the event editor in the registry, if it isn't there, create it and add it to the registry * gui/e-calendar-table.c (open_task): look for the task editor in the registry, if it isn't there, create it and add it to the registry * gui/component-factory.c (request_quit): close all open editors (create_object): add a request_quit function to the shell component * gui/comp-editor-factory.c (free_client): there is no uid_comp_hash to free any more (editor_destroy_cb): we get an OpenClient as callback data now, reduce the editor count and destroy it if it is 0 (edit_existing): don't create the Component, add the new editor to the registry, increase the editor count (edit_new): ditto (open_client): set the editor count to 0 (impl_editExisting): look in the registry for the editor * gui/Makefile.am: Build new sources * gui/main.c (main): create the registry * gui/dialogs/comp-editor.c (comp_editor_close): prompt to save and then close dialog * gui/dialogs/comp-editor.h: new proto * gui/GNOME_Evolution_Calendar.oaf.in: remove dead summary stuff svn path=/trunk/; revision=17018
* check the value returned by gnome_vfs_uri_to_string before using it.Rodrigo Moya2002-05-252-1/+10
| | | | | | | | | | 2002-05-24 Rodrigo Moya <rodrigo@ximian.com> * pcs/cal-backend-file.c (save): check the value returned by gnome_vfs_uri_to_string before using it. (cal_backend_file_open): ditto. svn path=/trunk/; revision=17008
* Pass the @component_pixmaps in so we give the new "Meeting" button anEttore Perazzoli2002-05-215-4/+25
| | | | | | | | | | * gui/dialogs/event-editor.c (event_editor_init): Pass the @component_pixmaps in so we give the new "Meeting" button an icon. * gui/dialogs/comp-editor.c (comp_editor_merge_ui): New arg @component_pixmaps to pass in custom pixmaps. svn path=/trunk/; revision=16955
* ported changes from evolution-1-0 to make it work with reminders on remoteRodrigo Moya2002-05-213-9/+66
| | | | | | | | | | 2002-05-20 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/alarm-notify.c: * gui/alarm-notify/notify-main.c: ported changes from evolution-1-0 to make it work with reminders on remote backends. svn path=/trunk/; revision=16944
* check the string returned by gnome_vfs_uri_to_string, which can be empty.Rodrigo Moya2002-05-202-0/+10
| | | | | | | | | | 2002-05-20 Rodrigo Moya <rodrigo@ximian.com> * pcs/cal-backend-file.c (cal_backend_file_open): check the string returned by gnome_vfs_uri_to_string, which can be empty. If so, return an error. svn path=/trunk/; revision=16940
* set the view to the current viewJP Rosevear2002-05-172-0/+7
| | | | | | | | | 2002-05-17 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.c (gnome_calendar_setup_view_menus): set the view to the current view svn path=/trunk/; revision=16939
* added support for CAL_CLIENT_OPEN_PERMISSION_DENIED error code.Rodrigo Moya2002-05-177-1/+72
| | | | | | | | | | | | | | | | | | | | | | | 2002-05-16 Rodrigo Moya <rodrigo@ximian.com> * gui/gnome-cal.c (client_cal_opened_cb): added support for CAL_CLIENT_OPEN_PERMISSION_DENIED error code. (permission_error): new function to display 'Permission Denied' error message when opening the calendar. * gui/e-tasks.c: likewise. * idl/evolution-calendar.idl: added PERMISSION_DENIED to Listener's OpenStatus enumeration. * cal-client/cal-client.c (cal_opened_cb): added code for retrieving 'Permission Denied' errors, and convert it to CalClientOpenStatus values. * pcs/cal-factory.c (open_backend): added code for informing of 'Permission Denied' errors. svn path=/trunk/; revision=16933
* added PermissionDenied exception and make it be raised in open,Rodrigo Moya2002-05-1717-116/+249
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-05-16 Rodrigo Moya <rodrigo@ximian.com> * idl/evolution-calendar.idl: added PermissionDenied exception and make it be raised in open, updateObjects and removeObject. * pcs/cal-backend.h: added CAL_BACKEND_OPEN_PERMISSION_DENIED to CalBackendOpenStatus enumeration, added CalBackendResult enumeration. * pcs/cal.c: * pcs/cal-backend.c: * pcs/cal-backend-file.c: adapted to changes in update_objects and remove_object methods. * cal-client/cal-client.[ch]: added CalClientResult enumeration. (cal_client_update_object, cal_client_update_objects, cal_client_remove_object): changed to return a CalClientResult. * conduits/calendar/calendar-conduit.c: * calendar/conduits/todo/todo-conduit.c: * importers/icalendar-importer.c: * gui/dialogs/comp-editor.c: * gui/calendar-model.c: * gui/e-calendar-table.c: * gui/e-day-view.c: * gui/e-itip-control.c: * gui/e-week-view.c: * gui/comp-util.c: * gui/e-tasks.c: * gui/tasks-migrate.c: adapted to changes in cal_client_update_object(s) and cal_client_remove_object. svn path=/trunk/; revision=16932
* Check with e_shell_prepare_for_quit() before quitting.Ettore Perazzoli2002-05-163-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-shell-view-menu.c (command_quit): Check with e_shell_prepare_for_quit() before quitting. * e-shell.c (e_shell_prepare_for_quit): New. * evolution-test-component.c (request_quit_fn): New function asking for confirmation to quit. * evolution-shell-component.c (evolution_shell_component_new): New arg @request_quit_fn. (impl_requestQuit): New, implementation for EvolutionShellComponent::requestQuit. (evolution_shell_component_result_to_string): Handle EVOLUTION_SHELL_COMPONENT_CANCEL. (evolution_shell_component_client_request_quit): New. * Evolution-ShellComponent.idl (requestQuit): New. * component-factory.c (create_component): Pass NULL as @request_quit_fn. * component-factory.c (create_component): Pass NULL as @request_quit_fn. * gui/component-factory.c (create_object): Pass NULL as @request_quit_fn. * gui/component/addressbook-component.c (create_component): Pass NULL as @request_quit_fn. svn path=/trunk/; revision=16925
* set the working hours for the meeting time selectorJP Rosevear2002-05-152-0/+11
| | | | | | | | | 2002-05-14 JP Rosevear <jpr@ximian.com> * gui/dialogs/schedule-page.c (schedule_page_construct): set the working hours for the meeting time selector svn path=/trunk/; revision=16786
* make the range datetime member a struct not a pointerJP Rosevear2002-05-155-9/+22
| | | | | | | | | | | | | | | | 2002-05-14 JP Rosevear <jpr@ximian.com> * cal-util/cal-component.h: make the range datetime member a struct not a pointer * cal-util/cal-component.c (cal_component_get_recurid): take a pointer to a range (cal_component_set_recurid): ditto * gui/itip-utils.c (comp_minimal): get/set the recurrence id properly svn path=/trunk/; revision=16785
* Rename NotPrepared to notPrepared and NotSyncing to notSyncing.Ettore Perazzoli2002-05-092-1/+8
| | | | | | | | | | | | | | | | | | * Evolution-Offline.idl: Rename NotPrepared to notPrepared and NotSyncing to notSyncing. * evolution-storage.c (impl_Storage__get_folder_list): Renamed from impl_Storage_get_folder_list(). * Evolution-Storage.idl: Don't typedef FolderList here. Replace `getFolderList' method with a readonly attribute. * gui/e-itip-control.c (get_servers): use GNOME_Evolution_Storage__get_folderList instead of GNOME_Evolution_Storage_getFolderList since I have now changed that to be an attribute instead of a method. svn path=/trunk/; revision=16732
* start a server a uri (start_default_server): start a default serverJP Rosevear2002-05-087-42/+399
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-05-07 JP Rosevear <jpr@ximian.com> * gui/e-itip-control.c (start_calendar_server): start a server a uri (start_default_server): start a default server (get_servers): get all clients for all folders of the given type(s) (find_server): locate a server for a particular uid (init): get_servers, listen for object_requested signal (destroy): destroy all clients (write_html): put options is there own cell (get_publish_options): place selector in if param is true (get_request_options): ditto (get_real_item): only try and look up the item if we know its in the server (show_current_event): find the server (if any) for the current comp (show_current_todo): ditto (update_attendee_status): if there is no server for the comp, it doesn't exist (remove_item): ditto (button_selected_cb): get a client for the selected folder (object_requested_cb): draw the folder button in * gui/calendar-config.h: new protos * gui/calendar-config.c (calendar_config_default_tasks_folder): get default tasks uri (calendar_config_default_calendar_folder): get default calendar uri * cal-client/cal-client.c (get_default_uri): use cal_util_expand_uri * cal-util/cal-util.h: new proto * cal-util/cal-util.c (cal_util_expand_uri): tack on the file name if its a file uri svn path=/trunk/; revision=16709
* show progress messages on the status bar.Rodrigo Moya2002-05-032-0/+11
| | | | | | | | | | 2002-05-03 Rodrigo Moya <rodrigo@ximian.com> * gui/e-tasks.c (e_tasks_delete_selected): (e_tasks_complete_selected): show progress messages on the status bar. svn path=/trunk/; revision=16675
* #include <gtk/gtkmain.h> to avoid warnings.Rodrigo Moya2002-05-032-0/+5
| | | | | | | | 2002-05-02 Rodrigo Moya <rodrigo@ximian.com> * pcs/query.c: #include <gtk/gtkmain.h> to avoid warnings. svn path=/trunk/; revision=16669
* only discard the popup if we created oneJP Rosevear2002-05-022-0/+9
| | | | | | | | | 2002-05-02 JP Rosevear <jpr@ximian.com> * gui/e-week-view.c (free_view_popup): only discard the popup if we created one svn path=/trunk/; revision=16663
* refactored a bit, to not do things in idle loops.Rodrigo Moya2002-05-022-83/+80
| | | | | | | | 2002-05-02 Rodrigo Moya <rodrigo@ximian.com> * pcs/query.c: refactored a bit, to not do things in idle loops. svn path=/trunk/; revision=16662
* modify the start and end hours to accomodate all the events in the dayJP Rosevear2002-05-023-0/+35
| | | | | | | | | | | | 2002-05-01 JP Rosevear <jpr@ximian.com> * gui/print.c (print_day_details): modify the start and end hours to accomodate all the events in the day * gui/e-day-view.c (free_view_popup): only discard the popup if we created one svn path=/trunk/; revision=16655
* remove setup_widgets from here (gnome_calendar_init): move setup_widgetsJP Rosevear2002-05-012-2/+7
| | | | | | | | | | 2002-04-30 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.c (gnome_calendar_construct): remove setup_widgets from here (gnome_calendar_init): move setup_widgets back here svn path=/trunk/; revision=16650
* can't even spell my own name right!!Jeffrey Stedfast2002-04-271-1/+1
| | | | | | Oh the humanity! svn path=/trunk/; revision=16619
* Don't link to libibex anymore!!Jeffrey Stefdast2002-04-272-1/+4
| | | | | | | | 2002-04-26 Jeffrey Stefdast <fejj@ximian.com> * gui/Makefile.am: Don't link to libibex anymore!! svn path=/trunk/; revision=16616
* launch pilot settings cappletJP Rosevear2002-04-243-0/+65
| | | | | | | | | | | 2002-04-24 JP Rosevear <jpr@ximian.com> * gui/e-day-view.c (e_day_view_on_pilot_settings): launch pilot settings capplet * gui/e-week-view.c (e_week_view_on_pilot_settings): ditto svn path=/trunk/; revision=16573
* free the view popup (e_week_view_show_popup_menu): add the view popup toJP Rosevear2002-04-247-30/+112
| | | | | | | | | | | | | | | | | | | | | | | | 2002-04-24 JP Rosevear <jpr@ximian.com> * gui/e-week-view.c (free_view_popup): free the view popup (e_week_view_show_popup_menu): add the view popup to the "main_item" menu and listen for destruction * gui/e-day-view.c (free_view_popup): as above (e_day_view_on_event_right_click): as above * gui/e-week-view.h: add class member * gui/e-day-view.h: add a class member * gui/gnome-cal.h: new protos * gui/gnome-cal.c (set_view): set the instance view id properly when switching views (gnome_calendar_setup_view_popup): generate a view popup (gnome_calendar_discard_view_popup): destroy a view popup svn path=/trunk/; revision=16572
* raise an exception if the backend's method returns NULL, since we can'tRodrigo Moya2002-04-222-0/+11
| | | | | | | | | | 2002-04-22 Rodrigo Moya <rodrigo@ximian.com> * pcs/cal.c (impl_Cal_get_alarms_in_range): raise an exception if the backend's method returns NULL, since we can't send a NULL pointer to ORBit. svn path=/trunk/; revision=16554
* Collapsed notebook into two pages and added accelerators for everything,Anna Marie Dirks2002-04-202-354/+332
| | | | | | | | | | 2002-04-19 Anna Marie Dirks <anna@ximian.com> * gui/dialogs/cal-prefs-dialog.glade: Collapsed notebook into two pages and added accelerators for everything, as part of my config dialog polishing project svn path=/trunk/; revision=16540
* properly handle -ve recurrence valuesJP Rosevear2002-04-192-67/+273
| | | | | | | | | | | | | | | | | | | | | 2002-04-18 JP Rosevear <jpr@ximian.com> * gui/dialogs/recurrence-page.c (simple_recur_to_comp): properly handle -ve recurrence values (month_num_submenu_selection_done_cb): track the current date in use (make_recur_month_num_submenu): make a submenu of dates (make_recur_month_num_menu): make the date/relation option menu (month_num_menu_selection_done_cb): update the date properly and keep both option menus consistent (month_day_menu_selection_done_cb): keep both option menus consistent (make_monthly_special): listen for selection done signal (make_recurrence_special): destroy old month_num_menu (recurrence_page_fill_widgets): properly handle -ve recurrence values svn path=/trunk/; revision=16526
* show the settingsJP Rosevear2002-04-196-6/+90
| | | | | | | | | | | | | | | | | | 2002-04-18 JP Rosevear <jpr@ximian.com> * gui/e-day-view.c (e_day_view_on_settings): show the settings * gui/e-week-view.c (e_week_view_on_settings): ditto * gui/calendar-commands.c (control_util_show_settings): show the settings dialog * gui/calendar-commands.h: new proto * gui/control-factory.c (control_factory_new_control): set the control as object data on the calendar svn path=/trunk/; revision=16511
* Bumped required gal version number to 0.19.99.11.Christopher James Lahey2002-04-185-119/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-04-17 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped required gal version number to 0.19.99.11. From addressbook/ChangeLog: 2002-04-17 Christopher James Lahey <clahey@ximian.com> * gui/component/select-names/e-select-names.c (e_select_names_create_categories): Changed this to use ECategoriesMasterListOptionMenu. * gui/component/select-names/e-select-names.c (section_right_click_cb), gui/widgets/e-addressbook-reflow-adapter.c, gui/widgets/e-addressbook-view.c: Updated these to match the new EPopupMenu. From calendar/ChangeLog: 2002-04-17 Christopher James Lahey <clahey@ximian.com> * gui/e-calendar-table.c, gui/e-day-view.c, gui/e-week-view.c, gui/dialogs/meeting-page.c: Updated these to match the new EPopupMenu. From mail/ChangeLog: 2002-04-17 Christopher James Lahey <clahey@ximian.com> * folder-browser.c, mail-display.c: Updated these to match the new EPopupMenu. From shell/ChangeLog: 2002-04-17 Christopher James Lahey <clahey@ximian.com> * e-activity-handler.c: Updated this to match the new EPopupMenu. svn path=/trunk/; revision=16498
* new method.Rodrigo Moya2002-04-127-2/+69
| | | | | | | | | | | | | | | 2002-04-05 Rodrigo Moya <rodrigo@ximian.com> * pcs/cal-backend.[ch] (cal_backend_get_query): new method. * pcs/cal-backend-file.c (cal_backend_file_get_query): new method. * pcs/cal.c (impl_Cal_get_query): call the CalBackend's implementation instead of calling query_new directly. * pcs/query.[ch]: fixed headers. svn path=/trunk/; revision=16443
* Fix this: Rodrigo's patch used one of the functions I just removed. :)Dan Winship2002-04-112-12/+11
| | | | | | | * gui/gnome-cal.c (gnome_calendar_open): Fix this: Rodrigo's patch used one of the functions I just removed. :) svn path=/trunk/; revision=16433
* use the default uri for tasks (as stored in the configuration) when theRodrigo Moya2002-04-112-22/+14
| | | | | | | | | | 2002-04-10 Rodrigo Moya <rodrigo@ximian.com> * gui/gnome-cal.c (gnome_calendar_open): use the default uri for tasks (as stored in the configuration) when the calendar URI is not a local one (connector, etc). svn path=/trunk/; revision=16427
* Use new-and-improved default folder URI config paths.Dan Winship2002-04-116-103/+31
| | | | | | | | | | | | | | * cal-client/cal-client.c (get_default_uri): Use new-and-improved default folder URI config paths. * gui/calendar-config.c (calendar_config_{get,set}_default_uri, calendar_config_{get,set}_default_tasks_uri): Remove these. The shell owns this information now. (Weren't being used anyway.) * gui/component-factory.c (get_data_uri): Fix another place that hardcoded tacking foo.ics on to the end of URLs. svn path=/trunk/; revision=16421
* Add view_info arg. If the view_info is non-empty and this is a calendarDan Winship2002-04-095-9/+76
| | | | | | | | | | | | | | | | | | | * gui/component-factory.c (create_view): Add view_info arg. If the view_info is non-empty and this is a calendar folder, set the "view" property on the control's propertybag. * gui/control-factory.c (calendar_properties_init): Set up the "view" property. (get_prop, set_prop): handle the "view" property by getting/setting the GnomeCalendar's view. Unfortunately, this doesn't actually work. See #23208. * gui/calendar-commands.c (calendar_control_activate): Set the UI component's container before calling gnome_calendar_set_ui_component so that the search bar initialization will work. svn path=/trunk/; revision=16400
* Oops.JP Rosevear2002-04-071-0/+4
| | | | svn path=/trunk/; revision=16382
* Remove dead files.JP Rosevear2002-04-072-1250/+0
| | | | | | | | 2002-04-06 JP Rosevear <jpr@ximian.com> * pcs/cal-backend-db.[hc]: Remove dead files. svn path=/trunk/; revision=16381
* add config_item:typeJP Rosevear2002-04-072-0/+9
| | | | | | | | 2002-04-06 JP Rosevear <jpr@ximian.com> * gui/GNOME_Evolution_Calendar.oaf.in: add config_item:type svn path=/trunk/; revision=16380
* ignore .pureChris Toshok2002-04-022-0/+2
| | | | svn path=/trunk/; revision=16312
* Fix a string.Kjartan Maraas2002-04-022-1/+5
| | | | | | | | 2002-04-01 Kjartan Maraas <kmaraas@gnome.org> * gui/e-itip-control.c: Fix a string. svn path=/trunk/; revision=16310
* simple fix for DB3 header inclusion in Mac OS X, by Max HornRodrigo Moya2002-04-022-0/+9
| | | | | | | | | 2002-04-01 Rodrigo Moya <rodrigo@ximian.com> * pcs/cal-backend-db.c: simple fix for DB3 header inclusion in Mac OS X, by Max Horn <max@quendi.de> svn path=/trunk/; revision=16309
* free the my_address member (find_my_address): fall back on a CN match ifJP Rosevear2002-04-012-97/+158
| | | | | | | | | | | | | | | | 2002-03-31 JP Rosevear <jpr@ximian.com> * gui/e-itip-control.c (clean_up): free the my_address member (find_my_address): fall back on a CN match if possible (change_status): handle changing the status of a non-existent address by adding a new attendee (update_attendee_status): if the attendee response is not from a user on the list of attendees, ask the user if they want to add the attendee any how (as an optional participant) (ok_clicked_cb): if we are suppose to rsvp and the status was ok, but the attendee address is not known, find it svn path=/trunk/; revision=16303
* Set a priority for the config item. Rename to "Calendar and Tasks".Ettore Perazzoli2002-03-302-2/+9
| | | | | | | * gui/GNOME_Evolution_Calendar.oaf.in: Set a priority for the config item. Rename to "Calendar and Tasks". svn path=/trunk/; revision=16293
* s/libversit.la/libversit.a/JP Rosevear2002-03-303-2/+8
| | | | | | | | | | 2002-03-29 JP Rosevear <jpr@ximian.com> * conduits/calendar/Makefile.am: s/libversit.la/libversit.a/ * conduits/todo/Makefile.am: ditto svn path=/trunk/; revision=16288
* implement new pop up menu items for "Save as", "Print", "Assign Task",JP Rosevear2002-03-307-116/+664
| | | | | | | | | | | | | | | | | | | | | | | | 2002-03-29 JP Rosevear <jpr@ximian.com> * gui/e-calendar-table.c: implement new pop up menu items for "Save as", "Print", "Assign Task", "Forward as iCalendar" * gui/e-day-view.c: similarly, also "Publish Free/Busy Information" and "New Meeting" and "New Task" * gui/e-week-view.c: ditto * gui/dialogs/task-editor.c (show_assignment): move the assignment page stuff here (task_editor_show_assignment): use it (assign_task_cmd): ditto * gui/dialogs/task-editor.h: new proto * gui/dialogs/comp-editor.c (save_as_cmd): use new e-util file selector function svn path=/trunk/; revision=16287
* Remove old fileJP Rosevear2002-03-302-490/+0
| | | | | | | | | | 2002-03-29 JP Rosevear <jpr@ximian.com> * meeting-mockup.glade: Remove old file * topic.dat svn path=/trunk/; revision=16283
* more fixes for libversit.la -> libversit.aDan Winship2002-03-204-4/+11
| | | | svn path=/trunk/; revision=16211
* [Search bar re-design implementation, Take 2.]Ettore Perazzoli2002-03-192-31/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-search-bar.c (clear_verb_cb): New. (setup_standard_verbs): New. (e_search_bar_set_ui_component): Call it if a new BonoboUIComponent is set. (append_xml_menu_item): New helper function. (update_bonobo_menus): Use it. Also add a "Clear" menu item. (e_search_bar_construct): @menu_items can be NULL now. (e_search_bar_new): Same here. (set_menu): Work with NULL items. * e-filter-bar.c (menubar_activated): Don't handle E_FILTERBAR_RESET_ID anymore. * e-filter-bar.h: Remove `E_FILTERBAR_RESET_ID' and `E_FILTERBAR_RESET'. * folder-browser.c: Remove E_FILTERBAR_RESET menu entry. * gui/cal-search-bar.c: Removed `search_menu_items'. (cal_search_bar_menu_activated): Removed. (cal_search_bar_class_init): Don't install. (cal_search_bar_construct): No menu items here. * gui/component/addressbook.c (addressbook_menu_activated): Removed. (addressbook_factory_new_control): Don't connect anymore, as this signal has been removed from the ESearchBar. (addressbook_factory_new_control): No more custom menu items here. svn path=/trunk/; revision=16194
* Updated to use new EPopupMenu API.Jeffrey Stedfast2002-03-165-61/+72
| | | | | | | | | | | | 2002-03-15 Jeffrey Stedfast <fejj@ximian.com> * gui/e-day-view.c: Updated to use new EPopupMenu API. * gui/e-week-view.c: Updated to use new EPopupMenu API. * gui/e-calendar-table.c: Updated to use new EPopupMenu API. svn path=/trunk/; revision=16184
* [Start implementing the new Search Bar design.]Ettore Perazzoli2002-03-168-8/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-search-bar.c (init): Init various members to NULL. (set_dropdown): Removed. (add_dropdown): Removed. (set_menu): New. (add_menu_items): New. (set_option): No need to setup the dropdown size here anymore. (verb_cb): Function implementing the search menu verbs. (update_bonobo_menus): New. (e_search_bar_set_ui_component): New. * e-search-bar.h: Remove the dropdown button stuff from struct ESearchBar. Add `uic' and `items' members. * e-filter-bar.c (e_filter_bar_new): Get a @uic arg. * folder-browser-factory.c (control_activate): Set the UI component on the search bar. * gui/tasks-control.c (tasks_control_activate): Call `e_tasks_set_ui_component()' here to give it the BonoboUIComponent. (tasks_control_deactivate): Likewise, call it here to unset the BonoboUIComponent. * gui/e-tasks.c (e_tasks_set_ui_component): New. * gui/calendar-commands.c (calendar_control_activate): Call gnome_calendar_set_ui_component() here. (calendar_control_deactivate): ...And here, with a NULL BonoboUIComponent. * gui/gnome-cal.c (gnome_calendar_set_ui_component): New. * gui/component/addressbook.c (control_activate): Call `e_search_bar_set_ui_component()' to set the BonoboUIComponent for the search bar. * gui/component/GNOME_Evolution_Addressbook.oaf.in: Add an icon for the LDAP sources configuration control. svn path=/trunk/; revision=16178
* use bonobo exception macros to tidyJP Rosevear2002-03-157-41/+43
| | | | | | | | | | | | | | | | 2002-03-15 JP Rosevear <jpr@ximian.com> * gui/main.c: use bonobo exception macros to tidy * gui/itip-control-factory.c: ditto * gui/gnome-cal.c: ditto * gui/comp-editor-factory.c: ditto * gui/calendar-commands.c: ditto svn path=/trunk/; revision=16172
* add all day event editor modeJP Rosevear2002-03-156-117/+119
| | | | | | | | | | | | | | | | | | | 2002-03-14 JP Rosevear <jpr@ximian.com> * idl/evolution-calendar.idl: add all day event editor mode * gui/component-factory.c: clean up exception handling (sc_user_create_new_item_cb): support the all day event id (create_object): add a user creatable all day appointment item * gui/comp-editor-factory.c (get_default_event): get a default event either all day or starting at the top of the hour (get_default_task): get a default task (edit_new): support the all day event mode * gui/calendar-commands.c: remove unused functions/verbs svn path=/trunk/; revision=16157
* Add an "evolution:config_item:icon_path" attribute so we get an icon forEttore Perazzoli2002-03-142-0/+9
| | | | | | | | * gui/GNOME_Evolution_Calendar.oaf.in: Add an "evolution:config_item:icon_path" attribute so we get an icon for the calendar preferences. svn path=/trunk/; revision=16141
* Add <visible>False</visible> to cal-prefs-dialog so it doesn't get shownEttore Perazzoli2002-03-1312-395/+447
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/dialogs/cal-prefs-dialog.glade: Add <visible>False</visible> to cal-prefs-dialog so it doesn't get shown when we load the Glade file with libglade. * gui/component-factory.c (owner_set_cb): Register the ConfigControl factory. * gui/tasks-control.c: Removed verb "TaskSettings". (tasks_control_settings_cmd): Removed. * gui/calendar-commands.c: Removed verb "CalendarSettings". (settings_cmd): Removed. * gui/dialogs/cal-prefs-dialog.c: Renamed `CalPrefsDialogPrivate' to `DialogData'. Replace `dialog' member with a `page' member. Remove `toplevel_notebook' member. (init_widgets): Renamed from `cal_prefs_dialog_init_widgets'. Just get a DialogData. (get_widgets): Get a DialogData pointer. (cal_prefs_dialog_destroy): Removed. (config_control_destroy_callback): New, signal handler for ::destroy for ConfigControl. (cal_prefs_dialog_new): Create a new DialogData, connect all the signal handlers. (create_time_edit): Renamed from `cal_prefs_dialog_create_time_edit'. (cal_prefs_dialog_show): Removed. (cal_prefs_dialog_button_clicked): Removed. (show_task_list_config): Get a DialogData. (show_config): Renamed from `cal_prefs_dialog_show_config'. Likewise. (update_task_list_config): Likewise. (update_config): Renamed from `cal_prefs_dialog_update_config'. Likewise. (color_set_callback): New callback, makes the dialog report changes when the setting in any of the color widgets is changed. (widget_changed_callback): New callback, makes the dialog report changes when any of the widgets changes status. (connect_changed): New utility function to connect this callback to all the widgets. (setup_widgets): Connect all the widgets. (cal_prefs_dialog_new): Call `setup_widgets'. * gui/config-control-factory.c: New. * gui/config-control-factory.h: New. * gui/GNOME_Evolution_Calendar.oaf.in: Add OAFIID:GNOME_Evolution_Calendar_ConfigControl and OAFIID:GNOME_Evolution_Calendar_ConfigControlFactory. svn path=/trunk/; revision=16135
* Should fix #21240Rodrigo Moya2002-03-072-22/+38
| | | | | | | | | | | 2002-03-06 Rodrigo Moya <rodrigo@ximian.com> Should fix #21240 * gui/alarm-notify/alarm-notify.c: replaced use of GnomeVFSURI with EUri, to allow non-registered methods. svn path=/trunk/; revision=15944
* reverted my last change of adding the METHOD property to the incomingRodrigo Moya2002-03-063-2/+37
| | | | | | | | | | | | | 2002-03-05 Rodrigo Moya <rodrigo@ximian.com> * gui/e-itip-control.c (e_itip_control_set_data): reverted my last change of adding the METHOD property to the incoming request. * gui/itip-utils.c (comp_string): added extra X-MICROSOFT-CDO-REPLYTIME property for broken Outlook. Should fix #20783. svn path=/trunk/; revision=15940
* [pullup from evolution-1-0-branch]Dan Winship2002-03-062-0/+11
| | | | | | | | | * gui/itip-utils.c (comp_compliant): Reset the DTSTAMP of the new component. (RFC2245 says DTSTAMP corresponds to the time the particular iCalendar representation of the object was created.) Fixes #21198. svn path=/trunk/; revision=15930
* remove unneeded parameter from print_text_size everywhereJP Rosevear2002-03-066-69/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-05 JP Rosevear <jpr@ximian.com> * gui/print.c: remove unneeded parameter from print_text_size everywhere (get_font_for_size): calculate a font size based on the available height (print_text): calculate the top of where the font should be drawn (print_text_size): use get_font_for_size (print_day_background): use get_font_for_size 2002-03-05 JP Rosevear <jpr@ximian.com> * gui/e-meeting-time-sel-item.c (e_meeting_time_selector_item_draw): pass the real table to e_meeting_model_etable_view_to_model_row (e_meeting_time_selector_item_paint_busy_periods): ditto * gui/dialogs/meeting-page.c (right_click_cb): ditto * gui/e-meeting-model.h: update protos * gui/e-meeting-model.c (e_meeting_model_etable_model_to_view_row): take in to account the fact the table used the without model (e_meeting_model_etable_view_to_model_row): ditto svn path=/trunk/; revision=15926
* added support for printing the Tasks table. I hacked it a bit so the userDamon Chaplin2002-03-052-0/+220
| | | | | | | | | | | 2002-03-04 Damon Chaplin <damon@ximian.com> * gui/tasks-control.c: added support for printing the Tasks table. I hacked it a bit so the user could choose portrait or landscape mode. This is bug #9677. ETable printing has a few issues, though, and it isn't very pretty. svn path=/trunk/; revision=15906
* [pullup from evolution-1-0-branch]Dan Winship2002-03-042-80/+93
| | | | | | | | | * gui/itip-utils.c (comp_subject): Prefix the subject with an indicator like "Accepted" or "Cancelled" explaining what the action is, since Outlook doesn't display any of that information inline like we do. (20780) svn path=/trunk/; revision=15896
* added the METHOD property to the top level component we create.Rodrigo Moya2002-03-012-0/+7
| | | | | | | | | 2002-02-28 Rodrigo Moya <rodrigo@ximian.com> * calendar/gui/e-itip-control.c (e_itip_control_set_data): added the METHOD property to the top level component we create. svn path=/trunk/; revision=15880
* display an error message if the call to gnome_calendar_open orRodrigo Moya2002-02-273-2/+29
| | | | | | | | | | | 2002-02-26 Rodrigo Moya <rodrigo@ximian.com> * gui/control-factory.c (set_prop): * gui/tasks-control.c (tasks_control_set_property): display an error message if the call to gnome_calendar_open or e_tasks_open does not return TRUE. Fixes #20346. svn path=/trunk/; revision=15845
* [pullup from evolution-1-0-branch]Dan Winship2002-02-262-33/+17
| | | | | | | | | | | * gui/itip-utils.c (itip_send_comp): use GNOME_Evolution_Composer_setBody rather than _setMultipartType and _attachData now, to send a message containing just a text/calendar part. Fixes 14705. Mostly. (comp_content_type): Include the filename here since we can't add a Content-Disposition now. svn path=/trunk/; revision=15834
* change query_changed to search_activated.Chris Toshok2002-02-252-4/+11
| | | | | | | | | | | 2002-02-24 Chris Toshok <toshok@ximian.com> * gui/cal-search-bar.c (cal_search_bar_class_init): change query_changed to search_activated. (cal_search_bar_search_activated): rename cal_search_bar_query_changed to this. svn path=/trunk/; revision=15830
* New helper function. (create_object): Add icons for the various userEttore Perazzoli2002-02-223-32/+88
| | | | | | | | * gui/component-factory.c (add_creatable_item): New helper function. (create_object): Add icons for the various user creatable items. svn path=/trunk/; revision=15790
* pass extra itip_send_comp params (send_freebusy): ditto (ok_clicked_cb):JP Rosevear2002-02-2010-63/+177
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 002-02-19 JP Rosevear <jpr@ximian.com> * gui/e-itip-control.c (send_item): pass extra itip_send_comp params (send_freebusy): ditto (ok_clicked_cb): ditto, including the timezones culled from the component * gui/e-week-view.c: pass extra itip_send_comp params * gui/calendar-commands.c: ditto * gui/e-day-view.c: ditto * gui/dialogs/task-editor.c: ditto * gui/dialogs/event-editor.c: ditto * gui/dialogs/comp-editor.c: ditto * gui/itip-utils.h (itip_send_comp): update proto * gui/itip-utils.c (foreach_tzid_callback): check the passed in zones, then the builtin time zones then the client 2002-02-19 JP Rosevear <jpr@ximian.com> * gui/e-itip-control.c (find_my_address): strip the ical value and do a case insensitive compare (find_attendee): ditto (change_status): put the error message here (ok_clicked_cb): don't update the item or rsvp unless change_status was successful, trip the ical value and do a case insensitive compare * gui/itip-utils.c (get_address): strip the incoming address (itip_strip_mailto): use g_strncasecmp (comp_limit_attendees): strip the ical value and do a case insensitive compare svn path=/trunk/; revision=15763
* use new column enums (set_value_at): emit pre-change/cell change signalsJP Rosevear2002-02-167-318/+570
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-14 JP Rosevear <jpr@ximian.com> * gui/e-meeting-model.c: use new column enums (set_value_at): emit pre-change/cell change signals (destroy): destroy refresh_queue and refresh_data (init): init new elements (refresh_queue_add): if the attendee is being refreshed already, possibly update the start/end times to look for and update the callback info, otherwise add it to the queue (refresh_queue_remove): remove a refreshing attende from the queue (process_callbacks): make all the callbacks and remove the attendee from the queue (process_free_busy): process the callbacks immediately if parsing fails or on successful completion of processing (async_close): process free busy (cursor_cb): we're only looking for one at a time now (refresh_busy_periods): idle callback to start processing the queue (e_meeting_model_refresh_all_busy_periods): add every row to the queue (e_meeting_model_refresh_busy_periods): add a single row to the queue * gui/e-meeting-model.h: new protos, enum the columns * gui/e-meeting-time-sel.c: use new compare time function (e_meeting_time_selector_construct): listen for a cell changed signal and use separate callbacks for rows_inserted and rows_deleted (e_meeting_time_selector_refresh_free_busy): util function to refresh free busy info (e_meeting_time_selector_on_update_free_busy): use above (rows_inserted_cb): refresh free busy on the new rows (cell_changed_cb): refresh free busy on the row when the address changes (rows_deleted_cb): redraw * gui/e-meeting-utils.[hc]: a holding spot for a meeting time comparison function * gui/Makefile.am: compile new files svn path=/trunk/; revision=15741
* don't append 'calendar.ics' to the URI. (get_prop): finished.Rodrigo Moya2002-02-145-32/+57
| | | | | | | | | | | | | | | | | | 2002-02-13 Rodrigo Moya <rodrigo@ximian.com> * gui/control-factory.c (set_prop): don't append 'calendar.ics' to the URI. (get_prop): finished. * gui/tasks-control.c (tasks_control_set_property): don't append 'tasks.ics' to the URI. (tasks_control_get_property): finished. * gui/gnome-cal.c (gnome_calendar_open): * gui/e-tasks.c (e_tasks_open): append $filename.ics to the uri to be opened if the uri is local. Leave intact in other cases. svn path=/trunk/; revision=15724
* check if the CalComponentDateTime values are set before trying to useDamon Chaplin2002-02-092-15/+28
| | | | | | | | | | 2002-02-08 Damon Chaplin <damon@ximian.com> * gui/comp-util.c (cal_comp_util_compare_event_timezones): check if the CalComponentDateTime values are set before trying to use them. Possibly fixes bug #18529. svn path=/trunk/; revision=15630
* added vCalendar importer and intelligent GnomeCalendar importer code here,Damon Chaplin2002-02-097-102/+627
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-08 Damon Chaplin <damon@ximian.com> * importers/icalendar-importer.c: added vCalendar importer and intelligent GnomeCalendar importer code here, as it shares a lot of code with the iCalendar importer. NOTE: check_folder_type() needs to be finished at some point. It needs a new shell Corba call so it can decide whether to import events or tasks into the folder. Currently it just imports both. * importers/main.c (importer_factory_fn): create vCalendar importer or GnomeCalendar importer if required. * importers/evolution-calendar-importer.h: added declarations for creating a vCalendar importer and intelligent Gnome Calendar importer. * importers/Makefile.am: added -DEVOLUTION_SOUNDDIR so the importer knows what filename to use for audio alarms in vCalendar files. Added libicalvcal-evolution to LDADD. * importers/GNOME_Evolution_Calendar_Importer.oaf.in: added vCalendar importer and intelligent Gnome Calendar importer. * gui/comp-util.c (cal_comp_util_compare_event_timezones): return TRUE if the event uses UTC. We don't want to flag all events from Outlook, which use UTC. svn path=/trunk/; revision=15628
* change custom widget creator to e_url_entry_newJP Rosevear2002-02-093-41/+20
| | | | | | | | | | | | 2002-02-08 JP Rosevear <jpr@ximian.com> * gui/dialogs/task-details-page.glade: change custom widget creator to e_url_entry_new * gui/dialogs/task-details-page.c (get_widgets): get the url entry and its entry svn path=/trunk/; revision=15622
* add a custom widget created with e_url_button_newJP Rosevear2002-02-094-10/+56
| | | | | | | | | | | | | | | | 2002-02-08 JP Rosevear <jpr@ximian.com> * gui/dialogs/task-details-page.glade: add a custom widget created with e_url_button_new * gui/dialogs/task-details-page.c (task_details_page_init): init url_button member to NULL (init_widgets): set the url button entry (get_widgets): get the url button * gui/calendar-commands.c (pixmaps): use new all day event icon svn path=/trunk/; revision=15610
* pass meeting boolean for gnome_calendar_edit_object andJP Rosevear2002-02-0815-100/+212
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-07 JP Rosevear <jpr@ximian.com> * gui/e-day-view.c: pass meeting boolean for gnome_calendar_edit_object and gnome_calendar_new_appointment_for * gui/e-week-view-event-item.c: ditto * gui/e-week-view.c: ditto * gui/tasks-control.c (confirm_expunge): kill warning * gui/calendar-commands.c (new_meeting_cb): show a new meeting dialog (new_event_cb): pass new param * gui/gnome-cal.c (gnome_calendar_edit_object): take meeting boolean and show meeting page if true (gnome_calendar_new_appointment_for): takeing meeting param and pass to above (gnome_calendar_new_appointment): add new param * gui/gnome-cal.h: update proto * gui/component-factory.c (create_component): take a comp editor mode, determine vtype (sc_user_create_new_item_cb): check for meeting user creatable item (create_object): add meeting as user creatable item * gui/comp-editor-factory.c (edit_new): get a comp editor mode now, determine vtype and show meeting page if required (queue_edit_new): get comp editor mode (impl_editNew): ditto, plus queue the mode directly instead of determining the vtype * gui/dialogs/event-editor.c (show_meeting): new internal util function to show meeting page (event_editor_show_meeting): show the meeting (schedule_meeting_cmd): use show_meeting * gui/dialogs/event-editor.h: new proto * idl/evolution-calendar.idl: editNew takes a mode rather than a type now * cal-util/Makefile.am: fix includes svn path=/trunk/; revision=15595
* Bumped the required version of gal.Christopher James Lahey2002-02-073-67/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-07 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped the required version of gal. From addressbook/ChangeLog: 2002-02-07 Christopher James Lahey <clahey@ximian.com> * gui/widgets/e-addressbook-view.c (e_addressbook_view_setup_menus): Changed this function to use the new GalViewMenus which takes a GalViewInstance, instead of a GalViewCollection. From calendar/ChangeLog: 2002-02-07 Christopher James Lahey <clahey@ximian.com> * gui/e-tasks.c (e_tasks_setup_view_menus), gui/gnome-cal.c (gnome_calendar_setup_view_menus): Made these use the new GalViewMenus stuff. From mail/ChangeLog: 2002-02-07 Christopher James Lahey <clahey@ximian.com> * folder-browser.c, folder-browser.h, folder-browser-ui.c, folder-browser-ui.h (folder_browser_ui_setup_view_menus, folder_browser_ui_discard_view_menus): Changed this to use the new GalViewMenus stuff. Made these exported functions. * mail-callbacks.c, message-browser.c: Changed these to not pass the now removed row parameter to message_list_select. * mail-config.c, mail-config.h (mail_config_folder_to_safe_url): Refactored this out of mail_config_folder_to_cachename. * message-list.c, message-list.h (message_list_select): Removed the row argument. Changed this to use the new function in ETree for finding the next cursor row that matches a test. (message_list_construct): Handle a failed construction of the ETree here. (message_list_setup_etree, save_tree_state): Don't load or save the header state. folder-browser-ui.c deals with this now. From views/ChangeLog: 2002-02-07 Christopher James Lahey <clahey@ximian.com> * addressbook/galview.xml, calendar/galview.xml, mail/galview.xml, tasks/galview.xml: Added default-view parameters. * mail/As_Sent_Folder.galview: New galview. * mail/Makefile.am, mail/galview.xml: Added As_Sent_Folder galview. From widgets/ChangeLog: 2002-02-07 Christopher James Lahey <clahey@ximian.com> * menus/gal-view-menus.c, menus/gal-view-menus.h (gal_view_menus_new): Made this take a GalViewInstance instead of a GalViewCollection. Reworked most of this to utilize the interfaces provided by GalViewInstance. svn path=/trunk/; revision=15592
* convert months from 1-12 to 0-11. Fixes bug #19235.Damon Chaplin2002-02-072-0/+11
| | | | | | | | | 2002-02-06 Damon Chaplin <damon@ximian.com> * cal-util/cal-recur.c (cal_recur_from_icalproperty): convert months from 1-12 to 0-11. Fixes bug #19235. svn path=/trunk/; revision=15584
* new gui routines for conduit settings (e_todo_gui_fill_config): dittoJP Rosevear2002-02-052-6/+88
| | | | | | | | | | | | | | | | | 2002-02-04 JP Rosevear <jpr@ximian.com> * conduits/todo/todo-conduit.c (e_todo_gui_new): new gui routines for conduit settings (e_todo_gui_fill_config): ditto (e_todo_gui_fill_widgets): ditto (e_todo_gui_destroy): ditto (e_todo_context_destroy): destroy new_cfg and gui properly (local_record_from_comp): set the priority to the default setting if none is set on the icalendar object (fill_widgets): fill gui widgets (create_settings_window): create gui svn path=/trunk/; revision=15569
* if this is a reply, print the attendee statusJP Rosevear2002-01-312-0/+39
| | | | | | | | | 2002-01-30 JP Rosevear <jpr@ximian.com> * gui/e-itip-control.c (write_html): if this is a reply, print the attendee status svn path=/trunk/; revision=15531
* Use 1 instead of zero as the minimum value for the repetitions spin buttonFederico Mena Quintero2002-01-262-1/+8
| | | | | | | | | | | 2002-01-25 Federico Mena Quintero <federico@ximian.com> * gui/dialogs/alarm-options.glade: Use 1 instead of zero as the minimum value for the repetitions spin button as we use a check box to specify whether the alarm has repetitions or not. Fixes bug #19054. svn path=/trunk/; revision=15472
* Ooops. Forgot to use EVOLUTION_CALENDAR_LIBS here.Ettore Perazzoli2002-01-252-1/+6
| | | | | | | * importers/Makefile.am (evolution_calendar_importer_LDADD): Ooops. Forgot to use EVOLUTION_CALENDAR_LIBS here. svn path=/trunk/; revision=15462
* Clean up some of the Makefiles so we dont' link every library multipleEttore Perazzoli2002-01-2510-68/+45
| | | | | | times, causing big libtool 1.4 pain. svn path=/trunk/; revision=15461
* Pass a NULL @icon toEttore Perazzoli2002-01-243-8/+13
| | | | | | | * gui/component-factory.c (create_object): Pass a NULL @icon to `evolution_shell_component_add_user_creatable_item()'. svn path=/trunk/; revision=15440
* Buffers Files Tools Edit Search Mule HelpJP Rosevear2002-01-223-11/+31
| | | | | | | | | | | | | | 2002-01-21 JP Rosevear <jpr@ximian.com> * conduits/todo/todo-conduit.c (todoconduit_load_configuration): return a new configuration struct, load default priority setting (todoconduit_save_configuration): save default priority setting (e_todo_context_new): dupe configuration * conduits/calendar/calendar-conduit.c (e_calendar_context_new): set ps to NULL svn path=/trunk/; revision=15419
* save the alarm string in the correct variable (str), so it actually getsDamon Chaplin2002-01-182-2/+7
| | | | | | | | | | 2002-01-17 Damon Chaplin <damon@ximian.com> * gui/dialogs/alarm-page.c (get_alarm_string): save the alarm string in the correct variable (str), so it actually gets shown for alarms with specific trigger times. Fixes bug #18801. svn path=/trunk/; revision=15352
* default component classification to PUBLIC. Fixes internal bug #1066Rodrigo Moya2002-01-172-3/+10
| | | | | | | | | 2002-01-15 Rodrigo Moya <rodrigo@ximian.com> * gui/dialogs/task-page.c (task_page_fill_widgets): default component classification to PUBLIC. Fixes internal bug #1066 svn path=/trunk/; revision=15348
* move all functions here, get rid of header files, use e-pilot-settings toJP Rosevear2002-01-1511-568/+509
| | | | | | | | | | | 2002-01-14 JP Rosevear <jpr@ximian.com> * conduits/calendar/calendar-conduit.c: move all functions here, get rid of header files, use e-pilot-settings to display gui * conduits/todo/todo-conduit.c: as above svn path=/trunk/; revision=15322
* use icaltimetype_to_tmJP Rosevear2002-01-152-7/+5
| | | | | | | | 2002-01-14 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.c (get_current_time): use icaltimetype_to_tm svn path=/trunk/; revision=15320
* figure out when today is and highlight if it is not selectedJP Rosevear2002-01-154-3/+30
| | | | | | | | | | | | | 2002-01-14 JP Rosevear <jpr@ximian.com> * gui/e-week-view-main-item.c (e_week_view_main_item_draw_day): figure out when today is and highlight if it is not selected * gui/e-week-view.h: enum the "today" color * gui/e-week-view.c (e_week_view_realize): init the "today" color svn path=/trunk/; revision=15319
* add protosJP Rosevear2002-01-144-21/+164
| | | | | | | | | | | | | | | | | 2002-01-13 JP Rosevear <jpr@ximian.com> * gui/alarm-notify/save.h: add protos * gui/alarm-notify/save.c (save_blessed_program): records a program as blessed (is_blessed_program): checks to see if a program is blessed * gui/alarm-notify/alarm-queue.c (procedure_notification_dialog): popup a dialog notifying the user that is a program and let them not see the dialog about this program again (procedure_notification): use above svn path=/trunk/; revision=15313
* translate timezone names when displayed. Fixes bug #6544.Damon Chaplin2002-01-124-15/+59
| | | | | | | | | | | 2002-01-11 Damon Chaplin <damon@ximian.com> * gui/e-timezone-entry.c: * gui/e-itip-control.c (write_label_piece): * gui/calendar-config.c (on_timezone_set): translate timezone names when displayed. Fixes bug #6544. svn path=/trunk/; revision=15307
* new verb callback (sensitize_commands): set sensitivity of mark completeJP Rosevear2002-01-046-3/+79
| | | | | | | | | | | | | | | | | | | | 2002-01-03 JP Rosevear <jpr@ximian.com> * gui/tasks-control.c (tasks_control_complete_cmd): new verb callback (sensitize_commands): set sensitivity of mark complete command * gui/e-tasks.h: new proto * gui/e-tasks.c (e_tasks_complete_selected): mark selected tasks in the table as complete * gui/e-calendar-table.h: new proto * gui/e-calendar-table.c (e_calendar_table_complete_selected): mark selected rows as complete svn path=/trunk/; revision=15239
* only need one warning message nowJP Rosevear2002-01-043-46/+14
| | | | | | | | | | | | 002-01-03 JP Rosevear <jpr@ximian.com> * gui/tasks-control.c (confirm_expunge): only need one warning message now * gui/e-tasks.c (create_sexp): change the logic to expunge all completed tasks not just hidden ones svn path=/trunk/; revision=15236
* confirm expunging of the tasks (tasks_control_expunge_cmd): verb callbackJP Rosevear2002-01-0311-822/+302
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-01-03 JP Rosevear <jpr@ximian.com> * gui/tasks-control.c (confirm_expunge): confirm expunging of the tasks (tasks_control_expunge_cmd): verb callback * gui/calendar-config.c (config_read): read confirm expunge value (calendar_config_write): write confirm expunge value (calendar_config_write_on_exit): ditto (calendar_config_get_confirm_expunge): get value (calendar_config_set_confirm_expunge): set value * gui/calendar-config.h: new proto * gui/e-itip-control.c (start_calendar_server): kill warning * gui/e-tasks.c (e_tasks_init): init query member to NULL (set_status_message): util function to set status message (e_tasks_open): use above (cal_opened_cb): ditto (create_sexp): create sexp of items to be deleted (query_obj_updated_cb): remove any items found (query_eval_error_cb): bail out on error (query_query_done_cb): tidy when done (e_tasks_delete_completed): set up query * gui/e-tasks.h: new proto * gui/calendar-model.c (query_query_done_cb): use g_warning instead of printing to stderr (query_eval_error_cb): ditto (update_query): clear the status message if we can't create the query * gui/tag-calendar.c (resolve_tzid_cb): make this static svn path=/trunk/; revision=15233
* remove needs send signal related cruft (save_comp_with_send): withJP Rosevear2001-12-228-59/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-12-21 JP Rosevear <jpr@ximian.com> * gui/dialogs/comp-editor.c: remove needs send signal related cruft (save_comp_with_send): with send_component_dialog, indicate if the meeting info is newly created or not (real_edit_comp): remember if the dialog initially needs a send * gui/dialogs/send-comp.c (send_component_dialog): take a "new" parameter indicating whether the dialog should intimate if the component to be sent is a new meeting or not * gui/dialogs/send-comp.h: update proto * gui/dialogs/comp-editor.c: remove no longer used needs_send notification and signal * gui/dialogs/comp-editor.h: remove proto * gui/e-day-view.c (e_day_view_on_main_canvas_drag_data_received): add new param to send_component_dialog (e_day_view_finish_long_event_resize): ditto (e_day_view_finish_resize): ditto (e_day_view_on_editing_stopped): ditto (e_day_view_on_top_canvas_drag_data_received): ditto * gui/e-week-view.c (e_week_view_on_editing_stopped): add new param to send_component_dialog svn path=/trunk/; revision=15204
* inherit from bonobo window12001-12-213-34/+58
| | | | | | | | | | | | 2001-12-21 <jpr@ximian.com> * gui/dialogs/comp-editor.h: inherit from bonobo window * gui/dialogs/comp-editor.c: inherit from bonobo window (comp_editor_key_press_event): Look for an escape key press and close the window if found svn path=/trunk/; revision=15202
* -- Merge fix for #17377 from the evolution-1-0-branch.Ettore Perazzoli2001-12-202-0/+9
| | | | | | * gui/main.c (main): Push GdkRGB visual and colormap. svn path=/trunk/; revision=15194
* go slow and clear the map if the last uri and the current uri do not matchJP Rosevear2001-12-1910-77/+243
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-12-19 JP Rosevear <jpr@ximian.com> * conduits/calendar/calendar-conduit.c (check_for_slow_setting): go slow and clear the map if the last uri and the current uri do not match (post_sync): save the last uri * conduits/calendar/calendar-conduit-config.h: handle a last uri config option * conduits/todo/todo-conduit-config.h: ditto * conduits/calendar/calendar-conduit.c (start_calendar_server): use the open_default_calendar method * conduits/todo/todo-conduit.c (start_calendar_server): same as above * cal-client/Makefile.am: link with bonobo conf * cal-client/cal-client.h: new protos * idl/evolution-calendar.idl: make sure open method raises appropriate exceptions * gui/e-itip-control.c (start_calendar_server): use cal_client_open_default_* calls * cal-client/cal-client.c (real_open_calendar): do the real work of loading (cal_client_open_calendar): use above (get_fall_back_uri): get the basic local uri (get_default_uri): get the default uri from the config db (cal_client_open_default_calendar): open the default uri or the fallback if the method is unsupported (cal_client_open_default_tasks): same for tasks svn path=/trunk/; revision=15179
* use get_real_item (get_refresh_options): uncomment out (get_real_item):JP Rosevear2001-12-184-41/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-12-17 JP Rosevear <jpr@ximian.com> * gui/e-itip-control.c (send_item): use get_real_item (get_refresh_options): uncomment out (get_real_item): obtain the real object which has the uid of the item received (show_current_todo): use get_refresh_options for refresh method and provide the description and summary from the real component since its not in the reply (show_current_event): ditto (send_item): use get_real_item 2001-12-17 JP Rosevear <jpr@ximian.com> * gui/itip-utils.c (comp_limit_attendees): can't remove properties in an iteration loop, so remove them outside the loop (comp_minimal): don't set a recurid if there isn't one, add the x properties to the clone (comp_compliant): unref the clone for DECLINECOUNTER * gui/e-itip-control.c (get_refresh_options): make function available again (show_current_event): use it here (ok_clicked_cb): can't remove properties in an iteration loop, so remove them outside the loop * cal-util/cal-component.c (free_icalcomponent): properly free the attendee list (cal_component_rescan): don't destroy the alarm hash svn path=/trunk/; revision=15136
* new file to contain all timezone names for translation. We won't be usingDamon Chaplin2001-12-143-0/+393
| | | | | | | | | | | | 2001-12-13 Damon Chaplin <damon@ximian.com> * zones.h: new file to contain all timezone names for translation. We won't be using the translations in 1.0.1, but it gives translators time before we do use them in 1.0.2. * Makefile.am: added zones.h to EXTRA_DIST. svn path=/trunk/; revision=15026
* ungrab the pointer before calling e_day_view_finish_long_event_resizeJP Rosevear2001-12-133-9/+50
| | | | | | | | | | | | | | | | | 2001-12-12 JP Rosevear <jpr@ximian.com> * gui/e-day-view.c (e_day_view_on_top_canvas_button_release): ungrab the pointer before calling e_day_view_finish_long_event_resize (e_day_view_on_main_canvas_button_release): ditto (e_day_view_finish_long_event_resize): ask if the meeting should be sent (e_day_view_finish_resize): ditto (e_day_view_on_editing_stopped): ditto (e_day_view_on_top_canvas_drag_data_received): ditto (e_day_view_on_main_canvas_drag_data_received): ditto svn path=/trunk/; revision=15008
* properly convert the dtstart and dtend times if they are UTC (cursor_cb):JP Rosevear2001-12-124-38/+97
| | | | | | | | | | | | | | | | | | | | | | | | | 2001-12-11 JP Rosevear <jpr@ximian.com> * gui/e-meeting-model.c (process_free_busy_comp): properly convert the dtstart and dtend times if they are UTC (cursor_cb): if we don't have anybody to get f/b info for, process the callbacks immediately (e_meeting_model_refresh_busy_periods): take start/end times, calculate the timet values with object timezone (e_meeting_model_etable_model_to_view_row): proper cast (e_meeting_model_etable_view_to_model_row): ditto (async_open): bail out if we couldn't open properly * gui/e-meeting-time-sel.c (e_meeting_time_selector_on_update_free_busy): use defines for determining the number of days before and after of free busy to request (e_meeting_time_selector_update_dates_shown): use defines for the number of days shown * gui/e-meeting-model.h: update proto svn path=/trunk/; revision=15000
* removed code that connects to GnomeCalendar's "dates_shown_changed"Damon Chaplin2001-12-113-10/+24
| | | | | | | | | | | | | 2001-12-10 Damon Chaplin <damon@ximian.com> * gui/control-factory.c (control_factory_new_control): removed code that connects to GnomeCalendar's "dates_shown_changed" signal. * gui/calendar-commands.c (gcal_calendar_dates_change_cb): (calendar_control_activate): moved it here, so it gets reconnected whenever the control is activated. Fixes bug #15798. svn path=/trunk/; revision=14960
* fixed executable name. Fixes bug #16880.Damon Chaplin2001-12-112-1/+6
| | | | | | | | | 2001-12-10 Damon Chaplin <damon@ximian.com> * importers/GNOME_Evolution_Calendar_Importer.oaf.in: fixed executable name. Fixes bug #16880. svn path=/trunk/; revision=14955
* if we have an alarm that can be represented on the pilot, set theJP Rosevear2001-12-093-14/+137
| | | | | | | | | | | | | | | | | | | | 2001-12-08 JP Rosevear <jpr@ximian.com> * conduits/calendar/calendar-conduit.c (local_record_from_comp): if we have an alarm that can be represented on the pilot, set the appointment fields appropriately, if the duration has values for minutes and/or hours and/or days, use the lowest common denominator (comp_from_remote_record): if the appointment on the pilot has an alarm, find the first alarm an item currently had that is relative to the start and with a negative duration and update it (or create a new one if no valid ones exist) * cal-util/cal-component.c (cal_component_get_alarm_uids): build list in the order they appear in the component so we get consisting order for the gui and for the pilot svn path=/trunk/; revision=14943
* s/%/%sRodrigo Moya2001-12-082-2/+7
| | | | | | | | | 2001-12-08 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-config.c (calendar_config_get_default_uri): (calendar_config_get_default_tasks_uri): s/%/%s svn path=/trunk/; revision=14942
* (committed by Damon)Federico Mena Quintero2001-12-082-25/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-11-09 Federico Mena Quintero <federico@ximian.com> (committed by Damon) Fix bug #14699. * pcs/query.c (QueryState): Added a state QUERY_WAIT_FOR_BACKEND to indicate that the query is not populated as we are waiting for the backend to be opened. (query_init): Start in the QUERY_WAIT_FOR_BACKEND state. (query_destroy): Only disconnect from the backend if we are in a state that implies that we are connected to its signals. (query_construct): If the backend is already loaded, immediately set the state to QUERY_START_PENDING. (backend_opened_cb): Disconnect from the backend's "opened" signal. Set the state to QUERY_START_PENDING. (match_component): We can now only match components if the query is in progress or if it is done. Assert to that effect, and do not ensure_sexp(). (match_component): Do not check for a nonexistent component using g_return_if_fail(). Also, there is no need to ref/unref the component. (backend_obj_updated_cb): Assert to the effect of our state. (backend_obj_removed_cb): Likewise. (parse_sexp): Renamed from ensure_sexp(). Assert that the query has not started. Do not disconnect from the backend's signals here, since we have no connections. (start_query_cb): Set the state to QUERY_IN_PROGRESS here instead of in populate_query(). svn path=/trunk/; revision=14941