aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
Commit message (Collapse)AuthorAgeFilesLines
...
* Partially Fixes #23606 (from Jack Jia <jack.jia@sun.com>)JP Rosevear2003-03-053-2/+22
| | | | | | | | | | | | | 2003-03-04 JP Rosevear <jpr@ximian.com> Partially Fixes #23606 (from Jack Jia <jack.jia@sun.com>) * gui/dialogs/schedule-page.c (update_time): handle no end date if the start is date only * gui/dialogs/event-page.c (update_time): ditto svn path=/trunk/; revision=20146
* Shush.JP Rosevear2003-03-051-1/+3
| | | | svn path=/trunk/; revision=20145
* Commit missed files.JP Rosevear2003-03-052-0/+126
| | | | svn path=/trunk/; revision=20144
* If only the pipe wouldn't break.JP Rosevear2003-03-0551-2399/+3298
| | | | svn path=/trunk/; revision=20143
* Merging in 1.2 stuffJP Rosevear2003-03-053-32/+237
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-03-04 JP Rosevear <jpr@ximian.com> Merging in 1.2 stuff Fixes #35598 * gui/dialogs/task-details-page.c (task_details_page_fill_widgets): count a status of needs action as a status of none (not started) (date_changed_cb): set the option menu to a status of none (status_changed): no need to handle needs action status now * gui/dialogs/task-details-page.glade: remove needs-action menu item Fixes #36763 * gui/dialogs/alarm-page.c (add_clicked_cb): if no address was set for an email alarm, set the default (button_options_clicked_cb): pass the default email address * gui/dialogs/alarm-options.h (alarm_options_dialog_run): update proto * gui/dialogs/alarm-options.c (alarm_to_malarm_widgets): if there are no email attendees, default to the passed in value (alarm_options_dialog_run): take and track an email param * pcs/cal.c (impl_Cal_get_alarm_email_address): implement by calling backend method (cal_class_init): set alarm email address method implementation * pcs/cal-backend.h: add new virtual proto * pcs/cal-backend.c (cal_backend_class_init): set alarm email address virtual method to NULL (cal_backend_get_alarm_email_address): call backend method * pcs/cal-backend-file.c (cal_backend_file_class_init): set alarm email address method (cal_backend_file_get_alarm_email_address): implement by returning NULL * idl/evolution-calendar.idl: add getAlarmEmailAddress method Fixes #37102 * gui/dialogs/task-editor.c (set_menu_sens): don't allow task assignment if the backend says not to * gui/dialogs/recurrence-page.c (fill_component): kill warning (preview_recur): display the recurrences in the dtstart timezone if possible * gui/gnome-cal.c (dn_query_obj_updated_cb): pass NULL to use default tag zone * gui/tag-calendar.c (tag_calendar_by_comp): allow display zone for the tagged calendar to be passed in (prepare_tag): use the passed in timezone for display if non-null * gui/tag-calendar.h (tag_calendar_by_comp): update proto * gui/dialogs/recurrence-page.c (recurrence_page_set_dates): make sure we always update the preview * conduits/todo/todo-conduit.c (add_record): make sure to create a unique uid for the record * conduits/calendar/calendar-conduit.c (add_record): ditto * conduits/todo/todo-conduit.c (e_todo_context_new): init default comp and timezone to NULL (e_todo_context_destroy): unref default comp (pre_sync): et the default comp via the client and set the default timezone (add_record): pass the default comp as the base comp * conduits/calendar/calendar-conduit.c (e_calendar_context_new): init default comp to NULL (e_calendar_context_destroy): unref default comp (pre_sync): get the default comp via the client (add_record): pass the default comp as the base comp * conduits/calendar/calendar-conduit.c (local_record_from_comp): only add the recurrence rule if its not an instance * gui/itip-control-factory.c (set_data_idle_cb): idle call back to set control data (pstream_load): set the data in an idle callback to avoid deadlock (get_prop): handle view_only (set_prop): ditto (itip_control_factory): add view_only * gui/e-itip-control.h: add protos * gui/e-itip-control.c (write_html): only write out the options if we aren't in view_only mode (e_itip_control_set_view_only): accessor (e_itip_control_get_view_only): ditto Fixes #36909 * gui/dialogs/alarm-page.c (button_options_clicked_cb): indicate whether the options dialog should allow repeating * gui/dialogs/alarm-options.h: update proto * gui/dialogs/alarm-options.c (alarm_to_repeat_widgets): if repeating is not allowed, sensitize the widgets appropriately (alarm_options_dialog_run): store the repeat param * gui/calendar-model.c (calendar_model_append_row): guard against saving before the calendar is open * gui/e-day-view.c (e_day_view_key_press): ditto * gui/dialogs/comp-editor.c (page_changed_cb): change warning dialog to not mention email (page_summary_changed_cb): ditto (page_dates_changed_cb): ditto * gui/itip-utils.c (itip_organizer_is_user): make the compare case insensitive * gui/dialogs/meeting-page.c (meeting_page_fill_widgets): don't allow the organizer to be changed if its not an email address * gui/e-day-view.c, calendar-model.c, e-week-view.c, task-editor.c, event-editor.c, comp-editor.c, meeting-page.c: pass additional param * gui/itip-utils.c (itip_organizer_is_user): take client as param, and if organizer-not-email-address and email address and organizer match, assume the user is the organizer * gui/itip-utils.h: update proto * pcs/cal.c (build_fb_seq): set the max * gui/e-meeting-model.c (e_meeting_model_add_attendee_with_defaults): correct typo and set rsvp appropriately * gui/dialogs/send-comp.c (send_component_dialog): if save schedules, return FALSE for now * gui/dialogs/recurrence-page.c (sensitize_recur_widgets): de-sensitize the preview widget if we are viewing an instance (preview_recur): return if the comp is an instance * gui/dialogs/event-page.glade: name the show time frame * gui/dialogs/event-page.c (event_page_fill_widgets) (event_page_init): init show time frame (event_page_fill_widgets): hide/show frame as needed (get_widgets): get the frame * gui/alarm-notify/alarm-queue.c (mail_notification): kill mail notification code * cal-client/cal-client.c (load_static_capabilities): grab static capabilities string (check_capability): see if a capability is in the string (cal_client_get_one_alarm_only): accessor (cal_client_get_organizer_must_attend): use check_capability (cal_client_get_static_capability): ditto * cal-client/cal-client.h: new, changed protos * idl/evolution-calendar.idl: change over getSchedulingInformation to a more general getStaticCapabilities call * pcs/cal-backend-file.c (cal_backend_file_get_static_capabilities): return "no-email-alarms" * pcs/cal-backend.c (cal_backend_get_static_capabilities): ditto * pcs/cal-backend.h: ditto * pcs/cal.c (impl_Cal_get_static_capabilities): ditto * gui/alarm-notify/alarm-queue.c (get_default_address): utility routine to snag address info * gui/alarm-notify/Makefile.am: build composer idl * *.c: pass client param for send an cancel params * gui/dialogs/send-comp.c (send_component_dialog): take client as a parm and if save schedules return true right away * gui/dialogs/send-comp.h: update proto * gui/dialogs/cancel-comp.c (cancel_component_dialog): take client as a param and if we are deleting and schedule saves, return true right away * gui/dialogs/cancel-comp.h (cancel_component_dialog): update proto * gui/dialogs/alarm-options.glade: add Send To: button * gui/dialogs/alarm-options.c (addressbook_clicked_cb): display dialog (setup_select_names): attach above to Send To: button clicked signal * gui/dialogs/alarm-options.c (get_widgets): get mail alarm widgets (setup_select_names): add the select names widget (alarm_to_malarm_widgets): show the attendees and description (alarm_to_dialog): set the title for mail alarms properly (malarm_widgets_to_alarm): save attendees and descriptions in alarm (alarm_options_dialog_run): call setup_select_names * gui/dialogs/alarm-page.c: add email to alarm types * gui/dialogs/alarm-options.glade: add mail alarm widgets * gui/dialogs/alarm-page.glade: add email to alarm types * cal-util/cal-component.c (scan_attendee): kill unnecessary CalComponent param (scan_property): don't pass same (set_attendee_list): take an icalcomp instead of a CalComponent (cal_component_set_attendee_list): pass same (scan_alarm_property): if its an attendee, scan it (make_alarm): set attendee_list member to null (cal_component_alarm_new): ditto (cal_component_alarm_free): free attendee list (cal_component_alarm_get_attendee_list): return attendee list (cal_component_alarm_set_attendee_list): set attendee list (cal_component_alarm_has_attendees): return true if alarm has attendees * cal-util/cal-component.h: new protos * gui/calendar-model.c (calendar_model_append_row): use cal_comp_task_new_with_defaults * gui/comp-editor-factory.c (get_default_task): ditto * gui/e-tasks.c (e_tasks_new_task): ditto * gui/gnome-cal.c (gnome_calendar_new_task): ditto * gui/comp-util.h (cal_comp_task_new_with_defaults): new proto * gui/comp-util.c (cal_comp_task_new_with_defaults): new utility routine * cal-util/cal-util.c (generate_absolute_triggers): skip omitted alarm types (add_alarm_occurrences_cb): ditto (cal_util_generate_alarms_for_list): take/pass omit param (cal_util_generate_alarms_for_comp): ditto * cal-util/cal-util.h: update protos * pcs/cal-backend-file.c (cal_backend_file_get_alarms_for_object): add omit param (cal_backend_file_get_alarms_in_range): ditto * pcs/cal-backend.c (cal_backend_get_scheduling_information): remove dead param * gui/dialogs/meeting-page.h: delete proto * gui/dialogs/meeting-page.c: remove dead routine * gui/dialogs/event-editor.c (event_editor_edit_comp): we don't need to add the organizer as an attendee ourselves, just set the edit level properly * gui/dialogs/task-editor.c (task_editor_edit_comp): ditto * gui/comp-util.c (cal_comp_event_new_with_defaults): take client as arg so we can obtain the default from the backend * gui/comp-editor-factory.c (get_default_event): pass cal_comp_event_new_with_defaults the new param * gui/gnome-cal.c (gnome_calendar_new_appointment_for): ditto * gui/e-week-view.c (e_week_view_key_press): ditto * gui/e-day-view.c (e_day_view_key_press): ditto * gui/calendar-model.c (calendar_model_append_row): ditto * gui/comp-util.h (cal_comp_event_new_with_defaults): update proto * pcs/cal-backend-file.c (cal_backend_file_get_default_object): return appropriate default object * pcs/cal-backend.c (cal_backend_get_default_object): call get_default_backend class method * pcs/cal-backend.h: add proto * pcs/cal.c (impl_Cal_get_default_object): implement (cal_class_init): set handler for getDefaultObject call * idl/evolution-calendar.idl: remove always schedule from SchedulingInformation and add getDefaultObject call * cal-client/cal-client.c (cal_client_get_default_object): gets a default object from the server (cal_client_init): remove always_schedule (load_scheduling_info): ditto * cal-client/cal-client.h: add a proto, delete a proto * gui/dialogs/meeting-page.c (right_click_cb): if the attendee is not fully editable, don't allow deletion (meeting_page_construct): keep the default organizer as an itip address (meeting_page_get_default_organizer): return the default organizer * gui/dialogs/meeting-page.h: new proto * gui/dialogs/event-editor.c (event_editor_edit_comp): we set appropriate edit levels now for users and if the backend always schedules we always show the meeting pages and add the organizer as an attendee * gui/dialogs/task-editor.c (task_editor_edit_comp): same * gui/e-meeting-model.c (is_cell_editable): use the edit level of the attendee to determine if cell is editable (init): we no longer keep the attendee list of restricted * gui/e-meeting-attendee.c (e_meeting_attendee_get_edit_level): accessor (e_meeting_attendee_set_edit_level): ditto * gui/e-meeting-attendee.h: new protos and edit level enum * cal-client/cal-client.c (load_scheduling_info): load the scheduling info (cal_client_get_always_schedule): accessor (cal_client_get_organizer_must_attend): ditto (cal_client_get_save_schedules): ditto (cal_client_init): init scheduling data members * cal-client/cal-client.h: accessors for scheduling information * pcs/cal-backend-file.c (cal_backend_file_get_scheduling_information): implement the new virtual method * pcs/cal-backend.c (cal_backend_get_scheduling_information): call the class specific method * pcs/cal-backend.h: add virtual method * idl/evolution-calendar.idl: add a getSchedulingInformation call which describes how the backend does its scheduling * pcs/cal.c (impl_Cal_get_scheduling_information): implement above * gui/e-day-view.c: pass NULL as parent to recur dialog * gui/e-week-view.c: ditto * gui/dialogs/comp-editor.c (prompt_to_save_changes): show recur dialog after prompting, not before (save_cmd): ditto (save_close_cmd): ditto (real_edit_comp): don't show recur dialog before opening * gui/dialogs/recur-comp.h (recur_component_dialog): update proto * gui/dialogs/recur-comp.c (recur_component_dialog): take a parent argument and set the dialog parent if non-null * gui/e-week-view.c (e_day_view_on_editing_stopped): Don't update appointment if both the old and the new summary texts are empty. * gui/e-week-view.c (e_week_view_show_popup_menu): mask out "make moveable" if its an instance * gui/e-day-view.c (e_day_view_on_event_right_click): ditto * gui/e-week-view.c (e_week_view_on_editing_stopped): if its an instance, show the recur comp dialog and modify it based on the response (or not if cancel is hit) * gui/e-day-view.c (e_day_view_finish_long_event_resize): if its an instance, show the recur comp dialog and modify it based on the response (or not if cancel is hit) (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 * gui/dialogs/comp-editor.c (real_edit_comp): reflect changes in proto of recur_component_dialog * gui/dialogs/recur-comp.c (recur_component_dialog): use ok/cancel instead and radio buttons for the mod type * gui/dialogs/recur-comp.h: update proto * gui/e-day-view.c (e_day_view_on_long_event_click): allow dragging if its an instance (e_day_view_on_event_click): ditto (e_day_view_on_top_canvas_motion): ditto (e_day_view_on_main_canvas_motion): ditto * gui/dialogs/comp-editor.c (save_comp): if its an instance, update with the mod type (real_edit_comp): ask the user what instances they want to change * gui/dialogs/recur-comp.[hc]: new dialog to ask user what recurrences to modify * gui/dialogs/Makefile.am: Compile new files * gui/e-day-view.c (e_day_view_on_delete_occurrence): if its an instance, just remove with THIS mod * gui/e-week-view.c (e_week_view_on_delete_occurrence): ditto * cal-client/cal-client.c (cal_client_remove_object_with_mod): send the mod parameter to the backend (cal_client_remove_object): implement with above (cal_client_update_object_with_mod): send the mod parameter to the backend (cal_client_update_object): implement with above * cal-client/cal-client.h: new protos * cal-client/cal-client.c (cal_client_is_read_only): return booleans in the pre conditions (cal_client_update_object): pass mod param (cal_client_update_objects): ditto (cal_client_remove_object): ditto (cal_client_ensure_timezone_on_server): ditto * pcs/cal.c (impl_Cal_update_objects): take mod param (impl_Cal_remove_object): ditto * pcs/cal-backend.h: fix protos * pcs/cal-backend.c (cal_backend_update_objects): take mod param (cal_backend_remove_object): ditto * pcs/cal-backend-file.c (cal_backend_file_update_objects): take mod param (cal_backend_file_remove_object): ditto * cal-util/cal-util.h: add mod enum * cal-util/cal-recur.c (cal_recur_generate_instances_of_rule): if its an instance, just report the instance * cal-util/cal-component.h: new protos * cal-util/cal-component.c (cal_component_is_instance): indicate whether the component is an instance or not (cal_component_free_range): free a range * idl/evolution-calendar.idl: get remove and update to take mod type svn path=/trunk/; revision=20142
* Fixes #35598JP Rosevear2003-03-051-0/+463
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-03-04 JP Rosevear <jpr@ximian.com> Fixes #35598 * gui/dialogs/task-details-page.c (task_details_page_fill_widgets): count a status of needs action as a status of none (not started) (date_changed_cb): set the option menu to a status of none (status_changed): no need to handle needs action status now * gui/dialogs/task-details-page.glade: remove needs-action menu item Fixes #36763 * gui/dialogs/alarm-page.c (add_clicked_cb): if no address was set for an email alarm, set the default (button_options_clicked_cb): pass the default email address * gui/dialogs/alarm-options.h (alarm_options_dialog_run): update proto * gui/dialogs/alarm-options.c (alarm_to_malarm_widgets): if there are no email attendees, default to the passed in value (alarm_options_dialog_run): take and track an email param * pcs/cal.c (impl_Cal_get_alarm_email_address): implement by calling backend method (cal_class_init): set alarm email address method implementation * pcs/cal-backend.h: add new virtual proto * pcs/cal-backend.c (cal_backend_class_init): set alarm email address virtual method to NULL (cal_backend_get_alarm_email_address): call backend method * pcs/cal-backend-file.c (cal_backend_file_class_init): set alarm email address method (cal_backend_file_get_alarm_email_address): implement by returning NULL * idl/evolution-calendar.idl: add getAlarmEmailAddress method Fixes #37102 * gui/dialogs/task-editor.c (set_menu_sens): don't allow task assignment if the backend says not to * gui/dialogs/recurrence-page.c (fill_component): kill warning (preview_recur): display the recurrences in the dtstart timezone if possible * gui/gnome-cal.c (dn_query_obj_updated_cb): pass NULL to use default tag zone * gui/tag-calendar.c (tag_calendar_by_comp): allow display zone for the tagged calendar to be passed in (prepare_tag): use the passed in timezone for display if non-null * gui/tag-calendar.h (tag_calendar_by_comp): update proto * gui/dialogs/recurrence-page.c (recurrence_page_set_dates): make sure we always update the preview * conduits/todo/todo-conduit.c (add_record): make sure to create a unique uid for the record * conduits/calendar/calendar-conduit.c (add_record): ditto * conduits/todo/todo-conduit.c (e_todo_context_new): init default comp and timezone to NULL (e_todo_context_destroy): unref default comp (pre_sync): et the default comp via the client and set the default timezone (add_record): pass the default comp as the base comp * conduits/calendar/calendar-conduit.c (e_calendar_context_new): init default comp to NULL (e_calendar_context_destroy): unref default comp (pre_sync): get the default comp via the client (add_record): pass the default comp as the base comp * conduits/calendar/calendar-conduit.c (local_record_from_comp): only add the recurrence rule if its not an instance * gui/itip-control-factory.c (set_data_idle_cb): idle call back to set control data (pstream_load): set the data in an idle callback to avoid deadlock (get_prop): handle view_only (set_prop): ditto (itip_control_factory): add view_only * gui/e-itip-control.h: add protos * gui/e-itip-control.c (write_html): only write out the options if we aren't in view_only mode (e_itip_control_set_view_only): accessor (e_itip_control_get_view_only): ditto Fixes #36909 * gui/dialogs/alarm-page.c (button_options_clicked_cb): indicate whether the options dialog should allow repeating * gui/dialogs/alarm-options.h: update proto * gui/dialogs/alarm-options.c (alarm_to_repeat_widgets): if repeating is not allowed, sensitize the widgets appropriately (alarm_options_dialog_run): store the repeat param * gui/calendar-model.c (calendar_model_append_row): guard against saving before the calendar is open * gui/e-day-view.c (e_day_view_key_press): ditto * gui/dialogs/comp-editor.c (page_changed_cb): change warning dialog to not mention email (page_summary_changed_cb): ditto (page_dates_changed_cb): ditto * gui/itip-utils.c (itip_organizer_is_user): make the compare case insensitive * gui/dialogs/meeting-page.c (meeting_page_fill_widgets): don't allow the organizer to be changed if its not an email address * gui/e-day-view.c, calendar-model.c, e-week-view.c, task-editor.c, event-editor.c, comp-editor.c, meeting-page.c: pass additional param * gui/itip-utils.c (itip_organizer_is_user): take client as param, and if organizer-not-email-address and email address and organizer match, assume the user is the organizer * gui/itip-utils.h: update proto * pcs/cal.c (build_fb_seq): set the max * gui/e-meeting-model.c (e_meeting_model_add_attendee_with_defaults): correct typo and set rsvp appropriately * gui/dialogs/send-comp.c (send_component_dialog): if save schedules, return FALSE for now * gui/dialogs/recurrence-page.c (sensitize_recur_widgets): de-sensitize the preview widget if we are viewing an instance (preview_recur): return if the comp is an instance * gui/dialogs/event-page.glade: name the show time frame * gui/dialogs/event-page.c (event_page_fill_widgets) (event_page_init): init show time frame (event_page_fill_widgets): hide/show frame as needed (get_widgets): get the frame * gui/alarm-notify/alarm-queue.c (mail_notification): kill mail notification code * cal-client/cal-client.c (load_static_capabilities): grab static capabilities string (check_capability): see if a capability is in the string (cal_client_get_one_alarm_only): accessor (cal_client_get_organizer_must_attend): use check_capability (cal_client_get_static_capability): ditto * cal-client/cal-client.h: new, changed protos * idl/evolution-calendar.idl: change over getSchedulingInformation to a more general getStaticCapabilities call * pcs/cal-backend-file.c (cal_backend_file_get_static_capabilities): return "no-email-alarms" * pcs/cal-backend.c (cal_backend_get_static_capabilities): ditto * pcs/cal-backend.h: ditto * pcs/cal.c (impl_Cal_get_static_capabilities): ditto * gui/alarm-notify/alarm-queue.c (get_default_address): utility routine to snag address info * gui/alarm-notify/Makefile.am: build composer idl * *.c: pass client param for send an cancel params * gui/dialogs/send-comp.c (send_component_dialog): take client as a parm and if save schedules return true right away * gui/dialogs/send-comp.h: update proto * gui/dialogs/cancel-comp.c (cancel_component_dialog): take client as a param and if we are deleting and schedule saves, return true right away * gui/dialogs/cancel-comp.h (cancel_component_dialog): update proto * gui/dialogs/alarm-options.glade: add Send To: button * gui/dialogs/alarm-options.c (addressbook_clicked_cb): display dialog (setup_select_names): attach above to Send To: button clicked signal * gui/dialogs/alarm-options.c (get_widgets): get mail alarm widgets (setup_select_names): add the select names widget (alarm_to_malarm_widgets): show the attendees and description (alarm_to_dialog): set the title for mail alarms properly (malarm_widgets_to_alarm): save attendees and descriptions in alarm (alarm_options_dialog_run): call setup_select_names * gui/dialogs/alarm-page.c: add email to alarm types * gui/dialogs/alarm-options.glade: add mail alarm widgets * gui/dialogs/alarm-page.glade: add email to alarm types * cal-util/cal-component.c (scan_attendee): kill unnecessary CalComponent param (scan_property): don't pass same (set_attendee_list): take an icalcomp instead of a CalComponent (cal_component_set_attendee_list): pass same (scan_alarm_property): if its an attendee, scan it (make_alarm): set attendee_list member to null (cal_component_alarm_new): ditto (cal_component_alarm_free): free attendee list (cal_component_alarm_get_attendee_list): return attendee list (cal_component_alarm_set_attendee_list): set attendee list (cal_component_alarm_has_attendees): return true if alarm has attendees * cal-util/cal-component.h: new protos * gui/calendar-model.c (calendar_model_append_row): use cal_comp_task_new_with_defaults * gui/comp-editor-factory.c (get_default_task): ditto * gui/e-tasks.c (e_tasks_new_task): ditto * gui/gnome-cal.c (gnome_calendar_new_task): ditto * gui/comp-util.h (cal_comp_task_new_with_defaults): new proto * gui/comp-util.c (cal_comp_task_new_with_defaults): new utility routine * cal-util/cal-util.c (generate_absolute_triggers): skip omitted alarm types (add_alarm_occurrences_cb): ditto (cal_util_generate_alarms_for_list): take/pass omit param (cal_util_generate_alarms_for_comp): ditto * cal-util/cal-util.h: update protos * pcs/cal-backend-file.c (cal_backend_file_get_alarms_for_object): add omit param (cal_backend_file_get_alarms_in_range): ditto * pcs/cal-backend.c (cal_backend_get_scheduling_information): remove dead param * gui/dialogs/meeting-page.h: delete proto * gui/dialogs/meeting-page.c: remove dead routine * gui/dialogs/event-editor.c (event_editor_edit_comp): we don't need to add the organizer as an attendee ourselves, just set the edit level properly * gui/dialogs/task-editor.c (task_editor_edit_comp): ditto * gui/comp-util.c (cal_comp_event_new_with_defaults): take client as arg so we can obtain the default from the backend * gui/comp-editor-factory.c (get_default_event): pass cal_comp_event_new_with_defaults the new param * gui/gnome-cal.c (gnome_calendar_new_appointment_for): ditto * gui/e-week-view.c (e_week_view_key_press): ditto * gui/e-day-view.c (e_day_view_key_press): ditto * gui/calendar-model.c (calendar_model_append_row): ditto * gui/comp-util.h (cal_comp_event_new_with_defaults): update proto * pcs/cal-backend-file.c (cal_backend_file_get_default_object): return appropriate default object * pcs/cal-backend.c (cal_backend_get_default_object): call get_default_backend class method * pcs/cal-backend.h: add proto * pcs/cal.c (impl_Cal_get_default_object): implement (cal_class_init): set handler for getDefaultObject call * idl/evolution-calendar.idl: remove always schedule from SchedulingInformation and add getDefaultObject call * cal-client/cal-client.c (cal_client_get_default_object): gets a default object from the server (cal_client_init): remove always_schedule (load_scheduling_info): ditto * cal-client/cal-client.h: add a proto, delete a proto * gui/dialogs/meeting-page.c (right_click_cb): if the attendee is not fully editable, don't allow deletion (meeting_page_construct): keep the default organizer as an itip address (meeting_page_get_default_organizer): return the default organizer * gui/dialogs/meeting-page.h: new proto * gui/dialogs/event-editor.c (event_editor_edit_comp): we set appropriate edit levels now for users and if the backend always schedules we always show the meeting pages and add the organizer as an attendee * gui/dialogs/task-editor.c (task_editor_edit_comp): same * gui/e-meeting-model.c (is_cell_editable): use the edit level of the attendee to determine if cell is editable (init): we no longer keep the attendee list of restricted * gui/e-meeting-attendee.c (e_meeting_attendee_get_edit_level): accessor (e_meeting_attendee_set_edit_level): ditto * gui/e-meeting-attendee.h: new protos and edit level enum * cal-client/cal-client.c (load_scheduling_info): load the scheduling info (cal_client_get_always_schedule): accessor (cal_client_get_organizer_must_attend): ditto (cal_client_get_save_schedules): ditto (cal_client_init): init scheduling data members * cal-client/cal-client.h: accessors for scheduling information * pcs/cal-backend-file.c (cal_backend_file_get_scheduling_information): implement the new virtual method * pcs/cal-backend.c (cal_backend_get_scheduling_information): call the class specific method * pcs/cal-backend.h: add virtual method * idl/evolution-calendar.idl: add a getSchedulingInformation call which describes how the backend does its scheduling * pcs/cal.c (impl_Cal_get_scheduling_information): implement above * gui/e-day-view.c: pass NULL as parent to recur dialog * gui/e-week-view.c: ditto * gui/dialogs/comp-editor.c (prompt_to_save_changes): show recur dialog after prompting, not before (save_cmd): ditto (save_close_cmd): ditto (real_edit_comp): don't show recur dialog before opening * gui/dialogs/recur-comp.h (recur_component_dialog): update proto * gui/dialogs/recur-comp.c (recur_component_dialog): take a parent argument and set the dialog parent if non-null * gui/e-week-view.c (e_day_view_on_editing_stopped): Don't update appointment if both the old and the new summary texts are empty. * gui/e-week-view.c (e_week_view_show_popup_menu): mask out "make moveable" if its an instance * gui/e-day-view.c (e_day_view_on_event_right_click): ditto * gui/e-week-view.c (e_week_view_on_editing_stopped): if its an instance, show the recur comp dialog and modify it based on the response (or not if cancel is hit) * gui/e-day-view.c (e_day_view_finish_long_event_resize): if its an instance, show the recur comp dialog and modify it based on the response (or not if cancel is hit) (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 * gui/dialogs/comp-editor.c (real_edit_comp): reflect changes in proto of recur_component_dialog * gui/dialogs/recur-comp.c (recur_component_dialog): use ok/cancel instead and radio buttons for the mod type * gui/dialogs/recur-comp.h: update proto * gui/e-day-view.c (e_day_view_on_long_event_click): allow dragging if its an instance (e_day_view_on_event_click): ditto (e_day_view_on_top_canvas_motion): ditto (e_day_view_on_main_canvas_motion): ditto * gui/dialogs/comp-editor.c (save_comp): if its an instance, update with the mod type (real_edit_comp): ask the user what instances they want to change * gui/dialogs/recur-comp.[hc]: new dialog to ask user what recurrences to modify * gui/dialogs/Makefile.am: Compile new files * gui/e-day-view.c (e_day_view_on_delete_occurrence): if its an instance, just remove with THIS mod * gui/e-week-view.c (e_week_view_on_delete_occurrence): ditto * cal-client/cal-client.c (cal_client_remove_object_with_mod): send the mod parameter to the backend (cal_client_remove_object): implement with above (cal_client_update_object_with_mod): send the mod parameter to the backend (cal_client_update_object): implement with above * cal-client/cal-client.h: new protos * cal-client/cal-client.c (cal_client_is_read_only): return booleans in the pre conditions (cal_client_update_object): pass mod param (cal_client_update_objects): ditto (cal_client_remove_object): ditto (cal_client_ensure_timezone_on_server): ditto * pcs/cal.c (impl_Cal_update_objects): take mod param (impl_Cal_remove_object): ditto * pcs/cal-backend.h: fix protos * pcs/cal-backend.c (cal_backend_update_objects): take mod param (cal_backend_remove_object): ditto * pcs/cal-backend-file.c (cal_backend_file_update_objects): take mod param (cal_backend_file_remove_object): ditto * cal-util/cal-util.h: add mod enum * cal-util/cal-recur.c (cal_recur_generate_instances_of_rule): if its an instance, just report the instance * cal-util/cal-component.h: new protos * cal-util/cal-component.c (cal_component_is_instance): indicate whether the component is an instance or not (cal_component_free_range): free a range * idl/evolution-calendar.idl: get remove and update to take mod type svn path=/trunk/; revision=20141
* gui/dialogs/alarm-page.c gui/dialogs/event-page.cHans Petter Jansson2003-03-048-7/+19
| | | | | | | | | | | | | | | | 2003-03-03 Hans Petter Jansson <hpj@ximian.com> * gui/dialogs/alarm-page.c * gui/dialogs/event-page.c * gui/dialogs/meeting-page.c * gui/dialogs/recurrence-page.c * gui/dialogs/schedule-page.c * gui/dialogs/task-details-page.c * gui/dialogs/task-page.c (get_widgets): gtk_widget_unparent() -> gtk_container_remove(). The former caused crashes in the addressbook's name-selector. svn path=/trunk/; revision=20130
* Do importers after the other dirs, as it relies on generated files fromHans Petter Jansson2003-03-022-1/+7
| | | | | | | | | | 2003-03-01 Hans Petter Jansson <hpj@ximian.com> * Makefile.am: Do importers after the other dirs, as it relies on generated files from there. This is still not optimal... Should probably introduce dependencies. svn path=/trunk/; revision=20116
* Shlibify.Hans Petter Jansson2003-03-015-60/+59
| | | | | | | | | | | | | | | | | | | 2003-02-28 Hans Petter Jansson <hpj@ximian.com> * importers/Makefile.am: Shlibify. * importers/GNOME_Evolution_Calendar_Importer.server.in.in: Shlibify. * importers/icalendar-importer.c: Add necessary includes. (importer_destroy_cb): This is now a GWeakNotify func. gtk_ -> g_. (ical_importer_new) (vcal_importer_new) (gnome_calendar_importer_destroy_cb): Destroy signal -> weak ref. * importers/main.c: Add necessary includes. Shlibify. svn path=/trunk/; revision=20115
* build libcal-dialogs as an uninstalled shared library ($(IDL_GENERATED_H),Dan Winship2003-03-014-13/+19
| | | | | | | | | | | | | | * gui/dialogs/Makefile.am: build libcal-dialogs as an uninstalled shared library ($(IDL_GENERATED_H), etc): Only generate Evolution-Addressbook-SelectNames.h, not the corresponding .c files, or we'll get duplicate symbol errors trying to link this into libevolution_calendar.la * gui/Makefile.am (libevolution_calendar_la_LIBADD): Update for that (and eliminate libtool portability warnings) svn path=/trunk/; revision=20114
* Forgot to mention server file move.Hans Petter2003-03-011-0/+3
| | | | svn path=/trunk/; revision=20110
* Add calendar/importers/Makefile to output.Hans Petter Jansson2003-03-015-6/+20
| | | | | | | | | | | | | | | | | 2003-02-28 Hans Petter Jansson <hpj@ximian.com> * configure.in: Add calendar/importers/Makefile to output. * calendar/Makefile.am (SUBDIRS): Add importers/. * calendar/importers/Makefile.am (server_in_files) (server_DATA): Insert $(libexecdir). * calendar/importers/icalendar-importer.c (connect_to_shell): oaf_activate_from_id() -> bonobo_activation_activate_from_id(). (load_vcalendar_file): U_() -> _(). svn path=/trunk/; revision=20109
* Remove libalarm.a, which was not being used by the calendar.Dan Winship2003-03-014-17/+23
| | | | | | | | | | | | | | * gui/Makefile.am (libevolution_calendar_la_LIBADD): Remove libalarm.a, which was not being used by the calendar. * gui/main.c: Remove unneeded alarm.h include. * gui/alarm-notify/Makefile.am (noinst_LIBRARIES): Stop building libalarm.a (evolution_alarm_notify_SOURCES): Add alarm.c, alarm.h (evolution_alarm_notify_LDADD): Remove libalarm.a svn path=/trunk/; revision=20107
* link to versist libtool objectJP Rosevear2003-02-283-2/+8
| | | | | | | | | | 2003-02-27 JP Rosevear <jpr@ximian.com> * conduits/todo/Makefile.am: link to versist libtool object * conduits/calendar/Makefile.am: ditto svn path=/trunk/; revision=20094
* This makes alarm notification work.Hans Petter Jansson2003-02-272-1/+8
| | | | | | | | | | | 2003-02-26 Hans Petter Jansson <hpj@ximian.com> This makes alarm notification work. * gui/alarm-notify/notify-main.c (main): Initialize GTK. Don't initialize bonobo activation - bonobo_init() does that for us. svn path=/trunk/; revision=20085
* This makes creating appointments and tasks from the "New" button work.Hans Petter Jansson2003-02-272-6/+16
| | | | | | | | | | | 2003-02-26 Hans Petter Jansson <hpj@ximian.com> This makes creating appointments and tasks from the "New" button work. * gui/main.c (comp_editor_factory_fn): Doesn't need to take any args. (factory): Add a handler for CompEditorFactory. svn path=/trunk/; revision=20082
* Fixes Ximian #37895.Hans Petter Jansson2003-02-273-3/+13
| | | | | | | | | | | | | | 2003-02-26 Hans Petter Jansson <hpj@ximian.com> Fixes Ximian #37895. * gui/e-day-view.c (e_day_view_destroy): g_object_unref () -> pango_font_description_free (). (e_day_view_style_set): Ditto. * gui/e-week-view.c (e_week_view_destroy): Ditto. svn path=/trunk/; revision=20078
* Fixes Ximian #38306.Hans Petter Jansson2003-02-272-19/+44
| | | | | | | | | | | | | 2003-02-26 Hans Petter Jansson <hpj@ximian.com> Fixes Ximian #38306. * gui/e-itip-control.c (clean_up): Do nothing if the private structure has been freed. Don't call non-g_free() freers with NULL pointers. (destroy): Do nothing if the private structure has been freed. Clear pointers to freed blocks. svn path=/trunk/; revision=20077
* Use fixed margins of 5% of page width/height. This is the same cheat asHans Petter Jansson2003-02-262-12/+43
| | | | | | | | | | | | | 2003-02-25 Hans Petter Jansson <hpj@ximian.com> * gui/print.c (print_calendar): Use fixed margins of 5% of page width/height. This is the same cheat as gtkhtml employs to get around the fact that GNOME_PRINT_KEY_PAGE_MARGIN_* don't return useful values (I think). It sort of sucks, but is better than no margins at all. (print_comp): Ditto. svn path=/trunk/; revision=20066
* Get default view from correct key.Hans Petter Jansson2003-02-262-1/+6
| | | | | | | | | 2003-02-25 Hans Petter Jansson <hpj@ximian.com> * gui/calendar-config.c (calendar_config_get_default_view): Get default view from correct key. svn path=/trunk/; revision=20064
* Show start/end-of-day widgets.Hans Petter Jansson2003-02-262-0/+7
| | | | | | | | | 2003-02-25 Hans Petter Jansson <hpj@ximian.com> * gui/dialogs/cal-prefs-dialog.c (get_widgets): Show start/end-of-day widgets. svn path=/trunk/; revision=20062
* Don't warn if calendar isn't loaded... Doesn't seem to hurt, but thisHans Petter Jansson2003-02-245-5/+28
| | | | | | | | | | | | | | | | | | | | | | 2003-02-23 Hans Petter Jansson <hpj@ximian.com> * cal-client/cal-client.c (cal_client_is_read_only): Don't warn if calendar isn't loaded... Doesn't seem to hurt, but this should probably be investigated further. * gui/dialogs/comp-editor-util.c (comp_editor_contacts_to_widget): If we have no contacts, don't bother trying to set them in the widget. Used to pass a NULL list, which would lead to much anxiety in callees. * gui/dialogs/meeting-page.c (meeting_page_fill_widgets): If we have no potential organizers, emit a sensible warning. * gui/dialogs/task-page.c (init_widgets): Don't try to connect to the "changed" signal of the GtkTextView -- we listen to the GtkTextBuffer now. svn path=/trunk/; revision=20019
* gconf settings upgradesMichael Zucci2003-02-2413-419/+224
| | | | svn path=/trunk/; revision=20018
* dont unref accounts anymore. (change_status): itipAddress -> EAccount.Not Zed2003-02-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-02-20 Not Zed <NotZed@Ximian.com> * gui/e-itip-control.c (destroy): dont unref accounts anymore. (change_status): itipAddress -> EAccount. * gui/calendar-model.c (calendar_model_destroy): dont unref accounts anymore. (calendar_model_value_at): simplify logic using account_list_find. * gui/dialogs/task-editor.c (task_editor_edit_comp): use new itip_addresses interfaces. * gui/dialogs/meeting-page.c (meeting_page_construct): use new itip_addresses_* interfaces. Should probably be using e_account directly. (meeting_page_finalize): dont unref the accounts list. * gui/dialogs/event-editor.c (event_editor_edit_comp): dont unref accounts anymore. * gui/itip-utils.c (itip_addresses_get_default): Just use e_account_list_get_default. (itip_addresses_get): dont ref the account object, just keep 1 ref to it. (find_account): remove. (itip_organizer_is_user): use e_account_list_find now. (itip_sentby_is_user): " (comp_limit_attendees): " 2003-02-19 Not Zed <NotZed@Ximian.com> * gui/dialogs/meeting-page.c: addresses->accounts (meeting_page_finalize): unref accounts. * gui/dialogs/event-editor.c: Use EAccountList api's * pcs/cal-backend-util.c (cal_backend_mail_account_get): Removed, use a global EAccountList instead. (cal_backend_mail_account_get_default): Use the global EAccountList directly. (cal_backend_mail_account_is_valid): And here too. * gui/itip-utils.h: Removed ItipAddress structure. * gui/itip-utils.c (itip_addresses_get): Change it to return a global account object, so we dont need to duplicate all account info in the calendar. (itip_addresses_free, itip_address_free): Removed, use g_object_unref. (itip_addresses_get_default): Return an EAccount. (find_account): helper to lookup accounts based on name/address. (itip_organizer_is_user): Use helper to find account. (itip_sentby_is_user): " (comp_limit_attendees): " (comp_sentby): Update to use an EAccount direclty. (get_address): Removed, now redundant. * gui/e-itip-control.c: Changed priv->addresses to be accounts EAccountList. (destroy): unref accounts. (find_my_address): Change to use accounts list directly, also fix a small potential memleak. * gui/calendar-model.c: Change priv->addresses to be a direct reference to an EAccountList, renamed priv->accounts. (calendar_model_destroy): unref accounts. (calendar_model_value_at): Use EAccountList directly to lookup members. * gui/calendar-config.c (calendar_config_get_timezone) (calendar_config_set_timezone): Fix timezone key. (calendar_config_get_24_hour_format): Same for 24 hour format key. (calendar_config_set_24_hour_format): And here. (calendar_config_get_week_start_day): " (calendar_config_set_week_start_day): " (calendar_config_get_day_start_hour): " (calendar_config_set_day_start_hour): " (calendar_config_get_day_start_minute): " (calendar_config_set_day_start_minute): " (calendar_config_get_day_end_hour): " (calendar_config_set_day_end_hour): " (calendar_config_get_day_end_minute) (calendar_config_set_day_end_minute) (calendar_config_get_time_divisions) (calendar_config_set_time_divisions) (calendar_config_get_dnav_show_week_no) (calendar_config_set_dnav_show_week_no) (calendar_config_get_default_view) (calendar_config_set_default_view) (calendar_config_get_hpane_pos, calendar_config_set_hpane_pos) (calendar_config_get_vpane_pos, calendar_config_set_vpane_pos) (calendar_config_get_month_hpane_pos) (calendar_config_set_month_hpane_pos) (calendar_config_get_month_vpane_pos) (calendar_config_set_month_vpane_pos) (calendar_config_get_compress_weekend) (calendar_config_set_compress_weekend) (calendar_config_get_show_event_end) (calendar_config_set_show_event_end) (calendar_config_get_working_days) (calendar_config_set_working_days) (calendar_config_get_hide_completed_tasks) (calendar_config_set_hide_completed_tasks) (calendar_config_get_hide_completed_tasks_units) (calendar_config_set_hide_completed_tasks_units) (calendar_config_get_hide_completed_tasks_value) (calendar_config_set_hide_completed_tasks_value) (calendar_config_get_confirm_delete) (calendar_config_set_confirm_delete) (calendar_config_get_confirm_expunge) (calendar_config_set_confirm_expunge) (calendar_config_get_tasks_due_today_color) (calendar_config_set_tasks_due_today_color) (calendar_config_get_tasks_overdue_color) (calendar_config_set_tasks_overdue_color) (calendar_config_get_use_default_reminder) (calendar_config_set_use_default_reminder) (calendar_config_get_default_reminder_interval) (calendar_config_set_default_reminder_interval) (calendar_config_get_default_reminder_units) (calendar_config_set_default_reminder_units) (calendar_config_default_calendar_folder) (calendar_config_default_tasks_folder): Update config paths for new config convention, etc. * gui/alarm-notify/save.c (KEY_LAST_NOTIFICATION_TIME, etc): Updated keys to lowercase/proper path. (save_calendars_to_load): Store the calendars list as a gconf list. (get_calendars_to_load): Load the calendars list as a gconf list. (save_blessed_program): Similar, for the blessed program list. (is_blessed_program): Same here. * gui/alarm-notify/config-data.c (config_data_get_timezone): Update the path to the timezone key. (config_data_get_24_hour_format): Fix path to config option. * conduits/todo/todo-conduit.c (get_default_timezone): lower-case the timezone key. * conduits/calendar/calendar-conduit.c (get_default_timezone): lower-case the timezone key. * cal-client/cal-client.c (get_default_uri): Use the proper path to get the default folder uri's. svn path=/trunk/; revision=20017
* dont unref accounts anymore. (change_status): itipAddress -> EAccount.Not Zed2003-02-242-2/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-02-20 Not Zed <NotZed@Ximian.com> * gui/e-itip-control.c (destroy): dont unref accounts anymore. (change_status): itipAddress -> EAccount. * gui/calendar-model.c (calendar_model_destroy): dont unref accounts anymore. (calendar_model_value_at): simplify logic using account_list_find. * gui/dialogs/task-editor.c (task_editor_edit_comp): use new itip_addresses interfaces. * gui/dialogs/meeting-page.c (meeting_page_construct): use new itip_addresses_* interfaces. Should probably be using e_account directly. (meeting_page_finalize): dont unref the accounts list. * gui/dialogs/event-editor.c (event_editor_edit_comp): dont unref accounts anymore. * gui/itip-utils.c (itip_addresses_get_default): Just use e_account_list_get_default. (itip_addresses_get): dont ref the account object, just keep 1 ref to it. (find_account): remove. (itip_organizer_is_user): use e_account_list_find now. (itip_sentby_is_user): " (comp_limit_attendees): " 2003-02-19 Not Zed <NotZed@Ximian.com> * gui/dialogs/meeting-page.c: addresses->accounts (meeting_page_finalize): unref accounts. * gui/dialogs/event-editor.c: Use EAccountList api's * pcs/cal-backend-util.c (cal_backend_mail_account_get): Removed, use a global EAccountList instead. (cal_backend_mail_account_get_default): Use the global EAccountList directly. (cal_backend_mail_account_is_valid): And here too. * gui/itip-utils.h: Removed ItipAddress structure. * gui/itip-utils.c (itip_addresses_get): Change it to return a global account object, so we dont need to duplicate all account info in the calendar. (itip_addresses_free, itip_address_free): Removed, use g_object_unref. (itip_addresses_get_default): Return an EAccount. (find_account): helper to lookup accounts based on name/address. (itip_organizer_is_user): Use helper to find account. (itip_sentby_is_user): " (comp_limit_attendees): " (comp_sentby): Update to use an EAccount direclty. (get_address): Removed, now redundant. * gui/e-itip-control.c: Changed priv->addresses to be accounts EAccountList. (destroy): unref accounts. (find_my_address): Change to use accounts list directly, also fix a small potential memleak. * gui/calendar-model.c: Change priv->addresses to be a direct reference to an EAccountList, renamed priv->accounts. (calendar_model_destroy): unref accounts. (calendar_model_value_at): Use EAccountList directly to lookup members. * gui/calendar-config.c (calendar_config_get_timezone) (calendar_config_set_timezone): Fix timezone key. (calendar_config_get_24_hour_format): Same for 24 hour format key. (calendar_config_set_24_hour_format): And here. (calendar_config_get_week_start_day): " (calendar_config_set_week_start_day): " (calendar_config_get_day_start_hour): " (calendar_config_set_day_start_hour): " (calendar_config_get_day_start_minute): " (calendar_config_set_day_start_minute): " (calendar_config_get_day_end_hour): " (calendar_config_set_day_end_hour): " (calendar_config_get_day_end_minute) (calendar_config_set_day_end_minute) (calendar_config_get_time_divisions) (calendar_config_set_time_divisions) (calendar_config_get_dnav_show_week_no) (calendar_config_set_dnav_show_week_no) (calendar_config_get_default_view) (calendar_config_set_default_view) (calendar_config_get_hpane_pos, calendar_config_set_hpane_pos) (calendar_config_get_vpane_pos, calendar_config_set_vpane_pos) (calendar_config_get_month_hpane_pos) (calendar_config_set_month_hpane_pos) (calendar_config_get_month_vpane_pos) (calendar_config_set_month_vpane_pos) (calendar_config_get_compress_weekend) (calendar_config_set_compress_weekend) (calendar_config_get_show_event_end) (calendar_config_set_show_event_end) (calendar_config_get_working_days) (calendar_config_set_working_days) (calendar_config_get_hide_completed_tasks) (calendar_config_set_hide_completed_tasks) (calendar_config_get_hide_completed_tasks_units) (calendar_config_set_hide_completed_tasks_units) (calendar_config_get_hide_completed_tasks_value) (calendar_config_set_hide_completed_tasks_value) (calendar_config_get_confirm_delete) (calendar_config_set_confirm_delete) (calendar_config_get_confirm_expunge) (calendar_config_set_confirm_expunge) (calendar_config_get_tasks_due_today_color) (calendar_config_set_tasks_due_today_color) (calendar_config_get_tasks_overdue_color) (calendar_config_set_tasks_overdue_color) (calendar_config_get_use_default_reminder) (calendar_config_set_use_default_reminder) (calendar_config_get_default_reminder_interval) (calendar_config_set_default_reminder_interval) (calendar_config_get_default_reminder_units) (calendar_config_set_default_reminder_units) (calendar_config_default_calendar_folder) (calendar_config_default_tasks_folder): Update config paths for new config convention, etc. * gui/alarm-notify/save.c (KEY_LAST_NOTIFICATION_TIME, etc): Updated keys to lowercase/proper path. (save_calendars_to_load): Store the calendars list as a gconf list. (get_calendars_to_load): Load the calendars list as a gconf list. (save_blessed_program): Similar, for the blessed program list. (is_blessed_program): Same here. * gui/alarm-notify/config-data.c (config_data_get_timezone): Update the path to the timezone key. (config_data_get_24_hour_format): Fix path to config option. * conduits/todo/todo-conduit.c (get_default_timezone): lower-case the timezone key. * conduits/calendar/calendar-conduit.c (get_default_timezone): lower-case the timezone key. * cal-client/cal-client.c (get_default_uri): Use the proper path to get the default folder uri's. svn path=/trunk/; revision=20016
* Appease the compiler. (gnome_calendar_update_paned_quanta): Don't actuallyHans Petter Jansson2003-02-244-2/+34
| | | | | | | | | | | | | | | | | | 2003-02-23 Hans Petter Jansson <hpj@ximan.com> * gui/gnome-cal.c (backend_died_cb): Appease the compiler. (gnome_calendar_update_paned_quanta): Don't actually try to set the quantum properties. The quantum code should probably go away entirely now that the panes update during resize, but let's keep it around for a bit more. * gui/dialogs/event-editor.c (event_editor_construct): Ref & sink the pages. * gui/dialogs/task-editor.c (task_editor_construct): Ref & sink the pages. svn path=/trunk/; revision=20011
* CVS server broke again. Here's the rest...Hans Petter Jansson2003-02-231-2/+2
| | | | | | | | | | | 2003-02-23 Hans Petter Jansson <hpj@ximian.com> CVS server broke again. Here's the rest... * gui/alarm-notify/alarm-notify-dialog.c (write_html_heading): Ditto. svn path=/trunk/; revision=20009
* Eliminate e_utf8_to_gtk_string ().Hans Petter Jansson2003-02-237-18/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-02-23 Hans Petter Jansson <hpj@ximian.com> * gui/cal-search-bar.c (make_suboptions): Eliminate e_utf8_to_gtk_string (). * gui/e-timezone-entry.c (e_timezone_entry_get_display_name): Ditto. * gui/calendar-model.c (date_value_to_string): e_utf8_from_locale_string () -> g_locale_to_utf8 (). (calendar_model_value_to_string): Ditto. * gui/e-cell-date-edit-text.c (ecd_get_text): Ditto. * gui/e-itip-control.c (write_label_piece): Ditto. * gui/print.c (format_date): Ditto. (print_week_view_background): Ditto. (print_month_summary): Ditto. (print_date_label): Ditto. (print_comp_item): Ditto. * gui/alarm-notify/alarm-notify-dialog.c (write_html_heading): Ditto. svn path=/trunk/; revision=20008
* Show the custom widgets, since libglade appears to not want to do that.Hans Petter Jansson2003-02-233-10/+44
| | | | | | | | | | | | | | | | 2003-02-22 Hans Petter Jansson <hpj@ximian.com> * gui/dialogs/task-details-page.c (get_widgets): Show the custom widgets, since libglade appears to not want to do that. * gui/dialogs/task-page.c (clear_widgets): Make the description field use a GtkTextView. (task_page_fill_widgets): Ditto. (task_page_fill_component): Ditto. (init_widgets): Ditto. (get_widgets): Show the custom widgets, since libglade doesn't do it. svn path=/trunk/; revision=20003
* Add an iteration statement. Fixes hang in wombat.Hans Petter Jansson2003-02-232-0/+7
| | | | | | | | | 2003-02-22 Hans Petter Jansson <hpj@ximian.com> * pcs/cal-backend.c (cal_backend_unref_categories): Add an iteration statement. Fixes hang in wombat. svn path=/trunk/; revision=20002
* Commit fixes from Grzegorz Goawski <grzegol@pld.org.pl>.Hans Petter Jansson2003-02-232-28/+35
| | | | | | | | | 2003-02-22 Hans Petter Jansson <hpj@ximian.com> * gui/apps_evolution_calendar.schemas: Commit fixes from Grzegorz Goawski <grzegol@pld.org.pl>. svn path=/trunk/; revision=19999
* GObject, not GtkObject. (calendar_model_destroy): ->Hans Petter Jansson2003-02-227-30/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-02-21 Hans Petter Jansson <hpj@ximian.com> * gui/calendar-model.c (calendar_model_class_init): GObject, not GtkObject. (calendar_model_destroy): -> calendar_model_finalize (). * gui/calendar-view.c (calendar_view_class_init): GObject, not GtkObject. (calendar_view_destroy): -> calendar_view_finalize (). * gui/comp-editor-factory.c (comp_editor_factory_class_init): GObject, not GtkObject. (comp_editor_factory_destroy): -> comp_editor_factory_finalize (). * gui/e-day-view.c (e_day_view_long_event_button_press): gtk_signal_disconnect () -> g_signal_handler_disconnect (). (e_day_view_on_event_button_press): Ditto. (e_day_view_on_long_event_click): Ditto. (e_day_view_on_event_click): Ditto. (e_day_view_on_event_double_click): Ditto. (e_day_view_on_delete_appointment): Ditto. * gui/e-week-view.c (e_week_view_on_text_item_event): gtk_signal_disconnect () -> g_signal_handler_disconnect (). * gui/alarm-notify/alarm-notify.c (AlarmNotify_RemoveCalendar): Don't cast to GtkObject. svn path=/trunk/; revision=19995
* Make libversit a shared library, update stuff for that, and clean upDan Winship2003-02-225-20/+27
| | | | | | some LDADDs in the process svn path=/trunk/; revision=19994
* Add GConf schemas.Hans Petter Jansson2003-02-213-2/+365
| | | | | | | | | | | 2003-02-20 Hans Petter Jansson <hpj@ximian.com> * gui/apps_evolution_calendar.schemas: Add GConf schemas. * gui/Makefile.am (EXTRA_DIST): Dist GConf schemas. (install-data-local): Install GConf schemas. svn path=/trunk/; revision=19987
* Make libemiscwidgets, libefilterbar, and libetimezonedialog dynamicDan Winship2003-02-212-2/+8
| | | | | | | libraries, so they can be portably linked into the (shared library) components. (Part 1 of N.) svn path=/trunk/; revision=19971
* revert previous changeDan Winship2003-02-206-22/+9
| | | | svn path=/trunk/; revision=19968
* Remove libversit. We haven't depended on that in forever.Dan Winship2003-02-206-9/+22
| | | | | | | | | | | | | | | | | * cal-client/Makefile.am (client_test_LDADD): Remove libversit. We haven't depended on that in forever. * cal-util/Makefile.am (test_recur_LDADD): Likewise * gui/alarm-notify/Makefile.am: build libalarm as a shared library instead of static. * gui/dialogs/Makefile.am: likewise for libcal-dialogs * gui/Makefile.am (libevolution_calendar_la_LIBADD): update for that. svn path=/trunk/; revision=19965
* Split $(CORBA_GENERATED_H) rule from the $(CORBA_GENERATED_C) rule to thatEttore Perazzoli2003-02-204-10/+23
| | | | | | | | | | | | | * pcs/Makefile.am: Split $(CORBA_GENERATED_H) rule from the $(CORBA_GENERATED_C) rule to that it autogens properly when using parallel makes. * cal-client/Makefile.am: Likewise. * gui/gnome-cal.c (gnome_calendar_setup_view_menus): Fix path to the calendar's GAL Views directory. [Pointed out by Grzegorz Goawski.] svn path=/trunk/; revision=19947
* add .server.in filesDan Winship2003-02-201-0/+1
| | | | svn path=/trunk/; revision=19944
* Enable printing for calendar and tasks.Hans Petter Jansson2003-02-123-217/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-02-11 Hans Petter Jansson <hpj@ximian.com> Enable printing for calendar and tasks. * gui/print.c: Set default font to be "Sans". Store the PrintConfig globally instead of PaperInfo (which doesn't exist anymore). (get_font_for_size): Don't use gnome_font_face_find_closest_from_weight_slant() anymore, since it's broken. Instead, use gnome_font_face_find() and put bold- and italicness in the name to look for. Descenders can now be negative, so have to take the absolute value to get font height. (print_comp): Use global, persistent print configuration. GnomePrintDialog is now a GtkDialog. Remove manual configuration parameter shuffling. Set up page using new methods. (print_calendar): Like print_comp(). For month view, force landscape mode by temporarily setting it in the config, and remove the old hack. (print_setup): Port. I'm not sure this works, but at least it compiles now. How do I test this code path? (print_day_view): Pass NULL for page denominator. (print_week_view): Ditto. (print_month_view): Ditto. (print_year_view): Ditto. (print_comp_item): Add missing gnome_print_beginpage(). How did this work before? * gui/tasks-control.c: Store the PrintConfig globally instead of passing individual parameters every time. Persistent too. (print_title): Look for "Sans Bold" instead of "Times" with GNOME_FONT_BOLD property. Don't use find_closest_from_weight_slant(). (print_tasks): Set up page using new methods. GnomePrintMaster -> GnomePrintJob. Get params from global config instead of args. (tasks_control_print_cmd): Use global, persistent print configuration. Remove manual portrait/landscape hack. GnomePrintDialog is now a GtkDialog. Set params in global config instead of passing them to print_tasks(). (tasks_control_print_preview_cmd): print_tasks() now takes fewer args. svn path=/trunk/; revision=19889
* Don't use gtk_scrolled_window_set_scrollbar_spacing() anymore.Hans Petter Jansson2003-02-122-1/+5
| | | | | | | | | 2003-02-11 Hans Petter Jansson <hpj@ximian.com> * gui/e-meeting-time-sel.c (e_meeting_time_selector_construct): Don't use gtk_scrolled_window_set_scrollbar_spacing() anymore. svn path=/trunk/; revision=19888
* Don't try to make an error string from an uninitialized GnomeVFSResult.Hans Petter Jansson2003-02-112-4/+15
| | | | | | | | | 2003-02-10 Hans Petter Jansson <hpj@ximian.com> * pcs/cal-backend-file.c (save): Don't try to make an error string from an uninitialized GnomeVFSResult. svn path=/trunk/; revision=19880
* Make the CORBA IDL compilation work with parallel makes. Likewise.Ettore Perazzoli2003-02-114-19/+61
| | | | | | | | | * gui/Makefile.am: Make the CORBA IDL compilation work with parallel makes. * gui/dialogs/Makefile.am: Likewise. * gui/alarm-notify/Makefile.am: Likewise. svn path=/trunk/; revision=19872
* remove this file, as it's generated now Add this file to generate theRodney Dawes2003-02-083-3/+13
| | | | | | | | | | | | 2003-02-07 Rodney Dawes <dobey@ximian.com> * gui/alarm-notify/GNOME_Evolution_Calendar_AlarmNotify.server.in: remove this file, as it's generated now * gui/alarm-notify/GNOME_Evolution_Calendar_AlarmNotify.server.in.in: Add this file to generate the .server.in from, with hardcoded path * gui/alarm-notify/Makefile.am: Hardcode path in server file svn path=/trunk/; revision=19851
* Fixes #37706Rodrigo Moya2003-02-082-2/+25
| | | | | | | | | | | 2003-02-07 Rodrigo Moya <rodrigo@ximian.com> Fixes #37706 * gui/comp-editor-factory.c (cal_opened_cb): added PERMISSION_DENIED case for not ending process on g_assert_not_reached. svn path=/trunk/; revision=19845
* Use e_auto_kill_popup_menu_on_selection_done() instead ofEttore Perazzoli2003-02-073-2/+10
| | | | | | | | | | * gui/e-day-view-time-item.c (e_day_view_time_item_show_popup_menu): Use e_auto_kill_popup_menu_on_selection_done() instead of e_auto_kill_popup_menu_on_hide(). * gui/dialogs/meeting-page.c (right_click_cb): Likewise. svn path=/trunk/; revision=19835
* show the widget before returning it.Dan Winship2003-02-072-1/+8
| | | | | | | * gui/dialogs/event-page.c (make_timezone_entry): show the widget before returning it. svn path=/trunk/; revision=19826
* s/PACKAGE/GETTEXT_PACKAGE/ in gettext initDan Winship2003-02-072-2/+7
| | | | svn path=/trunk/; revision=19818
* makefile and warnings fixesDan Winship2003-02-061-0/+105
| | | | svn path=/trunk/; revision=19796
* Update this some although it's not currently being builtDan Winship2003-02-061-6/+4
| | | | | | | * importers/Makefile.am: Update this some although it's not currently being built svn path=/trunk/; revision=19795
* Remove cruft. Rename ICONSDIR to IMAGESDIR. (gladedir, etspecdir,Dan Winship2003-02-0613-41/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/Makefile.am (INCLUDES): Remove cruft. Rename ICONSDIR to IMAGESDIR. (gladedir, etspecdir, serverdir): Remove definitions (libevolution_calendar_la_LDFLAGS): Remove -export-dynamic, add -module. * gui/calendar-config.c: #include <string.h> * gui/calendar-component.c (add_creatable_item): s/ICONSDIR/IMAGESDIR/ * gui/comp-util.c: #include <string.h> * gui/e-alarm-list.c: #include e-time-utils.h (row_deleted): Remove unused variable. (e_alarm_list_append): Likewise. * gui/e-date-time-list.c: #include e-time-utils.h, timeutil.h, calendar-config.h (row_deleted): Remove unused variable (e_date_time_list_append): Likewise. * gui/e-day-view.c (e_day_view_unrealize): Remove unused var (e_day_view_style_set): Likewise. (e_day_view_set_event_font_cb): Likewise. * gui/e-day-view-time-item.c: #include <string.h> (e_day_view_time_item_get_column_width): Remove unused variable. * gui/e-itip-control.c: #include <unistd.h> (url_requested_cb): s/ICONSDIR/IMAGESDIR/ * gui/e-week-view.c (e_week_view_unrealize): Remove unused variable (e_week_view_style_set): Likewise * gui/e-week-view-titles-item.c: #include string.h * gui/itip-bonobo-control.c: Likewise * gui/print.c: Likewise svn path=/trunk/; revision=19794
* Use privlibexecdir. (INCLUDES): Remove cruft. (gladedir, serversdir):Dan Winship2003-02-063-19/+11
| | | | | | | | | | | | | | | | * gui/alarm-notify/Makefile.am: Use privlibexecdir. (INCLUDES): Remove cruft. (gladedir, serversdir): Remove definitions (evolution_alarm_notify_LDFLAGS): Remove no-longer-needed -export-dynamic. * gui/alarm-notify/alarm-notify-dialog.c (write_html_heading): s/ICONSDIR/IMAGESDIR * gui/alarm-notify/notify-main.c (main): Fix up gettext initialization svn path=/trunk/; revision=19793
* Remove cruft. Rename ICONSDIR to IMAGESDIR. (gladedir, etspecdir): RemoveDan Winship2003-02-066-20/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/dialogs/Makefile.am (INCLUDES): Remove cruft. Rename ICONSDIR to IMAGESDIR. (gladedir, etspecdir): Remove definitions * gui/dialogs/alarm-page.c: #include gtktreeselection.h and gtkcellrenderertext.h (append_reminder): Remove unused variable. (alarm_page_fill_component): Likewise. (alarm_page_set_summary): Likewise. (delete_clicked_cb): Likewise. * gui/dialogs/comp-editor.c (make_icon_from_comp): s/ICONSDIR/IMAGESDIR/ * gui/dialogs/event-page.c: #include <string.h> * gui/dialogs/meeting-page.c (meeting_page_construct): Remove unused variable. (meeting_page_fill_widgets): Likewise * gui/dialogs/recurrence-page.c: #include gtktreeselection.h and gtkcellrenderertext.h (append_exception): Remove unused variable (fill_component): Likewise (recurrence_page_set_summary): Likewise. (exception_delete_cb): Likewise svn path=/trunk/; revision=19792
* Define in terms of privincludedirDan Winship2003-02-063-8/+4
| | | | | | | | | | | * cal-client/Makefile.am (libcal_clientincludedir): Define in terms of privincludedir * cal-client/client-test.c (main): Fix up gettext initialization * cal-client/cal-client.c (cal_client_construct): Likewise svn path=/trunk/; revision=19791
* Remove cruft. (libcal_utilincludedir): Define in terms of privincludedirDan Winship2003-02-061-2/+1
| | | | | | | * cal-util/Makefile.am (INCLUDES): Remove cruft. (libcal_utilincludedir): Define in terms of privincludedir svn path=/trunk/; revision=19790
* Remove cruft. (pcsincludedir): Define in terms of privincludedirDan Winship2003-02-062-3/+1
| | | | | | | | | | * pcs/Makefile.am (INCLUDES): Remove cruft. (pcsincludedir): Define in terms of privincludedir * pcs/cal-backend-file.c (cal_backend_file_finalize): Remove unused variable svn path=/trunk/; revision=19789
* s/BonoboXObject/BonoboObject/Dan Winship2003-02-065-18/+24
| | | | | | | | * gui/calendar-offline-handler.c: s/BonoboXObject/BonoboObject/ * gui/comp-editor-factory.c: Likewise svn path=/trunk/; revision=19764
* array of localized month day names ("1st" - "31st")Dan Winship2003-02-067-75/+294
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cal-util/cal-recur.c (cal_recur_nth): array of localized month day names ("1st" - "31st") * gui/dialogs/recurrence-page.c (make_recur_month_num_submenu, make_recur_month_num_menu, month_num_menu_selection_done_cb): Use the new cal_recur_nth[] array. The way this was done before didn't localize properly. * gui/alarm-notify/notify-main.c (main): s/glade_gnome_init/glade_init/ From evolution-1-2-branch: * gui/e-itip-control.c (write_recurrence_piece): Describe recurrences, if we can. #30993 (set_date_label): If the meeting has recurrences, call write_recurrence_piece after writing the start and end dates. (write_label_piece): Wrap the timezone in <font size=-1> to de-emphasize it a bit and try to keep the timestamp on a single line even with big Outlook timezone names. Add an option to show just the date, for describing the end of recurrences (since the time in the UNTIL is the *beginning* of the last instance, which would confuse people). (update_item): Set the VCALENDAR's METHOD. (ok_clicked_cb): Use update_item, not remove_item, to process a cancelation. Part of #33875. * pcs/cal-backend-file.c (cal_backend_file_cancel_object): New, handle an ICAL_METHOD_CANCEL update. (cal_backend_file_update_objects): Call cal_backend_file_update_object or cal_backend_file_cancel_object as appropriate. svn path=/trunk/; revision=19763
* The CVS server exited after applying everything from my last commit,Hans Petter2003-02-051-10/+22
| | | | | | except for the changes made to this file. Why? svn path=/trunk/; revision=19750
* Rename to e_meeting_time_selector_on_invite_others_button_expose() andHans Petter Jansson2003-02-052-9/+26
| | | | | | | | | | | | | | | | | | | | 2003-02-04 Hans Petter Jansson <hpj@ximian.com> * gui/e-meeting-time-sel.c (e_meeting_time_selector_on_invite_others_button_draw): Rename to e_meeting_time_selector_on_invite_others_button_expose() and handle "expose-event" instead of "draw". (e_meeting_time_selector_construct): The "draw" signal doesn't exist anymore - connect to "expose-event" instead. * gui/dialogs/event-page.c (clear_widgets): Clear the GtkTextBuffer for the description. (event_page_fill_widgets): Use the GtkTextBuffer. (event_page_fill_component): Use the GtkTextBuffer. (init_widgets): Create a GtkTextBuffer for the GtkTextView. Set word wrap. Connect to the "changed" signal of the model instead of the view. svn path=/trunk/; revision=19749
* Fix badly formatted ChangeLog entry. This has been bothering me since itHans Petter2003-02-051-2/+2
| | | | | | first appeared there. svn path=/trunk/; revision=19744
* Use PangoLayout to draw text.Hans Petter Jansson2003-02-052-12/+23
| | | | | | | | | | 2003-02-04 Hans Petter Jansson <hpj@ximian.com> * gui/e-meeting-time-sel-item.c (e_meeting_time_selector_item_paint_day_top): Use PangoLayout to draw text. svn path=/trunk/; revision=19743
* updated for e scroll frame --> gtk scrolled windowRadek Doulik2003-02-052-18/+18
| | | | svn path=/trunk/; revision=19736
* Skip setting the "font_gdk" arg for now.Hans Petter Jansson2003-02-026-0/+29
| | | | | | | | | | | | | | | | | | | | 2003-02-02 Hans Petter Jansson <hpj@ximian.com> * gui/e-day-view.c (e_day_view_set_event_font_cb): Skip setting the "font_gdk" arg for now. (e_day_view_update_main_canvas_drag): Ditto. * gui/e-week-view.c (e_week_view_style_set): Ditto. * gui/weekday-picker.c (configure_items): Ditto. * gui/dialogs/event-page.c (get_widgets): Show custom widgets manually, since the visibility specified in the Glade XML appears to not have any effect. * gui/dialogs/recurrence-page.c (get_widgets): Ditto. svn path=/trunk/; revision=19706
* Fixes #35572Ronald Kuetemeier2003-01-312-0/+9
| | | | | | | | | | | | 2003-30-01 Ronald Kuetemeier <ronald@kuetemeier.com> Fixes #35572 * gui/alarm-notify/alarm-queue.c: set saved_notification_time to last notification time when we update the config to last notification, so alarms will not get trigged again if a new calendar window is opened. svn path=/trunk/; revision=19690
* CalClient and CalComponent are GObjects.Chris Toshok2003-01-273-19/+26
| | | | | | | | | | | 2003-01-26 Chris Toshok <toshok@ximian.com> * conduits/todo/todo-conduit.c: CalClient and CalComponent are GObjects. * conduits/calendar/calendar-conduit.c: same. svn path=/trunk/; revision=19645
* fix warning. (get_default_timezone): BonoboConfigDatabase ->Chris Toshok2003-01-274-94/+36
| | | | | | | | | | | | | | | | | | | | 2003-01-26 Chris Toshok <toshok@ximian.com> * conduits/calendar/calendar-conduit.c (start_calendar_server): fix warning. (get_default_timezone): BonoboConfigDatabase -> e_config_listener. (accept_all_cookies): remove. (conduit_get_gpilot_conduit): remove the oaf initialization stuff. * conduits/todo/todo-conduit.c (start_calendar_server): fix warning. (get_default_timezone): BonoboConfigDatabase -> e_config_listener. (accept_all_cookies): remove. (conduit_get_gpilot_conduit): remove the oaf initialization stuff. * Makefile.am (CONDUIT_DIR): uncomment the conduit stuff. svn path=/trunk/; revision=19642
* Make clicks, drags and resizes work, and pangoize remaining strings. FixHans Petter Jansson2003-01-274-50/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-01-26 Hans Petter Jansson <hpj@ximian.com> Make clicks, drags and resizes work, and pangoize remaining strings. Fix EText placement. * gui/e-day-view-top-item.c (e_day_view_top_item_draw_long_event): Use Pango. * gui/e-day-view.c (e_day_view_on_top_canvas_button_press): Don't add scroll offset, it's already factored in. (e_day_view_on_main_canvas_button_press): Ditto. (e_day_view_on_top_canvas_motion): Ditto. (e_day_view_on_main_canvas_motion): Ditto. (e_day_view_reshape_long_event): Don't set the "font_gdk" property. Its non-existence will prevent the other properties from being set as well. (e_day_view_reshape_day_event): Ditto. (e_day_view_update_top_canvas_drag): Ditto. (e_day_view_start_editing_event): ETextEventProcessor is a GObject now. So use g_signal_stuff. (e_day_view_check_auto_scroll): Factor out scroll offset before checking the pointer's position relative to widget. (e_day_view_auto_scroll_handler): Don't freeze the canvas when scrolling - it will fail to update the canvas. If this is not intended behaviour, it's a bug in the canvas, I think. (e_day_view_on_main_canvas_drag_motion): Factor in the scroll offset before checking for auto-scroll, since the function requires this. * gui/e-week-view.c (e_week_view_reshape_event_span): Don't set the "font_gdk" property. Its non-existence will prevent the other properties from being set as well. (e_week_view_start_editing_event): ETextEventProcessor is a GObject now. So use g_signal_stuff. svn path=/trunk/; revision=19641
* Mainly making all views use PangoLayouts for text. When drawing aHans Petter Jansson2003-01-2617-125/+308
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-01-25 Hans Petter Jansson <hpj@ximian.com> Mainly making all views use PangoLayouts for text. When drawing a PangoLayout, the draw offset is the top left corner of the layout, not the text's baseline. Keep this in mind when viewing the changes. I'll be brief about the exact changes, since they speak better for themselves. * gui/e-day-view-time-item.c (e_day_view_time_item_get_column_width): Use Pango. (e_day_view_time_item_draw): Use Pango. * gui/e-day-view-top-item.c (e_day_view_top_item_draw): Use Pango. (e_day_view_top_item_draw_long_event): Add some FIXME text so we can see when this is being used. Is it in use at all? * gui/e-day-view.c: No longer specify an explicit X font string for the large font. Use the main font, and change the point size. (e_day_view_init): Use Pango. (e_day_view_style_set): Use Pango. Comment out the gdk_font setting for the drag text items for now. * gui/e-day-view.h: Use Pango. * gui/e-week-view-event-item.c (e_week_view_draw_time): Use Pango. * gui/e-week-view-main-item.c (e_week_view_main_item_draw_day): Use Pango. * gui/e-week-view-titles-item.c (e_week_view_titles_item_draw): Use Pango. * gui/e-week-view.c: No longer specify an explicit X font string for the small font. Use the main font, and change the point size. (e_week_view_init): Use Pango. (e_week_view_destroy): Use Pango. (get_string_width): Implemented for convenience. (get_digit_width): Implemented for convenience. (e_week_view_style_set): Use Pango. (e_week_view_recalc_cell_sizes): Use Pango. (e_week_view_get_time_string_width): Use Pango. * gui/e-week-view.h: Use Pango. Following are some random UTF-8 fixes and a crash fix. * gui/itip-utils.c (comp_description): Use g_locale_to_utf8 (). * gui/dialogs/comp-editor.c (make_title_from_comp): Return a UTF-8 string. * gui/dialogs/alarm-page.c (alarm_page_set_summary): Pass UTF-8 directly to GTK. * gui/dialogs/delete-comp.c (delete_component_dialog): Ditto. * gui/dialogs/meeting-page.c (meeting_page_fill_widgets): Ditto. (meeting_page_construct): Ditto. * gui/dialogs/recurrence-page.c (recurrence_page_set_summary): Ditto. * gui/dialogs/event-editor.c (event_editor_finalize): Fix crash caused by gtk_object_destroy()-ing a non-GtkObject. svn path=/trunk/; revision=19628
* Don't insist appointment is updated if both old and new summary are blank.Hans Petter Jansson2003-01-2510-324/+373
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-01-24 Hans Petter Jansson <hpj@ximian.com> * gui/e-day-view.c (e_day_view_on_editing_stopped): Don't insist appointment is updated if both old and new summary are blank. * gui/e-week-view.c (e_week_view_on_editing_stopped): Ditto. * gui/e-timezone-entry.c (on_button_clicked): Timezone dialog is now a GtkDialog. Treat it as such. * gui/goto.c (ecal_event): Goto dialog is now a GtkDialog. Treat it as such. (goto_dialog): Ditto. * gui/goto-dialog.glade: Set the return IDs from the dialog buttons. * gui/dialogs/meeting-page.c (popup_delegate_cb): Enable the delegate dialog. It's now a GtkDialog, so treat it like one. (right_click_cb): Use GTK stock item, not GNOME (that doesn't work anymore). * gui/e-delegate-dialog.glade: Set the return IDs from dialog buttons. * gui/print.c (print_calendar): Correct the print dialog init. Code is still not enabled, though. * gui/tasks-control.c (print_tasks): Add a warning about printing being disabled. svn path=/trunk/; revision=19624
* Remove, this is now defined in configure.in.Ettore Perazzoli2003-01-254-5/+11
| | | | | | | | | | | | | * gui/dialogs/Makefile.am (iconsdir): Remove, this is now defined in configure.in. * gui/Makefile.am (iconsdir): Remove; this is now defined in configure.in. * gui/alarm-notify/Makefile.am (iconsdir): Remove; this is now defined in configure.in. svn path=/trunk/; revision=19620
* Add a terminating NULL to the concatenation.Hans Petter Jansson2003-01-242-1/+4
| | | | | | | | | 2003-01-23 Hans Petter Jansson <hpj@ximian.com> * gui/dialogs/comp-editor.c (comp_editor_merge_ui): Add a terminating NULL to the concatenation. svn path=/trunk/; revision=19612
* GTK_OBJECT -> G_OBJECT cast.Hans Petter Jansson2003-01-249-8/+28
| | | | | | | | | | | | | | | | | | | | | | | 2003-01-23 Hans Petter Jansson <hpj@ximian.com> * gui/dialogs/event-page.c (get_widgets): GTK_OBJECT -> G_OBJECT cast. * gui/dialogs/alarm-page.c (get_widgets): Ditto. * gui/dialogs/meeting-page.c (get_widgets): Ditto. * gui/dialogs/recurrence-page.c (get_widgets): Ditto. * gui/dialogs/schedule-page.c (get_widget): Ditto. * gui/dialogs/task-details-page.c (get_widget): Ditto. * gui/dialogs/task-page.c (get_widget): Ditto. * gui/e-meeting-time-sel.c (e_meeting_time_selector_construct): Add a FIXME comment to think about. svn path=/trunk/; revision=19610
* Fixes some trivial, but distracting, warnings.Hans Petter Jansson2003-01-2412-20/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-01-23 Hans Petter Jansson <hpj@ximian.com> Fixes some trivial, but distracting, warnings. * gui/calendar-config.c (on_timezone_set): Fix constness. * gui/e-timezone-entry.c (on_button_clicked): Fix constness. * gui/dialogs/event-page.c (contacts_changed_cb): Fix constness. * gui/dialogs/task-page.c (contacts_changed_cb): Fix constness. * gui/e-itip-control.c (start_default_server): Cast callback with G_CALLBACK (). * gui/dialogs/schedule-page.c (init_widgets): Cast callback with G_CALLBACK (). * gui/calendar-offline-handler.c (impl_dispose): Takes GObject, not GtkObject. (impl_finalize): Ditto. * gui/calendar-view.c (calendar_view_edit): Now takes parent window as second arg. * gui/e-meeting-model.c (select_names_ok_cb): Fix constness. (get_select_name_dialog): Cast callback to BonoboListenerCallbackFn. * gui/e-meeting-time-sel.c (e_meeting_time_selector_options_menu_position_callback): Add the push_in arg to arg list. This was crash-prone before. (e_meeting_time_selector_autopick_menu_position_callback): Ditto. * gui/alarm-notify/alarm-notify-dialog.c: Include e-unicode.h. svn path=/trunk/; revision=19605
* Define componentdir instead of COMPONENT_DIR. Set it toEttore Perazzoli2003-01-242-1/+5
| | | | | | | | | | | | | | | | | | | | | | * configure.in (idldir): Define componentdir instead of COMPONENT_DIR. Set it to $privlibdir/components instead of $libdir/evolution-$(BASE_VERSION)/components. * gui/component/select-names/Makefile.am (componentdir): Remove definition; no need to set it here since it's now defined in configure.in * gui/component/Makefile.am (componentdir): Likewise. * gui/Makefile.am (componentdir): Removed definition; this is now defined in configure.in. * Makefile.am (componentdir): Removed definition; this is now defined in configure.in. * Makefile.am (componentdir): Removed definition; this is now defined in configure.in. svn path=/trunk/; revision=19588
* (cal_backend_ref_categories): Do not put theEttore Perazzoli2003-01-232-1/+6
| | | | | | | | category in both the changed_categories and the categories hashes; fixes a double-free when finalizing the CalBackend. [Hopefully this is the right fix.] svn path=/trunk/; revision=19572
* Use EVOLUTION_GALVIEWSDIR.Ettore Perazzoli2003-01-2314-49/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/gnome-cal.c (gnome_calendar_setup_view_menus): Use EVOLUTION_GALVIEWSDIR. * gui/e-tasks.c (e_tasks_setup_view_menus): Use EVOLUTION_GALVIEWSDIR. * cal-util/Makefile.am: Install libcal-util.la in $(privlibdir) instead of $(libdir). * gui/dialogs/comp-editor.c (setup_widgets): Get evolution-comp-editor.xml from EVOLUTION_UIDIR. (comp_editor_merge_ui): Get the file in EVOLUTION_UIDIR. * gui/tasks-control.c (tasks_control_activate): Get evolution-tasks.xml from EVOLUTION_UI_DIRECTORY. * gui/calendar-commands.c (calendar_control_activate): Get evolution-calendar.xml from EVOLUTION_UI_DIRECTORY. * pcs/Makefile.am (pcsincludedir): Version using $(BASE_VERSION). * importers/Makefile.am: Install evolution-calendar-importer in $(libexecdir)/evolution/$(BASE_VERSION). (sounddir): Remove. * gui/dialogs/Makefile.am (iconsdir): Version using $(BASE_VERSION). (gladedir): Likewise. (etspecdir): Likewise. * gui/Makefile.am (help_base): Remove. (install-data-local): Do not make the $(help_base)/C directory. (etspecdir): Version using $(BASE_VERSION). (gladedir): Likewise. (iconsdir): Likewise. (INCLUDES): Update the EVOLUTION_IMAGESDIR define to be versioned, and add a -DEVOLUTION_GALVIEWSDIR. * cal-util/Makefile.am: Install evolution-alarm-notify in $(libexecdir)/evolution/$(BASE_VERSION). * cal-util/Makefile.am (libcal_utilincludedir): Version using $(BASE_VERSION). * gui/alarm-notify/Makefile.am (iconsdir): Likewise. (gladedir): Likewise. * cal-client/Makefile.am: Install libcal-client.la in privlibdir instead of libdir. (libcal_clientincludedir): Version using $(BASE_VERSION). svn path=/trunk/; revision=19553
* Create a GnomePrintDialog, not a GnomePrinterDialog. They're differentHans Petter Jansson2003-01-222-1/+7
| | | | | | | | | | 2003-01-18 Hans Petter Jansson <hpj@ximian.com> * gui/print.c (print_calendar): Create a GnomePrintDialog, not a GnomePrinterDialog. They're different things. Patch from Chema. svn path=/trunk/; revision=19544
* applied patch from Frederic Crozat <fcrozat@mandrakesoft.com>Radek Doulik2003-01-222-27/+26
| | | | svn path=/trunk/; revision=19540
* Move some non-file-backend-specific stuff from cal-backend-file here so itDan Winship2003-01-204-364/+392
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * pcs/cal-backend.c: Move some non-file-backend-specific stuff from cal-backend-file here so it can be shared with other backends. (CalBackendPrivate): add this, containing the categories hashes and the (formerly public) clients list. (cal_backend_init, cal_backend_finalize): Handle backend->priv. (cal_destroy_cb): Simplify this (and redo it as a weak notify func) (cal_backend_add_cal): Keep a weak ref on the cal rather than connecting to its "destroy" signal. Call notify_categories_changed to let the new cal know about them. (get_object): Default implementation of cal_backend_get_object. that calls cal_component_get_as_string on the return value of cal_backend_get_object_component. (cal_backend_notify_mode, cal_backend_notify_update, cal_backend_notify_remove, cal_backend_notify_error): Notify each Cal about something. (cal_backend_ref_categories, cal_backend_unref_categories): Maintain a list of categories that are used by components in the backend, and trigger categories_changed notifications as needed. * pcs/cal-backend-file.c: Remove stuff that was moved to CalBackend (notify funcs, category handling, get_object implementation) svn path=/trunk/; revision=19524
* Implement EAlarmList as CalComponentAlarm list with a GtkTreeModelHans Petter Jansson2003-01-178-60/+880
| | | | | | | | | | | | | | | | | | 2003-01-16 Hans Petter Jansson <hpj@ximian.com> * gui/e-alarm-list.[ch]: Implement EAlarmList as CalComponentAlarm list with a GtkTreeModel interface. * gui/Makefile.am: Add e-alarm-list.[ch]. * gui/dialogs/alarm-page.[ch]: Use GtkTreeView with the new EAlarmList as model for the alarm list. Update copyright. * gui/dialogs/recurrence-page.[ch]: Update copyright. (free_exception_date_time): Removed. (fill_exception_widgets): Kill a lingering clist operation. svn path=/trunk/; revision=19499
* Silence warnings caused by missing casts.Hans Petter Jansson2003-01-163-44/+48
| | | | | | | | | | 2003-01-15 Hans Petter Jansson <hpj@ximian.com> * gui/e-day-view.c: Silence warnings caused by missing casts. * gui/e-week-view.c: Silence warnings caused by missing casts. svn path=/trunk/; revision=19491
* Create accel groups for popup menus. Fixes crash.Hans Petter Jansson2003-01-166-88/+757
| | | | | | | | | | | | | | | | | 2003-01-15 Hans Petter Jansson <hpj@ximian.com> * gui/e-meeting-time-sel.c (e_meeting_time_selector_construct): Create accel groups for popup menus. Fixes crash. * gui/e-date-time-list.[ch]: Implement EDateTimeList as CalComponentDateTime list with a GtkTreeModel interface. * gui/Makefile.am: Add e-date-time-list.[ch]. * gui/dialogs/recurrence-page.c: Use GtkTreeView with the new EDateTimeList as model for the exception list. svn path=/trunk/; revision=19490
* Added libevolution_calendar_la_LDFLAGS, and avoid versioning the shlibRodney Dawes2003-01-162-0/+8
| | | | | | | | | 2003-01-15 Rodney Dawes <dobey@ximian.com> * gui/Makefile.am: Added libevolution_calendar_la_LDFLAGS, and avoid versioning the shlib component svn path=/trunk/; revision=19480
* (CORBA_SOURCES_GENERATED): Renamed fromEttore Perazzoli2003-01-152-2/+12
| | | | | | | | | CORBA_GENERATED. (CORBA_GENERATED): New, put both $(CORBA_SOURCES_GENERATED) and $(CORBA_HEADERS_GENERATED) in it. (BUILT_SOURCES): Put $(CORBA_GENERATED) in here. svn path=/trunk/; revision=19462
* Only set view ID if we have an instance.Hans Petter Jansson2003-01-152-1/+4
| | | | | | | | 2003-01-14 Hans Petter Jansson <hpj@ximian.com> * gui/gnome-cal.c (set_view): Only set view ID if we have an instance. svn path=/trunk/; revision=19459
* Cast signal handlers to GtkSignalFunc, avoid warnings.Hans Petter Jansson2003-01-152-12/+17
| | | | | | | | | 2003-01-14 Hans Petter Jansson <hpj@ximian.com> * gui/e-calendar-table.c (tasks_popup_menu): Cast signal handlers to GtkSignalFunc, avoid warnings. svn path=/trunk/; revision=19458
* cal-util-marshal.list.Ettore Perazzoli2003-01-152-0/+5
| | | | | | | | * cal-util/Makefile.am (EXTRA_DIST): cal-util-marshal.list. * Makefile.am: Comment out the CONDUIT_DIR stuff for now. svn path=/trunk/; revision=19452
* Comment out the CONDUIT_DIR stuff for now.Ettore Perazzoli2003-01-152-6/+11
| | | | svn path=/trunk/; revision=19446
* Switch to using GtkPaned instead of EPaned for GTK2Rodney Dawes2003-01-152-10/+12
| | | | svn path=/trunk/; revision=19444
* Work around canvas crashes by ensuring rectangles have an initial width.Hans Petter Jansson2003-01-152-0/+8
| | | | | | | | | 2003-01-14 Hans Petter Jansson <hpj@ximian.com> * gui/e-day-view.c (e_day_view_init): Work around canvas crashes by ensuring rectangles have an initial width. svn path=/trunk/; revision=19441
* Removed. Removed.Ettore Perazzoli2003-01-1426-1583/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/config-control-factory.h: Removed. * gui/config-control-factory.c: Removed. * gui/itip-bonobo-control.c: Renamed from itip-control-factory.c. (itip_bonobo_control_new): New. (itip_control_factory_init): Removed. * gui/itip-bonobo-control.h: Renamed from itip-control-factory.h. * gui/tasks-control-factory.c: Removed. * gui/tasks-control-factory.h: Removed. * gui/control-factory.c (control_factory_init): Removed. * gui/Makefile.am: Updated to build everything as libevolution-calendar.so and install in the COMPONENTDIR. * gui/GNOME_Evolution_Calendar.server.in.in: Updated to build the component as a shared library. * gui/main.c (main): Removed. * gui/calendar-component.c (calendar_component_get_object): New. (owner_set_cb): Do not store the shell pointer in shells. (owner_unset_cb): Do not remove the shell pointer from shells; instead, just set global_shell_client to NULL. * gui/calendar-component.h: Renamed from component-factory.h. * gui/calendar-component.c: Renamed from component-factory.c. svn path=/trunk/; revision=19430
* (connect_to_shell): CORBA_Object_release() the CORBA shell.Ettore Perazzoli2003-01-112-0/+8
| | | | | | | (connect_to_shell): CORBA_Object_release() the CORBA shell. svn path=/trunk/; revision=19416
* Allow recur_id to be NULL to clear the recurrence id. (Based on a story byDan Winship2003-01-104-5/+25
| | | | | | | | | | | | | | | * cal-util/cal-component.c (cal_component_set_recurid): Allow recur_id to be NULL to clear the recurrence id. (Based on a story by JP on evolution-1-2-recurid-branch) * gui/print.c: Remove unused gnome-print-copies.h #include * pcs/query.c (query_new): Use g_object_weak_ref rather than connecting to "destroy" (which doesn't actually exist on a CalBackend) (backend_destroyed_cb): Update prototype. svn path=/trunk/; revision=19365
* Icons are now in $(datadir)/evolution/images instead ofEttore Perazzoli2003-01-094-4/+12
| | | | | | | | | | * gui/alarm-notify/Makefile.am: Icons are now in $(datadir)/evolution/images instead of $(datadir)/images/evolution. * gui/Makefile.am: Likewise. * gui/dialogs/Makefile.am: Likewise. svn path=/trunk/; revision=19296
* remove a dead headerJeffrey Stedfast2003-01-081-1/+0
| | | | svn path=/trunk/; revision=19272
* remove idldir definition. (It's defined in configure.in now)Dan Winship2003-01-062-2/+5
| | | | | | | * Makefile.am: remove idldir definition. (It's defined in configure.in now) svn path=/trunk/; revision=19242
* Replace gtk_signal_disconnect_by_data() withHans Petter Jansson2002-12-1920-412/+265
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-12-19 Hans Petter Jansson <hpj@ximian.com> * gui/calendar-commands.c (calendar_control_deactivate): Replace gtk_signal_disconnect_by_data() with g_signal_handlers_disconnect_matched(). Former takes GtkObject, latter takes GObject. * gui/calendar-model.c (calendar_model_destroy): Ditto. (update_query): Ditto. (calendar_model_set_cal_client): Ditto. * gui/e-day-view.c (e_day_view_destroy): Ditto. (update_query): Ditto. (e_day_view_set_cal_client): Ditto. * gui/e-tasks.c (query_eval_error_cb): Ditto. (query_query_done_cb): Ditto. * gui/e-week-view.c (e_week_view_destroy): Ditto. (update_query): Ditto. (e_week_view_set_cal_client): Ditto. * gui/gnome-cal.c (update_query): Ditto. (gnome_calendar_destroy): Ditto. * gui/tasks-control.c (tasks_control_deactivate): Ditto. * gui/e-comp-editor-registry.c (foreach_close_cb): Replace gtk_signal_handler_(un)block_by_data() with g_signal_handlers_(un)block_matched(). Former takes GtkObject, latter takes GObject. * gui/dialogs/alarm-page.c (alarm_page_get_type): Replace with E_MAKE_TYPE(). (alarm_page_class_init): Use GObject as base class instead of GtkObject, and set up finalization instead of destroy handler. (alarm_page_destroy): Change to alarm_page_finalize() and assume parent is GObject, not GtkObject. (alarm_page_new): Use g_object_new(), not gtk_type_new(). * gui/dialogs/event-page.c: Same general changes as above file. (update_time): Replace gtk_signal_handler_(un)block_by_data() with g_signal_handlers_(un)block_matched(). (clear_widgets): Ditto. (times_updated): Ditto. * gui/dialogs/recurrence-page.c: Same general changes as above file. (clear_widgets): Replace gtk_signal_handler_(un)block_by_data() with g_signal_handlers_(un)block_matched(). (append_exception): Ditto. (fill_ending_date): Ditto. (recurrence_page_fill_widgets): Ditto. * gui/dialogs/comp-editor.c: Same general changes as above file. (comp_editor_finalize): Replace gtk_signal_disconnect_by_data() with g_signal_handlers_disconnect_matched(). (comp_editor_remove_page): Ditto. * gui/dialogs/event-editor.c: Same general changes as above file. * gui/dialogs/meeting-page.c: Same general changes as above file. * gui/dialogs/schedule-page.c: Same general changes as above file. * gui/dialogs/task-details-page.c: Same general changes. * gui/dialogs/task-editor.c: Same general changes as above file. * gui/dialogs/task-page.c: Same general changes as above file. * gui/dialogs/e-delegate-dialog.c: Same general changes. svn path=/trunk/; revision=19167
* Use camel_text_to_html() instead.Jeffrey Stedfast2002-12-172-4/+9
| | | | | | | | | 2002-12-16 Jeffrey Stedfast <fejj@ximian.com> * gui/e-itip-control.c (write_html): Use camel_text_to_html() instead. svn path=/trunk/; revision=19129
* Correctly convert text.value into HTML here (ie, don't pass "<i>None</i>"Jeffrey Stedfast2002-12-162-15/+21
| | | | | | | | | | 2002-12-16 Jeffrey Stedfast <fejj@ximian.com> * gui/e-itip-control.c (write_html): Correctly convert text.value into HTML here (ie, don't pass "<i>None</i>" into e_text_to_html() if text.value is NULL). svn path=/trunk/; revision=19123
* Fixes #35003Rodrigo Moya2002-12-105-13/+90
| | | | | | | | | | | | | | | | | | | | | | 2002-12-06 Rodrigo Moya <rodrigo@ximian.com> Fixes #35003 * gui/misc.[ch] (get_uri_without_password): new function for removing the password from the CalClient's uris. * gui/gnome-cal.c (client_cal_opened_cb): use the URI returned by get_uri_without_password for messages. (backend_error_cb): likewise. (backend_died_cb): likewise. (gnome_calendar_open): likewise. (open_error, method_error, permission_error): likewise. * gui/e-tasks.c (e_tasks_open): hide the password from the URI being displayed in messages. (backend_error_cb): likewise. svn path=/trunk/; revision=19070
* Implement GType for this enumeration. (cal_query_class_init): Use theHans Petter Jansson2002-12-073-1/+33
| | | | | | | | | | | | | 2002-12-06 Hans Petter Jansson <hpj@ximian.com> * cal-client/cal-query.c (cal_query_done_status_enum_get_type): Implement GType for this enumeration. (cal_query_class_init): Use the enumeration instead of the abstract one. * cal-client/cal-query.h: Add type macro and proto for enum. svn path=/trunk/; revision=19050
* Fix changelog entry.Hans Petter2002-12-071-1/+1
| | | | svn path=/trunk/; revision=19049
* Pass the env argument to bonobo_control_set_property ().Hans Petter Jansson2002-12-074-10/+21
| | | | | | | | | | | | | | 2002-12-06 Hans Petter Jansson <hpj@ximian.com> * gui/component-factory.c (): Pass the env argument to bonobo_control_set_property (). * gui/e-meeting-model.c (class_init): We're no longer derived from GtkObject, so use GObject class methods instead. destroy->finalize. (destroy): Zapped. (finalize): Implement based on old destroy (). svn path=/trunk/; revision=19048
* Create a non-abstract enumeration type derived from GEnum.Hans Petter Jansson2002-12-0727-612/+269
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-12-06 Hans Petter Jansson <hpj@ximian.com> * cal-client/cal-client.c (cal_client_open_status_enum_get_type): Create a non-abstract enumeration type derived from GEnum. (cal_client_set_mode_status_enum_get_type): Ditto. (cal_mode_enum_get_type): Ditto. (cal_client_class_init): Use our enumerations and not the abstract one. (cal_client_finalize): Don't destroy factories, since the CalClient doesn't own them anymore. They're shared between CalClients now. (get_factories): Implement. Move the factory setup code here from cal_client_construct (), and cache the factories. This is hopefully temporary, until wombat goes away or is fixed. (cal_client_construct): Most of the code moved to get_factories (). * cal-client/cal-client.h: Add enumeration type macros and protos. * gui/cal-search-bar.c (cal_search_bar_get_type): Removed in favour of E_MAKE_TYPE, which uses GObject calls. (cal_search_bar_class_init): Use g_type_class_peek_parent (). * gui/calendar-model.c (calendar_model_get_type): (calendar_model_class_init): Ditto, like above file. * gui/calendar-view.c (calendar_view_get_type): (calendar_view_class_init): Ditto. * gui/e-calendar-table.c (e_calendar_table_get_type): (e_calendar_table_class_init): Ditto. * gui/e-comp-editor-registry.c (e_comp_editor_registry_get_type): (class_init): Ditto. * gui/e-day-view-main-item.c (e_day_view_main_item_get_type): (e_day_view_main_item_class_init): Ditto. * gui/e-day-view-time-item.c (e_day_view_time_item_get_type): (e_day_view_time_item_class_init): Ditto. * gui/e-day-view-top-item.c (e_day_view_top_item_get_type): (e_day_view_top_item_class_init): Ditto. * gui/e-day-view.c (e_day_view_get_type): (e_day_view_class_init): Ditto. * gui/e-itip-control.c (e_itip_control_get_type): (class_init): Ditto. * gui/e-meeting-attendee.c (e_meeting_attendee_get_type): (class_init): Ditto. * gui/e-meeting-model.c (e_meeting_model_get_type): (class_init): Ditto. * gui/e-meeting-time-sel-item.c (e_meeting_time_selector_item_get_type): (e_meeting_time_selector_item_class_init): Ditto. * gui/e-meeting-time-sel.c (e_meeting_time_selector_get_type): (e_meeting_time_selector_class_init): Ditto. * gui/e-timezone-entry.c (e_timezone_entry_get_type): (e_timezone_entry_class_init): Ditto. * gui/e-week-view-event-item.c (e_week_view_event_item_get_type): (e_week_view_event_item_class_init): Ditto. * gui/e-week-view-main-item.c (e_week_view_main_item_get_type): (e_week_view_main_item_class_init): Ditto. * gui/e-week-view-titles-item.c (e_week_view_titles_item_get_type): (e_week_view_titles_item_class_init): Ditto. * gui/gnome-cal.c (gnome_calendar_get_type): (gnome_calendar_class_init): Ditto. * gui/weekday-picker.c (weekday_picker_get_type): (weekday_picker_class_init): Ditto. * gui/e-week-view.c (e_week_view_get_type): (e_week_view_class_init): Ditto, but parent_class init was moved from get_type() to class_init(). * gui/calendar-view-factory.c (calendar_view_factory_get_type): (calendar_view_factory_class_init): Ditto, and set up finalize callback instead of destroy. (calendar_view_factory_finalize): It's a GObject, so implement this. (celendar_view_factory_destroy): Move code to _finalize() and remove. * gui/main.c (init_bonobo): Remove extraneous bonobo_activation_init(). svn path=/trunk/; revision=19043
* run fix.sh over this.Not Zed2002-12-0229-337/+343
| | | | | | | | | | | | | | | | | | | | 2002-11-27 Not Zed <NotZed@Ximian.com> * gui/itip-utils.[ch]: run fix.sh over this. * gui/dialogs/*.[ch]: run fix.sh over all of this. 2002-11-26 Richard Li <Richard.Li@Sun.COM> * cal-client/cal-client.c (cal_client_construct): removed extra call to CORBA_exception_init. 2002-11-22 Not Zed <NotZed@Ximian.com> * gui/dialogs/delete-comp.c (delete_component_dialog): Changed e_messagebox -> gtk_messagedialog. svn path=/trunk/; revision=18972
* removed extra call to CORBA_exception_init.Richard Li2002-11-262-1/+5
| | | | | | | | | 2002-11-26 Richard Li <Richard.Li@Sun.COM> * cal-client/cal-client.c (cal_client_construct): removed extra call to CORBA_exception_init. svn path=/trunk/; revision=18920
* Changed e_messagebox -> gtk_messagedialog.Not Zed2002-11-252-11/+11
| | | | | | | | | 2002-11-22 Not Zed <NotZed@Ximian.com> * gui/dialogs/delete-comp.c (delete_component_dialog): Changed e_messagebox -> gtk_messagedialog. svn path=/trunk/; revision=18903
* ignore .server.inChris Toshok2002-11-211-0/+1
| | | | svn path=/trunk/; revision=18876
* pass type to bonobo_control_set_property.Not Zed2002-11-213-4/+9
| | | | | | | | | 2002-11-21 Not Zed <NotZed@Ximian.com> * gui/component-factory.c (create_view): pass type to bonobo_control_set_property. svn path=/trunk/; revision=18872
* fix typo, servers_in_files -> server_in_files.Not Zed2002-11-202-1/+6
| | | | | | | | | 2002-11-20 Not Zed <NotZed@Ximian.com> * gui/Makefile.am (EXTRA_DIST): fix typo, servers_in_files -> server_in_files. svn path=/trunk/; revision=18853
* Added rule to generate GNOME_Evolution_Calendar.server.in fromEttore Perazzoli2002-11-203-11/+24
| | | | | | | | | | | | | | * Makefile.am: Added rule to generate GNOME_Evolution_Calendar.server.in from GNOME_Evolution_Calendar.server.in.in, substituting @LIBEXECDIR@. Also, install evolution-calendar in $libexecdir instead of $bindir. * gui/GNOME_Evolution_Calendar.server.in.in: Renamed from GNOME_Evolution_Calendar.server.in. Prepended the executable name with @LIBEXECDIR@. svn path=/trunk/; revision=18847
* pass type to bonobo_widget::set_property. (select_names_ok_cb): ", forNot Zed2002-11-194-7/+25
| | | | | | | | | | | | | | | | | | | 2002-11-19 Not Zed <NotZed@Ximian.com> * gui/e-meeting-model.c (get_select_name_dialog): pass type to bonobo_widget::set_property. (select_names_ok_cb): ", for get_property. * gui/dialogs/e-delegate-dialog.c (e_delegate_dialog_construct): pass type to bonobo_widget::set_property & plug small leak. (e_delegate_dialog_get_delegate): ", for get_property. (e_delegate_dialog_get_delegate_name): " * gui/dialogs/comp-editor-util.c (comp_editor_contacts_to_widget): pass type to bonobo_widget::set_property. (comp_editor_contacts_to_component): ", for get_property svn path=/trunk/; revision=18835
* use new e_table_header_compute_height signature.Chris Toshok2002-11-172-1/+6
| | | | | | | | | 2002-11-16 Chris Toshok <toshok@ximian.com> * gui/e-meeting-time-sel.c (e_meeting_time_selector_style_set): use new e_table_header_compute_height signature. svn path=/trunk/; revision=18802
* Use bonobo_main_quit instead of gtkRodney Dawes2002-11-163-2/+6
| | | | | | * gui/component-factory.c: Use bonobo_main_quit instead of gtk svn path=/trunk/; revision=18787
* #include <string.h> (obj_removed_cb): Fixed prototype.Federico Mena Quintero2002-11-144-8/+20
| | | | | | | | | | | | | | 2002-11-13 Federico Mena Quintero <federico@ximian.com> * cal-client/cal-query.c: #include <string.h> (obj_removed_cb): Fixed prototype. * cal-client/cal-client.c (get_objects_atomically): Fix use of g_signal_handler_disconnect(). * cal-client/client-test.c (create_client): Add G_CALLBACK casts. svn path=/trunk/; revision=18744
* #include <string.h>Federico Mena Quintero2002-11-139-178/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-12 Federico Mena Quintero <federico@ximian.com> * pcs/cal-backend-util.c: #include <string.h> * pcs/cal.c: Fixed prototypes of the CORBA method implementations. * pcs/cal-backend-file.c (cal_backend_file_dispose): Added a dispose method. (cal_backend_file_get_free_busy): Converted to use EConfigListener rather than BonoboConfigDatabase. * gui/alarm-notify/alarm-notify.c: #include <string.h>, fix use of g_hash_table_lookup_extended(). * gui/alarm-notify/alarm-notify-dialog.c: Substitute deprecated GTK+ functions for new ones. * gui/alarm-notify/alarm-queue.c: Likewise. * gui/alarm-notify/notify-main.c: #include <string.h>, <gtk/gtkmain.h>. * gui/alarm-notify/save.c: #include <string.h>. svn path=/trunk/; revision=18726
* Commit missing files.Ettore Perazzoli2002-11-092-5/+4
| | | | svn path=/trunk/; revision=18675
* Use g_object_set_data(..., NULL) instead of gtk_object_remove_data().Ettore Perazzoli2002-11-099-126/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/calendar-commands.c (calendar_control_deactivate): Use g_object_set_data(..., NULL) instead of gtk_object_remove_data(). * gui/calendar-commands.c: Use g_object_{set,get}_* functions instead of gtk_object_{set,get}_*. * gui/calendar-commands.c: Likewise. * gui/calendar-config.c: Likewise. * gui/control-factory.c: Likewise. * gui/e-calendar-table.c: Likewise. * gui/e-comp-editor-registry.c: Likewise. * gui/e-day-view-main-item.c: Likewise. * gui/e-day-view-time-item.c: Likewise. * gui/e-day-view-top-item.c: Likewise. * gui/e-day-view.c: Likewise. * gui/e-meeting-attendee.c: Likewise. * gui/e-meeting-model.c: Likewise. * gui/e-meeting-time-sel-item.c: Likewise. * gui/e-meeting-time-sel.c: Likewise. * gui/e-week-view-event-item.c: Likewise. * gui/e-week-view-layout.c: Likewise. * gui/e-week-view-main-item.c: Likewise. * gui/e-week-view-titles-item.c: Likewise. * gui/e-week-view.c: Likewise. * gui/gnome-cal.c: Likewise. * gui/print.c: Likewise. svn path=/trunk/; revision=18674
* Use g_object_ref()/g_object_unref() instead ofEttore Perazzoli2002-11-0929-194/+246
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * calendar-commands.c: Use g_object_ref()/g_object_unref() instead of gtk_object_ref/gtk_object_unref(). * calendar-config.c: Likewise. * calendar-model.c: Likewise. * comp-editor-factory.c: Likewise. * comp-util.c: Likewise. * e-calendar-table.c: Likewise. * e-day-view.c: Likewise. * e-itip-control.c: Likewise. * e-meeting-model.c: Likewise. * e-meeting-time-sel.c: Likewise. * e-tasks.c: Likewise. * e-timezone-entry.c: Likewise. * e-week-view.c: Likewise. * gnome-cal.c: Likewise. * goto.c: Likewise. * itip-utils.c: Likewise. * print.c: Likewise. * tasks-control.c: Likewise. * tasks-migrate.c: Likewise. * gui/cal-search-bar.c: Use g_object_new() instead of gtk_type_new(). * gui/calendar-model.c: Likewise. * gui/calendar-view-factory.c: Likewise. * gui/calendar-view.c: Likewise. * gui/calendar-view.c: Likewise. * gui/comp-editor-factory.c: Likewise. * gui/e-calendar-table.c: Likewise. * gui/e-cell-date-edit-text.c: Likewise. * gui/e-comp-editor-registry.c: Likewise. * gui/e-day-view.c: Likewise. * gui/e-itip-control.c: Likewise. * gui/e-meeting-attendee.c: Likewise. * gui/e-meeting-attendee.c: Likewise. * gui/e-meeting-model.c: Likewise. * gui/e-meeting-time-sel.c: Likewise. * gui/e-tasks.c: Likewise. * gui/e-timezone-entry.c: Likewise. * gui/e-week-view.c: Likewise. * gui/gnome-cal.c: Likewise. * gui/weekday-picker.c: Likewise. * gui/e-itip-control.c (get_servers): g_object_unref the shell_client instead of using bonobo_object_unref(). * gui/component-factory.c (owner_set_cb): Use evolution_shell_client_corba_objref() instead of bonobo_object_corba_objref(). svn path=/trunk/; revision=18673
* Use g_signal_connect() instead of gtk_signal_connect(). Likewise.Ettore Perazzoli2002-11-0923-484/+389
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/calendar-commands.c: Use g_signal_connect() instead of gtk_signal_connect(). * calendar-commands.c: Likewise. * calendar-config.c: Likewise. * calendar-model.c: Likewise. * comp-editor-factory.c: Likewise. * component-factory.c: Likewise. * control-factory.c: Likewise. * e-calendar-table.c: Likewise. * e-comp-editor-registry.c: Likewise. * e-day-view-time-item.c: Likewise. * e-day-view.c: Likewise. * e-itip-control.c: Likewise. * e-meeting-model.c: Likewise. * e-meeting-time-sel.c: Likewise. * e-tasks.c: Likewise. * e-timezone-entry.c: Likewise. * e-week-view.c: Likewise. * gnome-cal.c: Likewise. * goto.c: Likewise. * tasks-control.c: Likewise. * tasks-migrate.c: Likewise. * weekday-picker.c: Likewise. svn path=/trunk/; revision=18672
* (calendar_offline_handler_class_init): GObjectified.Ettore Perazzoli2002-11-093-16/+39
| | | | | | | | | | | | | | (impl_finalize): Finalize impl. (impl_dispose): Dispose impl. (calendar_offline_handler_new): Use g_object_new(). (backend_cal_opened): use g_signal_connect() instead of gtk_signal_connect(). (backend_go_offline): Likewise. (backend_cal_opened): g_object_unref() instead of gtk_object_unref(). (backend_go_offline): Likewise. svn path=/trunk/; revision=18671
* use GLib macros.Rodrigo Moya2002-11-083-9/+15
| | | | | | | | | | | | 2002-11-08 Rodrigo Moya <rodrigo@ximian.com> * importers/evolution-calendar-importer.h: use GLib macros. * importers/main.c (init_importer): use bonobo_generic_factory_new, not bonobo_generic_factory_new_multi. (main): don't use libgnome functions. svn path=/trunk/; revision=18666
* don't use GTK, we don't need it.Rodrigo Moya2002-11-082-19/+20
| | | | | | | | 2002-11-07 Rodrigo Moya <rodrigo@ximian.com> * cal-client/client-test.c: don't use GTK, we don't need it. svn path=/trunk/; revision=18653
* *** empty log message ***Rodrigo Moya2002-11-081-0/+2
| | | | svn path=/trunk/; revision=18650
* Initial port of gui/ subdir to GNOME 2JP Rosevear2002-11-0857-446/+398
| | | | | | | | 2002-11-07 JP Rosevear <jpr@ximian.com> * Initial port of gui/ subdir to GNOME 2 svn path=/trunk/; revision=18648
* removed non-existant headers.Rodrigo Moya2002-11-086-9/+16
| | | | | | | | | | | | | 2002-11-07 Rodrigo Moya <rodrigo@ximian.com> * importers/icalendar-importer.c: removed non-existant headers. * importers/Makefile.am: changes for BonoboActivation. * gui/GNOME_Evolution_Calendar.server.in: install to $libdir, not $datadir. svn path=/trunk/; revision=18640
* converted to BonoboObject.Rodrigo Moya2002-11-087-36/+46
| | | | | | | | | | | | | | | | | 2002-11-07 Rodrigo Moya <rodrigo@ximian.com> * cal-client/query-listener.[ch]: converted to BonoboObject. * gui/dialogs/comp-editor-util.c (parse_contact_string): use glib's g_utf8_strchr. * gui/dialogs/delete-comp.c: removed non-existant headers. Use GtkStock instead of GnomeStock. * gui/dialogs/e-delegate-dialog.c: converted to BonoboActivation. (e_delegate_dialog_construct): adapted to changes in glade_xml_new. svn path=/trunk/; revision=18632
* converted to BonoboObject. (impl_Cal_get_query): bonobo_object_unref theRodrigo Moya2002-11-081-4/+7
| | | | | | | | | | | | | | | | | 2002-11-07 Rodrigo Moya <rodrigo@ximian.com> * pcs/cal.[ch]: converted to BonoboObject. (impl_Cal_get_query): bonobo_object_unref the query returned by cal_backend_get_query if we can't duplicate it. * pcs/query.[ch]: * pcs/cal-factory.[ch]: converted to BonoboObject. * pcs/query-backend.[ch]: * pcs/cal-backend-file.[ch]: * pcs/cal-backend.[ch]: GObjectify. svn path=/trunk/; revision=18631
* converted to BonoboObject. (impl_Cal_get_query): bonobo_object_unref theRodrigo Moya2002-11-079-168/+172
| | | | | | | | | | | | | | | | | 2002-11-07 Rodrigo Moya <rodrigo@ximian.com> * pcs/cal.[ch]: converted to BonoboObject. (impl_Cal_get_query): bonobo_object_unref the query returned by cal_backend_get_query if we can't duplicate it. * pcs/query.[ch]: * pcs/cal-factory.[ch]: converted to BonoboObject. * pcs/query-backend.[ch]: * pcs/cal-backend-file.[ch]: * pcs/cal-backend.[ch]: GObjectify. svn path=/trunk/; revision=18630
* GObjectify.Rodrigo Moya2002-11-076-114/+122
| | | | | | | | | 2002-11-07 Rodrigo Moya <rodrigo@ximian.com> * pcs/cal-backend-file.[ch]: * pcs/cal-backend.[ch]: GObjectify. svn path=/trunk/; revision=18629
* #include gtkoptionmenu.h. (cal_prefs_dialog_new): adapted to changes inRodrigo Moya2002-11-0717-75/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-06 Rodrigo Moya <rodrigo@ximian.com> * gui/cal-prefs-dialog.c: #include gtkoptionmenu.h. (cal_prefs_dialog_new): adapted to changes in glade_xml_new. * gui/dialogs/event-page.h: * gui/dialogs/meeting-page.h: * gui/dialogs/recurrence-page.h: * gui/dialogs/schedule-page.h: * gui/dialogs/task-details-page.h: * gui/dialogs/task-page.h: * gui/cal-prefs-dialog.h: use correctly the macros. * gui/dialogs/cancel-comp.c: * gui/dialogs/changed-comp.c: * gui/dialogs/comp-editor-page.c: * gui/gnome-cal.h: removed non-existent headers. * gui/dialogs/comp-editor.c: remove non-existent headers. (close_dialog): gtk_widget_destroy the widget. (setup_widgets, comp_editor_merge_ui): use BonoboWindow correctly. (comp_editor_set_cal_client, comp_editor_send_comp, comp_editor_edit_comp): use G_OBJECT_GET_CLASS for getting the class of an object. * gui/dialogs/comp-editor-page.c (comp_editor_page_class_init): use g_signal_* functions. * gui/dialogs/comp-editor-util.c: converted to BonoboActivation. * gui/dialogs/comp-editor.h: #include bonobo-window.h, not bonobo-win.h. svn path=/trunk/; revision=18622
* *** empty log message ***Rodrigo Moya2002-11-072-4/+2
| | | | svn path=/trunk/; revision=18620
* renmaed .oaf.in files.Rodrigo Moya2002-11-075-13/+21
| | | | | | | | | | | | 2002-11-06 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/GNOME_Evolution_Calendar_AlarmNotify.server.in: * gui/GNOME_Evolution_Calendar.server.in: renmaed .oaf.in files. * gui/alarm-notify/Makefile.am: * gui/Makefile.am: fixed rules for .server files. svn path=/trunk/; revision=18619
* don't return a Bonobo_EventSource_ListenerId, since it does not existRodrigo Moya2002-11-0717-5021/+5442
| | | | | | | | | | | | | | | | | 2002-11-06 Rodrigo Moya <rodrigo@ximian.com> * gui/dialogs/comp-editor-util.[ch] (comp_editor_connect_contacts_changed): don't return a Bonobo_EventSource_ListenerId, since it does not exist anymore, and was not even being used. * gui/e-timezone-entry.h: use GLib macros. * gui/dialogs/*.glade: * gui/alarm-notify/*.glade: * gui/*.glade: converted to Glade2 format. svn path=/trunk/; revision=18616
* adapted to to new glade_xml_new signature.Rodrigo Moya2002-11-077-11/+20
| | | | | | | | | | | | | | | 2002-11-05 Rodrigo Moya <rodrigo@ximian.com> * gui/dialogs/alarm-options.c (alarm_options_dialog_run): adapted to to new glade_xml_new signature. * gui/calendar-model.h: * gui/dialogs/comp-editor-page.h: * gui/dialogs/alarm-page.[ch]: removed non-existant header files. * gui/dialogs/comp-editor-util.h: added missing headers. svn path=/trunk/; revision=18615
* 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