aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-model.c
Commit message (Collapse)AuthorAgeFilesLines
* 2007-09-27 mcrha Fix for bug #346686Milan Crha2007-09-271-0/+38
| | | | svn path=/trunk/; revision=34315
* ** Fix for bug #471791 (Move away from asserts to g_ret*)Srinivasa Ragavan2007-09-031-10/+15
| | | | svn path=/trunk/; revision=34156
* Update FSF address in header comments (#469886). Patch from TobiasMatthew Barnes2007-09-021-1/+1
| | | | | | | | | | 2007-09-02 Matthew Barnes <mbarnes@redhat.com> * Update FSF address in header comments (#469886). Patch from Tobias Mueller. svn path=/trunk/; revision=34151
* Added advanced search options.Chenthill Palanisamy2007-06-041-0/+31
| | | | svn path=/trunk/; revision=33648
* ** Fixes bug #373116Matthew Barnes2007-04-021-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-04-01 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #373116 * calendar/gui/calendar-component.c (ensure_sources): * calendar/gui/e-cal-model.c (ecm_get_color_for_component): * calendar/gui/memos-component.c (ensure_sources): * calendar/gui/migration.c (create_calendar_contact_source), (create_calendar_sources), (create_task_sources), (create_memo_sources), (add_gw_esource): * calendar/gui/tasks-component.c (ensure_sources): * plugins/groupwise-account-setup/camel-gw-listener.c (add_esource): Use the new ESource color API. * calendar/gui/dialogs/cal-prefs-dialog.c: * calendar/gui/dialogs/cal-prefs-dialog.glade: * calendar/gui/dialogs/calendar-setup.c: * calendar/gui/dialogs/calendar-setup.glade: * filter-colour.c (get_widget): * mail/em-composer-prefs.c: * mail/em-composer-prefs.h: * mail/em-mailer-prefs.c: * mail/em-mailer-prefs.h: * mail/mail-config.glade: Migrate from GnomeColorPicker to GtkColorButton. * filter/filter-colour.h: Store color as a GdkColor instead of separate RGBA components. * filter/filter-colour.c (color_eq): Use gdk_color_equal() to compare colors. * filter/filter-colour.c (xml_encode): Encode color as a single property ("spec"). * filter/filter-colour.c (xml_decode): Read the color from a single property ("spec"). Provide a migration path for old XML files. * calendar/gui/calendar-component.c (calendar_config_get_tasks_due_today_color), (calendar_config_get_tasks_overdue_color): Return a GdkColor instead of an X color specification. * calendar/gui/calendar-component.c (calendar_config_set_tasks_due_today_color), (calendar_config_set_tasks_overdue_color): Accept a GdkColor instead of an X color specification. * calenar/gui/e-cal-model-tasks.c (ecmt_get_color_for_component): Adapt to modified color API in calendar-component.c by converting the GdkColor to an X color specification. This is an ugly hack to be fixed later. svn path=/trunk/; revision=33349
* ** Fixes bug #419524Matthew Barnes2007-03-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 2007-03-20 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #419524 * Include <glib/gi18n.h> instead of <libgnome/gnome-i18n.h>. * e-util/e-xml-utils.c (e_xml_get_child_by_name_by_lang_list): * mail/em-migrate.c (emm_setup_initial): * shell/e-component-registry.c (query_components): * shell/e-shell-settings-dialog.c (load_pages): * shell/e-shell-window-commands.c (command_quick_reference): * tools/killev.c (main): Use g_get_language_names() instead of gnome_i18n_get_language_list(). * e-util/e-util.c: Remove e_gettext(). * e-util/Makefile.am: Remove e-i18n.h. svn path=/trunk/; revision=33319
* Fixes #389961 Check if the item is a event before processing the end time.Wang Xin2007-01-081-16/+20
| | | | | | | | | | | | 2007-01-08 Wang Xin <jedy.wang@sun.com> Fixes #389961 * gui/e-cal-model.c:(e_cal_model_set_instance_times): Check if the item is a event before processing the end time. svn path=/trunk/; revision=33115
* Fixes #367183.Chenthill Palanisamy2006-11-201-1/+10
| | | | svn path=/trunk/; revision=33003
* Fixes #332101Chenthill Palanisamy2006-10-171-2/+2
| | | | svn path=/trunk/; revision=32902
* Added support Gw notes.Chenthill Palanisamy2006-07-221-0/+5
| | | | svn path=/trunk/; revision=32378
* Handle the start_time_zone != end_time_zone scenario. FixesHarish Krishnaswamy2006-07-071-0/+22
| | | | | | | | | | 2006-07-07 Harish Krishnaswamy <kharish@novell.com> * gui/e-cal-model.c: (e_cal_model_set_instance_times): Handle the start_time_zone != end_time_zone scenario. Fixes bugzilla.novell.com #190421. svn path=/trunk/; revision=32251
* partially fixes #332911Chenthill Palanisamy2006-05-111-0/+19
| | | | svn path=/trunk/; revision=31971
* Commiting Johnny's patch for adding ' Click to add' feature in Memo.Srinivasa Ragavan2006-04-221-0/+4
| | | | svn path=/trunk/; revision=31857
* Fixes bug 335214Irene Huang2006-04-041-0/+1
| | | | | | | | | | | | 2006-04-04 Irene Huang <Irene.Huang@sun.com> Fixes bug 335214 * gui/e-cal-model.c: (e_cal_view_objects_added_cb): Call e_table_model_pre_change (E_TABLE_MODEL (model)); before deleting row. svn path=/trunk/; revision=31760
* Fixes #330842Chenthill Palanisamy2006-03-221-1/+6
| | | | svn path=/trunk/; revision=31739
* Fixes #334003Chenthill Palanisamy2006-03-131-2/+4
| | | | svn path=/trunk/; revision=31704
* Pass the client along with the id for search to handle cases where theHarish Krishnaswamy2006-02-091-2/+2
| | | | | | | | | | | 2006-02-09 Harish Krishnaswamy <kharish@novell.com> * gui/e-cal-model.c: (e_cal_view_objects_added_cb): Pass the client along with the id for search to handle cases where the same backend source has multiple clients in the view. Remove the FIXME. svn path=/trunk/; revision=31462
* Cleanups: - remove unused vars - remove extraneous semi-colons - add someKjartan Maraas2006-02-081-22/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-09 Kjartan Maraas <kmaraas@gnome.org> * gui/alarm-notify/alarm-notify-dialog.c: (add_alarm_to_notified_alarms_dialog): * gui/alarm-notify/alarm-queue.c: (remove_queued_alarm), (open_alarm_dialog), (menu_item_toggle_callback), (populate): * gui/alarm-notify/alarm.c: (pop_alarm), (alarm_remove): * gui/alarm-notify/config-data.c: (config_data_replace_string_list): * gui/cal-search-bar.c: (regen_query): * gui/calendar-view-factory.c: * gui/calendar-view.c: * gui/comp-editor-factory.c: (edit_existing), (resolve_pending_requests), (impl_editExisting), (impl_editNew): * gui/control-factory.c: * gui/dialogs/cal-attachment-select-file.c: (comp_editor_select_file_attachments): * gui/dialogs/calendar-setup.c: (eccp_get_source_type): * gui/dialogs/comp-editor.c: (comp_editor_class_init), (commit_all_fields), (delete_event_cb), (editor_key_press_event), (menu_file_save_cb), (menu_file_close_cb), (make_icon_from_comp), (comp_editor_focus), (needs_send_cb): * gui/dialogs/delete-comp.c: (delete_component_dialog): * gui/dialogs/e-delegate-dialog.c: * gui/dialogs/event-editor.c: * gui/dialogs/event-page.c: (event_page_fill_widgets), (popup_delete_cb), (list_key_press): * gui/dialogs/meeting-page.c: (remove_clicked_cb), (popup_delete_cb), (button_press_event), (list_key_press), (meeting_page_construct): * gui/dialogs/memo-editor.c: (init_widgets), (memo_editor_set_e_cal), (memo_editor_edit_comp), (memo_editor_send_comp): * gui/dialogs/memo-page.c: * gui/dialogs/recurrence-page.c: (fill_exception_widgets), (exception_add_cb): * gui/dialogs/schedule-page.c: (clear_widgets), (schedule_page_fill_component): * gui/dialogs/task-details-page.c: (task_details_page_fill_timezones), (complete_date_changed): * gui/dialogs/task-editor.c: * gui/dialogs/task-page.c: (task_page_fill_widgets), (popup_delete_cb), (list_key_press): * gui/e-alarm-list.c: (get_alarm_string): * gui/e-cal-component-memo-preview.c: (write_html): * gui/e-cal-component-preview.c: (write_html): * gui/e-cal-list-view-config.c: (e_cal_list_view_config_set_property), (e_cal_list_view_config_get_property), (e_cal_list_view_config_dispose): * gui/e-cal-list-view.c: * gui/e-cal-model-calendar.c: (ecmc_value_at): * gui/e-cal-model-memos.c: (ecmm_value_at): * gui/e-cal-model-tasks.c: (get_due_status), (ecmt_value_at), (ecmt_set_value_at), (ecmt_is_cell_editable), (ecmt_value_is_empty), (e_cal_model_tasks_mark_task_complete), (e_cal_model_tasks_update_due_tasks): * gui/e-cal-model.c: (get_classification), (ecm_get_color_for_component), (e_cal_model_set_default_client), (e_cal_view_objects_modified_cb), (e_cal_model_add_client), (e_cal_model_remove_client), (e_cal_model_set_instance_times): * gui/e-cal-popup.c: (ecalp_part_popup_saveas): * gui/e-calendar-table-config.c: (e_calendar_table_config_set_property), (e_calendar_table_config_get_property), (e_calendar_table_config_dispose): * gui/e-calendar-table.c: (e_calendar_table_class_init): * gui/e-calendar-table.h: * gui/e-calendar-view.c: (e_calendar_view_set_property), (e_calendar_view_get_property), (open_event_with_flags), (e_calendar_view_get_tooltips): * gui/e-cell-date-edit-config.c: (e_cell_date_edit_config_set_property), (e_cell_date_edit_config_get_property), (e_cell_date_edit_config_dispose): * gui/e-cell-date-edit-text.c: * gui/e-comp-editor-registry.c: * gui/e-date-edit-config.c: (e_date_edit_config_set_property), (e_date_edit_config_get_property), (e_date_edit_config_dispose): * gui/e-day-view-config.c: (e_day_view_config_set_property), (e_day_view_config_get_property), (e_day_view_config_dispose): * gui/e-day-view-main-item.c: (e_day_view_main_item_set_arg), (e_day_view_main_item_draw_day_event), (e_day_view_main_item_event): * gui/e-day-view-time-item.c: (e_day_view_time_item_set_arg), (e_day_view_time_item_get_column_width): * gui/e-day-view-top-item.c: (e_day_view_top_item_set_arg), (e_day_view_top_item_draw_long_event), (e_day_view_top_item_draw_triangle), (e_day_view_top_item_event): * gui/e-day-view.c: (process_component), (e_day_view_style_set), (e_day_view_recalc_cell_sizes), (e_day_view_foreach_event), (e_day_view_reshape_resize_long_event_rect_item), (e_day_view_update_long_event_resize), (e_day_view_update_resize), (e_day_view_reshape_long_event), (e_day_view_reshape_day_event), (e_day_view_change_duration_to_start_of_work_day), (tooltip_destroy), (e_day_view_on_text_item_event), (e_day_view_on_editing_stopped): * gui/e-itip-control.c: (e_itip_control_class_init), (find_cal_opened_cb), (find_server), (set_date_label), (ok_clicked_cb): * gui/e-meeting-attendee.c: * gui/e-meeting-list-view.c: (e_meeting_list_view_remove_attendee_from_name_selector): * gui/e-meeting-store.c: (role_to_text), (partstat_to_text), (e_meeting_store_set_value): * gui/e-meeting-time-sel-item.c: (e_meeting_time_selector_item_set_arg), (e_meeting_time_selector_item_paint_all_attendees_busy_periods): * gui/e-meeting-time-sel.c: (e_meeting_time_selector_construct), (e_meeting_time_selector_recalc_date_format): * gui/e-memo-table-config.c: (e_memo_table_config_set_property), (e_memo_table_config_get_property), (e_memo_table_config_dispose): * gui/e-memo-table.c: (e_memo_table_class_init), (task_compare_cb): * gui/e-memos.c: (update_view), (backend_error_cb), (open_ecal): * gui/e-mini-calendar-config.c: (e_mini_calendar_config_set_property), (e_mini_calendar_config_get_property), (e_mini_calendar_config_dispose): * gui/e-pub-utils.c: (is_publish_time), (e_pub_publish): * gui/e-tasks.c: (process_completed_tasks), (backend_error_cb): * gui/e-timezone-entry.c: (e_timezone_entry_destroy): * gui/e-week-view-config.c: (e_week_view_config_set_property), (e_week_view_config_get_property), (e_week_view_config_dispose): * gui/e-week-view-event-item.c: (e_week_view_event_item_draw), (e_week_view_event_item_draw_icons): * gui/e-week-view-main-item.c: (e_week_view_main_item_set_arg): * gui/e-week-view-titles-item.c: (e_week_view_titles_item_set_arg), (e_week_view_titles_item_draw): * gui/e-week-view.c: (process_component), (tooltip_destroy), (tooltip_event_cb), (e_week_view_reshape_event_span), (e_week_view_on_text_item_event), (e_week_view_event_move), (e_week_view_on_editing_stopped), (e_week_view_do_key_press): * gui/gnome-cal.c: (dn_e_cal_view_objects_modified_cb), (dn_e_cal_view_done_cb), (table_selection_change_cb), (gnome_calendar_goto), (focus_current_view), (backend_error_cb), (gnome_calendar_set_selected_time_range), (gnome_calendar_get_current_time_range), (gnome_calendar_get_visible_time_range), (gnome_calendar_delete_selected_occurrence): * gui/goto.c: (goto_dialog): * gui/itip-utils.c: (comp_fb_normalize): * gui/memos-component.c: (create_new_memo), (impl_requestCreateItem): * gui/migration.c: (migrate_memos): * gui/print.c: (print_month_small), (print_day_details), (print_todo_details), (print_comp_item): * gui/tasks-component.c: (create_new_todo), (impl_requestCreateItem): * gui/weekday-picker.c: Cleanups: - remove unused vars - remove extraneous semi-colons - add some comments where assignments were done without using the results later - remove break; statements after return foo; - add casts in some places to be more type correct - rename variables with name clashes - s/if/ifdef in some cases - mark some code static - remove some unused functions - use guint for 1-bit bitfields svn path=/trunk/; revision=31451
* Fixes #324195Chenthill Palanisamy2005-12-191-0/+9
| | | | svn path=/trunk/; revision=30872
* fixes #318777Chenthill Palanisamy2005-11-281-5/+26
| | | | svn path=/trunk/; revision=30693
* gui/e-alarm-list.c gui/e-cal-component-memo-preview.cTor Lillqvist2005-11-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 2005-11-24 Tor Lillqvist <tml@novell.com> * gui/e-alarm-list.c * gui/e-cal-component-memo-preview.c * gui/e-cal-component-preview.c * gui/e-cal-model.c * gui/e-cell-date-edit-text.c * gui/e-date-time-list.c * gui/e-itip-control.c * gui/e-memos.c * gui/e-tasks.c * gui/itip-utils.c * gui/print.c * gui/alarm-notify/alarm-notify-dialog.c * gui/alarm-notify/util.c * gui/dialogs/alarm-dialog.c * gui/dialogs/alarm-list-dialog.c * gui/dialogs/comp-editor-util.c * gui/dialogs/recurrence-page.c: Include e-time-utils.h from libedataserver instead of using evolution's copy which is going away. svn path=/trunk/; revision=30659
* fixes #266144, #317575.Chenthill Palanisamy2005-10-111-35/+34
| | | | svn path=/trunk/; revision=30503
* fixes #264449.Chenthill Palanisamy2005-10-031-30/+28
| | | | svn path=/trunk/; revision=30467
* Fixes #274188.Chenthill Palanisamy2005-09-301-1/+2
| | | | svn path=/trunk/; revision=30446
* Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing toTor Lillqvist2005-09-281-3/+3
| | | | | | | | | | | 2005-09-28 Tor Lillqvist <tml@novell.com> * gui/e-cal-model.c (set_classification): Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to literal ASCII strings, just casefolding ASCII is enough. Also better for portability. svn path=/trunk/; revision=30393
* source-type is an enum not a pointer!Not Zed2005-08-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-08-23 Not Zed <NotZed@Ximian.com> * gui/e-cal-config.h: source-type is an enum not a pointer! * gui/tasks-component.c (selector_tree_drag_data_received): constify uid. * gui/itip-utils.c (comp_sentby): use the right list type for attendees. * gui/gnome-cal.c (config_categories_changed_cb): fix cast. (setup_widgets): fix casts. * gui/e-tasks.c: add missing e-categories.h include. (config_categories_changed_cb): fix cast. * gui/e-week-view.c (e_week_view_realize): remove unused. * gui/e-select-names-editable.c (e_select_names_editable_get_emails): remve unused. * gui/e-meeting-time-sel.c (e_meeting_time_selector_style_set): remove/comment unused. * gui/e-meeting-store.c (freebusy_async): g* strikes again, use the right lock/unlock function for the g-spastic-mutex. (process_callbacks_main_thread): fix signature to match usage. (refresh_queue_add): cast off warning * gui/e-itip-control.c (cleanup_ecal): fix signature to match use * gui/e-day-view.c (process_component): remove unused vars. (e_day_view_realize): more. (e_day_view_on_event_double_click): cast (e_day_view_update_calendar_selection_time): define out unused * gui/e-calendar-table.c (e_calendar_table_init): more a11y related casts. * gui/e-calendar-view.c (on_edit_appointment): proper boolean conversion of a pointer. (transfer_selected_items): cast (on_unrecur_appointment): remove unused prop (e_calendar_view_open_event): proper boolean conversion of pointer. * gui/e-cal-popup.c (needs_to_accept): remove unused. * gui/e-cal-model.c (set_instance_times): remove unused. :include missing calendar-config. * gui/dialogs/meeting-page.c (clear_widgets): yawn, another gtklabel wawrning. (meeting_page_fill_component): constify attendees. * gui/dialogs/e-send-options-utils.c: remove unused global sod, add missing string.h * gui/dialogs/e-delegate-dialog.c (e_delegate_dialog_construct): remove unused. * gui/dialogs/comp-editor.c (response_cb): wtf, this can't use em_utils!!! #if 0 it out and add a build warning. (cab_popup_position): pointer cast. (set_attachment_list): remove unused. * gui/dialogs/calendar-setup.c (eccp_general_offline): change very incorrect N_ macro to _. (CalendarSourceDialog): Umm, source_type is an enum, not a pointer. (eccp_get_source_color): remove unused. svn path=/trunk/; revision=30217
* Fixes #309991Chenthill Palanisamy2005-07-221-0/+26
| | | | | | | | | | | | | 2005-07-22 Chenthill Palanisamy <pchenthill@novell.com> Fixes #309991 * gui/e-cal-model.c: (ensure_dates_are_in_default_zone), (e_cal_view_objects_added_cb): * gui/gnome-cal.c: (ensure_dates_are_in_default_zone), (dn_e_cal_view_objects_added_cb): If the start date and end date are in UTC convert them to default zone while displaying. svn path=/trunk/; revision=29850
* show the progress indication in the view while downloading calendar itemsChenthill Palanisamy2005-07-021-2/+26
| | | | | | from EDS svn path=/trunk/; revision=29618
* uncomment code that shouldn't be.Rodrigo Moya2005-05-061-9/+9
| | | | | | | | | 2005-05-06 Rodrigo Moya <rodrigo@novell.com> * gui/e-cal-model.c (e_cal_view_objects_added_cb): uncomment code that shouldn't be. svn path=/trunk/; revision=29278
* Fixes #271679Rodrigo Moya2005-05-061-15/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-05-06 Rodrigo Moya <rodrigo@novell.com> Fixes #271679 * gui/dialogs/comp-editor.c (save_comp): * gui/e-week-view.c (e_week_view_on_editing_stopped, e_week_view_change_event_time): set correct start/end times for individual instances and remove all rules and exceptions. (e_week_view_reshape_event_span): show recurrence icons for detached instances also. * gui/e-day-view.c (e_day_view_finish_resize, e_day_view_finish_long_event_resize, e_day_view_on_editing_stopped, e_day_view_on_top_canvas_drag_data_received, e_day_view_on_main_canvas_drag_data_received, e_day_view_change_event_time): set the correct start/end times when modifying individual instances and remove all rules and exceptions. (e_day_view_on_top_canvas_motion, e_day_view_on_main_canvas_motion): disable D&D for recurring events. (e_day_view_reshape_long_event, e_day_view_reshape_day_event): check for detached instances and show recurrence icons for them also. * gui/e-week-view-event-item.c (e_week_view_event_item_draw_icons): * gui/e-day-view-top-item.c (e_day_view_top_item_draw_long_event): * gui/e-day-view-main-item.c (e_day_view_main_item_draw_day_event): check for detached instances and show recurrence icons for them also. * gui/e-cal-model.c (set_instance_times): don't use the RECURRENCE-ID to get the datetime. * gui/e-calendar-view.c (e_calendar_view_delete_selected_occurrence): exceptions need to be date only. (e_calendar_view_copy_clipboard): remove RECURRENCE-IDs from components we copy to the clipboard. (e_calendar_view_cut_clipboard): when cutting instances, remove only the selected instances. (on_unrecur_appointment): use MOD_ALL to modify the master object and remove recurrence-id from detached event. * gui/dialogs/recur-comp.c (recur_component_dialog): re-enabled. svn path=/trunk/; revision=29276
* If the status is busy call open method again, do not remove the client. IFChenthill Palanisamy2005-04-081-0/+5
| | | | | | | | | | | | | 2005-04-05 Chenthill Palanisamy <pchenthill@novell.com> * gui/e-cal-model.c: (cal_opened_cb): If the status is busy call open method again, do not remove the client. * gui/gnome-cal.c: (client_cal_opened_cb), (default_client_cal_opened_cb): IF the status is busy and the load_state is not loaded call open method. svn path=/trunk/; revision=29181
* Remove the component from the view, if its already present before addingChenthill Palanisamy2005-02-101-2/+14
| | | | | | | | | | 2005-02-10 Chenthill Palanisamy <pchenthill@novell.com> * gui/e-cal-model.c: (e_cal_view_objects_added_cb): Remove the component from the view, if its already present before adding it. svn path=/trunk/; revision=28763
* set instance times correctly.Rodrigo Moya2005-02-081-29/+8
| | | | | | | | 2005-02-08 Rodrigo Moya <rodrigo@novell.com> * gui/e-cal-model.c (set_instance_times): set instance times correctly. svn path=/trunk/; revision=28747
* clear the component preview when we update the view.Rodrigo Moya2005-02-041-3/+2
| | | | | | | | | | | | 2005-02-04 Rodrigo Moya <rodrigo@novell.com> * gui/e-tasks.c (update_view): clear the component preview when we update the view. * gui/e-cal-model.c (set_instance_times): use the correct timezone. Removed commented code. svn path=/trunk/; revision=28708
* redo the queries after emitting the 'time_range_changed' signal, since nowRodrigo Moya2005-01-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | 2005-01-03 Rodrigo Moya <rodrigo@novell.com> * gui/e-cal-model.c (e_cal_model_set_time_range): redo the queries after emitting the 'time_range_changed' signal, since now the views will only update their internal data but not redraw the events on that signal. * gui/e-day-view.c (model_changed_cb): removed, no longer needed. (e_day_view_recalc_day_starts): no need to call e_day_view_update_query. (e_day_view_init): no need to connect to 'model_changed' signal on the model, we already connect to the row/cell_changed ones. * gui/e-week-view.c (time_range_changed_cb): no need to call e_week_view_update_query. (model_changed_cb): removed, no longer needed. (e_week_view_init): no need to connect to 'model_changed' signal on the model, we already connect to the row/cell_changed ones. svn path=/trunk/; revision=28214
* removed superfluous if check. (e_cal_view_objects_modified_cb): add allRodrigo Moya2004-12-271-6/+4
| | | | | | | | | | 2004-12-26 Rodrigo Moya <rodrigo@novell.com> * gui/e-cal-model.c (search_by_uid_and_client): removed superfluous if check. (e_cal_view_objects_modified_cb): add all objects at once. svn path=/trunk/; revision=28203
* get instance times using the correct timezone. (redo_queries): emitRodrigo Moya2004-12-231-9/+8
| | | | | | | | | | | | | | 2004-12-23 Rodrigo Moya <rodrigo@novell.com> * gui/e-cal-model.c (set_instance_times): get instance times using the correct timezone. (redo_queries): emit signals before clearing the array. * gui/e-day-view.c (process_component): * gui/e-week-view.c (process_component): no need to try to update, always add. svn path=/trunk/; revision=28192
* Change copyright from ximian to novellJP Rosevear2004-12-221-1/+1
| | | | | | | | 2004-12-22 JP Rosevear <jpr@novell.com> * gui/e-cal-model.c: Change copyright from ximian to novell svn path=/trunk/; revision=28182
* no need to convert times now. (add_instance_cb): no need to convert here.Rodrigo Moya2004-12-221-29/+18
| | | | | | | | | 2004-12-21 Rodrigo Moya <rodrigo@novell.com> * gui/e-cal-model.c (set_instance_times): no need to convert times now. (add_instance_cb): no need to convert here. svn path=/trunk/; revision=28167
* Merge from recurrences-work-branchRodrigo Moya2004-12-221-123/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-12-21 Rodrigo Moya <rodrigo@novell.com> Merge from recurrences-work-branch * gui/e-cal-model.c (free_comp_data): renamed to e_cal_model_free_component_data and made it public. (clear_objects_array, e_cal_view_objects_removed_cb, remove_client_objects): use e_cal_model_free_component_data. (get_dtstart): get the DTSTART correctly for recurrences. (add_instance_cb): initialize all members of ECalModelComponent, and use the correct icalcomponent when setting the field. (set_instance_times): new function to set the instance_* fields of the ECalModelComponent when not expanding recurrences. (e_cal_view_objects_added_cb): expand recurrences for all objects when the model is set to expand. Call set_instance_times when not expanding recurrences. (e_cal_view_objects_modified_cb): made it remove objects and re-add them. (copy_ecdv): check values before using them. (e_cal_model_copy_component_data): Added code to copy the instance_* and color fields. * gui/e-cal-model-calendar.c (get_dtend): get the DTEND correctly for recurrences. (ecmc_set_value_at): ask user which instances to modify. * gui/e-day-view.c (e_day_view_find_event_from_uid): changed to search by UID and RID if given. (process_component): changed to not expand recurrences at all, this is now done on the model. (row_deleted_check_cb, remove_uid_cb): removed these functions. (model_rows_deleted_cb): changed to just remove the rows signalled from the model, which is the responsible for the recurrence expansion. (e_day_view_new): set the model to expand recurrences. (e_day_view_remove_event_cb): check the value searched in the array. (e_day_view_do_key_press): use e_day_view_find_event_from_uid correctly. * gui/e-week-view.c (e_week_view_find_event_from_uid): changed to search by UID and RID if given. (process_component_recur_cb): removed. (process_component): changed to not expand recurrences at all, this is now done on the model. (row_deleted_check_cb, remove_uid_cb): removed these functions. (model_rows_deleted_cb): changed to just remove the rows signalled from the model, which is the responsible for the recurrence expansion. (e_week_view_new): set the model to expand recurrences. (e_week_view_remove_event_cb): check the value searched in the array. Set the ECalModelComponent field to NULL after freeing it. (e_week_view_do_key_press): use e_week_view_find_event_from_uid correctly. * gui/dialogs/recur-comp.c (recur_component_dialog): remove the RECURRENCE-ID from the object when modifying all instances. svn path=/trunk/; revision=28166
* convert to G_DEFINE_TYPEJP Rosevear2004-10-141-16/+7
| | | | | | | | | | | | | | | | | | | | | | 2004-10-14 JP Rosevear <jpr@novell.com> * gui/e-cal-list-view-config.c: convert to G_DEFINE_TYPE * gui/e-cal-list-view.c: ditto * gui/e-cal-model-calendar.c: ditto * gui/e-cal-model-tasks.c: ditto * gui/e-cal-model.c: ditto * gui/e-calendar-table-config.c: ditto * gui/e-calendar-table.c: ditto * gui/e-calendar-view.c: ditto svn path=/trunk/; revision=27580
* Fixes #66344JP Rosevear2004-09-241-2/+8
| | | | | | | | | | | | | | | | 2004-09-24 JP Rosevear <jpr@novell.com> Fixes #66344 * gui/e-cal-model-calendar.c (get_dtend): check for existence of property and null time instead of sending through bad data * gui/e-cal-model.c (get_dtstart): ditto * gui/e-cal-model-tasks.c (get_completed): ditto (get_due): ditto svn path=/trunk/; revision=27368
* Fixes #62706JP Rosevear2004-08-171-1/+5
| | | | | | | | | | | 2004-08-16 JP Rosevear <jpr@ximian.com> Fixes #62706 * gui/e-cal-model.c (e_cal_model_set_timezone): set the default timezone on the server svn path=/trunk/; revision=26955
* guard against re-running the same query.Rodrigo Moya2004-08-111-0/+3
| | | | | | | | | 2004-08-10 Rodrigo Moya <rodrigo@novell.com> * gui/e-cal-model.c (e_cal_model_set_search_query): guard against re-running the same query. svn path=/trunk/; revision=26868
* Fixes #57622Rodrigo Moya2004-08-021-52/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-07-30 Rodrigo Moya <rodrigo@novell.com> Fixes #57622 * gui/e-cal-model.h: added ECalModelFlags enum type. * gui/e-cal-model.c (e_cal_model_set_flags, e_cal_model_get_flags): new functions. (e_cal_model_init): initialize the new internal field to keep the flags. (e_cal_view_objects_added_cb): expand recurrences if the model flags contain the EXPAND_RECUR bit. (e_cal_view_objects_modified_cb): if EXPAND_RECUR is on, remove all recurrences and regenerate them. (e_cal_view_objects_removed_cb): remove all instances for given UIDs. (add_new_client): killed warning. (get_dtstart): use the instance_start time when dealing with recurrences. * gui/e-cal-model-calendar.c (get_dtend): use the instance_end time when dealing with recurrences. * gui/e-cal-list-view.c (e_cal_list_view_new): set the EXPAND_RECUR flag on the model for the list view. * gui/e-week-view.c (e_week_view_add_event): * gui/e-day-view.c (e_day_view_add_event): fill in the instance's start and end times in the ECalModelComponent struct. * gui/e-calendar-view.c (e_calendar_view_delete_selected_occurrence): use the instance_start field to retrieve the RECUR-ID, now that all the views fill it in. svn path=/trunk/; revision=26790
* Fixes #62006JP Rosevear2004-07-291-1/+3
| | | | | | | | | | | 2004-07-27 JP Rosevear <jpr@novell.com> Fixes #62006 * gui/e-cal-model.c (add_new_client): don't load the events if we are already doing the query svn path=/trunk/; revision=26760
* Fixes #61760JP Rosevear2004-07-241-6/+3
| | | | | | | | | | | 2004-07-23 JP Rosevear <jpr@novell.com> Fixes #61760 * gui/e-cal-model.c (add_new_client): don't check against the URI, just against the client svn path=/trunk/; revision=26720
* include config.h. See #61395.Not Zed2004-07-221-0/+4
| | | | | | | | | | | | | | 2004-07-20 Not Zed <NotZed@Ximian.com> * gui/e-cal-model.c: * importers/icalendar-importer.c: * gui/dialogs/select-source-dialog.c: * gui/dialogs/copy-source-dialog.c: * gui/alarm-notify/util.c: * common/authentication.c: * gui/migration.c: include config.h. See #61395. svn path=/trunk/; revision=26694
* Fixes #57287, 58748JP Rosevear2004-07-141-29/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-07-12 JP Rosevear <jpr@novell.com> Fixes #57287, 58748 * gui/tasks-component.c (source_added_cb): if the source was added in the main calendar, select it because the user caused this to happen by creating a task (create_component_view): listen for source_added signal on the tasks * gui/gnome-cal.c (view_selection_changed_cb): if the user created a task, make sure we are displaying the relevant event list (set_timezone): set the default zone of the default client (setup_widgets): listen for the user_created signal (gnome_calendar_destroy): clean up default client (client_cal_opened_cb): disconnect from the open signal (default_client_cal_opened_cb): set the default client on the models (open_ecal): make the callback function a param (gnome_calendar_add_source): include the default client when searching for an existing client (gnome_calendar_set_default_source): make the default client independent of the rest of the clients * gui/e-week-view.c (e_week_view_on_editing_stopped): emit user_created signal * gui/e-tasks.c (user_created_cb): if the user created a task, make sure we are displaying the relevant task list (set_timezone): set the timezone on the client (setup_widgets): listen for user_created signal (e_tasks_destroy): unref default client (default_client_cal_opened_cb): set the default on the model when it opens (open_ecal): open a task list (e_tasks_add_todo_source): include the default client when searching for an existing client (e_tasks_set_default_source): make the default client independent of the rest of the clients * gui/e-day-view.c (e_day_view_on_editing_stopped): emit user_created signal * gui/e-calendar-view.h: add signal proto * gui/e-calendar-view.c (e_calendar_view_class_init): add user_created signal * gui/e-calendar-table.h: add signal proto * gui/e-calendar-table.c (e_calendar_table_class_init): add user_created signal (row_appended_cb): if row is appended, emit user_created signal (e_calendar_table_init): listen for row_appended signal * gui/e-cal-model.h: add signal proto * gui/e-cal-model.c (e_cal_model_class_init): add row_appended signal (ecm_append_row): don't leak, emit row appended signal (e_cal_model_set_default_client): remove the existing default if it was only used as the default (update_e_cal_view_for_client): short circuit query create (add_new_client): look for an existing client and update its record if found, handle opening things here (e_cal_model_add_client): just call add_new_client (remove_client_objects): just remove a client's objects (remove_client): use above, handle removal of client if its default * gui/calendar-component.c (source_added_cb): if the source was added in the main calendar, select it because the user caused this to happen by creating an appointment (create_component_view): listen for source_added signal on the calendar svn path=/trunk/; revision=26644
* as belowRadek Doulik2004-07-131-8/+8
| | | | | | | | | | | | | | | | | | 2004-07-08 Radek Doulik <rodo@ximian.com> * gui/e-cal-model.c (e_cal_model_date_value_to_string): as below * gui/e-cal-model-calendar.c (ecmc_value_to_string): as below * gui/e-cal-model.c (ecm_value_to_string): as below * gui/e-cal-model-tasks.c (ecmt_value_to_string): dup the string value, it's free-ed later. instead of returning NULL return g_strdup ("") as gal does Fixes #56271 svn path=/trunk/; revision=26634
* removed g_assert call, since we shouldn't crash when getting wrongRodrigo Moya2004-06-111-1/+2
| | | | | | | | | | 2004-06-10 Rodrigo Moya <rodrigo@novell.com> * gui/e-cal-model.c (e_cal_view_objects_modified_cb): removed g_assert call, since we shouldn't crash when getting wrong notifications from a backend. svn path=/trunk/; revision=26312
* use e_cal_generate_instances_for_object instead ofRodrigo Moya2004-05-141-7/+1
| | | | | | | | | | | | | | 2004-05-14 Rodrigo Moya <rodrigo@ximian.com> * gui/e-day-view.c (process_component): * gui/e-week-view.c (process_component): * gui/gnome-cal.c (gnome_calendar_purge): * gui/tag-calendar.c (tag_calendar_by_comp): * gui/e-cal-model.c (e_cal_model_generate_instances): use e_cal_generate_instances_for_object instead of e_cal_recur_generate_instances. svn path=/trunk/; revision=25905
* Fixes #52294JP Rosevear2004-05-071-8/+44
| | | | | | | | | | | | | | | | | 2004-05-07 JP Rosevear <jpr@ximian.com> Fixes #52294 * gui/e-cal-model.c (set_dtstart): set the tzid properly (ecm_is_cell_editable): set check properly * gui/e-cal-model-tasks.c (set_due): set the tzid properly (ecmt_is_cell_editable): set check properly * gui/e-cal-model-calendar.c (set_dtend): set the tzid properly (ecmc_is_cell_editable): kill fixme and set check properly svn path=/trunk/; revision=25825
* fix comment and checkJP Rosevear2004-05-071-3/+1
| | | | | | | | | | | | 2004-05-07 JP Rosevear <jpr@ximian.com> * gui/e-cal-model.c (ecm_is_cell_editable): fix comment and check * gui/e-cal-model-tasks.c (ecmt_set_value_at): set a parent field properly (ecmt_is_cell_editable): fix comment and check svn path=/trunk/; revision=25823
* use the source color if it is set. Yay for ugly colors.Larry Ewing2004-04-301-2/+22
| | | | | | | | | | | | 2004-04-29 Larry Ewing <lewing@ximian.com> * gui/e-cal-model.c (ecm_get_color_for_component): use the source color if it is set. Yay for ugly colors. * gui/e-cal-model.h: add a color holder to the ECalModelComponent since the return value of the color stuff is const. svn path=/trunk/; revision=25696
* kill warningJP Rosevear2004-04-301-2/+0
| | | | | | | | 2004-04-29 JP Rosevear <jpr@ximian.com> * gui/e-cal-model.c (e_cal_model_set_default_client): kill warning svn path=/trunk/; revision=25692
* just add the client, we have protection against re-adding it any howJP Rosevear2004-04-081-15/+9
| | | | | | | | | | 2004-04-07 JP Rosevear <jpr@ximian.com> * gui/e-cal-model.c (e_cal_model_set_default_client): just add the client, we have protection against re-adding it any how (cal_opened_cb): stop listening to the open signal svn path=/trunk/; revision=25359
* guard against the case that we redo queries while still waiting for aJP Rosevear2004-03-271-0/+4
| | | | | | | | | | 2004-03-26 JP Rosevear <jpr@ximian.com> * gui/e-cal-model.c (update_e_cal_view_for_client): guard against the case that we redo queries while still waiting for a client to open svn path=/trunk/; revision=25205
* Fixes #53134JP Rosevear2004-03-271-2/+4
| | | | | | | | | | | | 2004-03-26 JP Rosevear <jpr@ximian.com> Fixes #53134 * gui/e-cal-model.c (get_description): make sure to set the string to NULL so that if this component doesn't have a description we don't double free next time we are called svn path=/trunk/; revision=25204
* finds the client data for a client (cal_opened_cb): update the queryJP Rosevear2004-03-271-30/+61
| | | | | | | | | | | | | | | | 2004-03-26 JP Rosevear <jpr@ximian.com> * gui/e-cal-model.c (find_client_data): finds the client data for a client (cal_opened_cb): update the query (add_new_client): return client data (e_cal_model_add_client): add the client immediately no matter what, and possibly wait for it to open (remove_client): guard against NULL query (e_cal_model_remove_client): use find_client_data (e_cal_model_dispose): guard against a NULL query svn path=/trunk/; revision=25200
* fix off by one error when emitting deleted signalJP Rosevear2004-03-261-1/+1
| | | | | | | | | 2004-03-25 JP Rosevear <jpr@ximian.com> * gui/e-cal-model.c (remove_client): fix off by one error when emitting deleted signal svn path=/trunk/; revision=25193
* remove unused variableJP Rosevear2004-03-241-2/+2
| | | | | | | | | | | | | | | | | | 2004-03-23 JP Rosevear <jpr@ximian.com> * gui/dialogs/copy-source-dialog.c (copy_source): remove unused variable * gui/e-cal-model.c (e_cal_model_copy_component_data): make the precondition return NULL * gui/control-factory.c (get_prop): make sure this code isn't reached * gui/calendar-component.c (calendar_component_peek_source_selector): cast to kill warning svn path=/trunk/; revision=25159
* Fixes #55716JP Rosevear2004-03-201-0/+4
| | | | | | | | | | | 2004-03-19 JP Rosevear <jpr@ximian.com> Fixes #55716 * gui/e-cal-model.c (remove_client): unset the default if the client removed was the default svn path=/trunk/; revision=25132
* set the search query (e_tasks_init): set the query to be #t by defaultJP Rosevear2004-03-161-1/+3
| | | | | | | | | | | | 2004-03-15 JP Rosevear <jpr@ximian.com> * gui/e-tasks.c (search_bar_sexp_changed_cb): set the search query (e_tasks_init): set the query to be #t by default * gui/e-cal-model.c (redo_queries): use the search query if there is one (and no time is set), make sure to dup the #f svn path=/trunk/; revision=25085
* Rename e-cal-view to e-calendar-view and fix includesJP Rosevear2004-03-161-0/+2
| | | | | | | | | | | | | | | 2004-03-15 JP Rosevear <jpr@ximian.com> * Rename e-cal-view to e-calendar-view and fix includes * gui/dialogs/comp-editor-page.c (comp_editor_page_fill_widgets): pre-conditions should return FALS * gui/e-cal-model.c (copy_ecdv): return the new struct * gui/Makefile.am: build renamed files svn path=/trunk/; revision=25075
* Fixes #52253JP Rosevear2004-03-161-66/+231
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-15 JP Rosevear <jpr@ximian.com> Fixes #52253 * gui/print.c (print_week_summary_cb): copy component data * gui/gnome-cal.c (get_times_for_views): calculate the time range for each view (set_search_query): set the search query on the model (set_week_start): set the week start day (week_start_changed_cb): track if it changes (setup_config): set its notification (setup_widgets): update the view times and date navigator (gnome_calendar_init): remove dead values (gnome_calendar_goto_date): just calc the new time and let update_view_times handle it (gnome_calendar_goto): ditto (gnome_calendar_direction): ditto o (gnome_calendar_set_selected_time_range): ditto (gnome_calendar_dayjump): ditto (update_view_times): set the time ranges on the models (set_view): use the new preserve day setting (gnome_calendar_set_view): don't update the view times, just switch (gnome_calendar_get_selected_time_range): get the time range (gnome_calendar_on_date_navigator_selection_changed): don't re-update the date navigator, centralize the view setting * gui/e-week-view.c (time_range_changed_cb): handle the time range changing (process_component): move here (model_changed_cb): handle the model changing (update_row): updated a changed row (model_row_changed_cb): update a row (model_cell_changed_cb): ditto (model_rows_inserted_cb): handle events being added (row_deleted_check_cb, remove_uid_cb, model_rows_deleted_cb): handle events being deleted (timezone_changed_cb): handle timezone changing (e_week_view_init): create the model and listen to it (e_week_view_new): don't create the model here (e_week_view_set_selected_time_range): no need to cast (e_week_view_set_first_day_shown): ditto (e_week_view_set_weeks_shown): ditto (e_week_view_update_event_cb): free and copy the data using new routines (e_week_view_foreach_event): step through every event (e_week_view_remove_event_cb): we no longer track allocated status (e_week_view_on_button_release): don't set the seleciton in the calendar (e_week_view_free_events): free the data with the util (e_week_view_add_event): no need to track allocated status (e_week_view_on_adjustment_changed): no need to cast * gui/e-day-view.c (e_day_view_class_init): update query is no longer used via class method (time_range_changed_cb): handle the time range changing (process_component): move here (model_changed_cb): handle the model changing (update_row): updated a changed row (model_row_changed_cb): update a row (model_cell_changed_cb): ditto (model_rows_inserted_cb): handle events being added (row_deleted_check_cb, remove_uid_cb, model_rows_deleted_cb): handle events being deleted (timezone_changed_cb): handle timezone changing (e_day_view_init): create a model, connect to its signals (e_day_view_destroy): we don't have our own query anymore (e_day_view_update_event_cb): free and copy the data using new routines (e_day_view_remove_event_cb): we no longer track allocated status (e_day_view_set_selected_time_range): actually set the selection (e_day_view_recalc_day_starts): no need to cast (e_day_view_recalc_work_week): ditto (e_day_view_update_calendar_selection_time): don't call back to the main calendar (e_day_view_free_event_array): use the free util (e_day_view_add_event): don't track allocated status * gui/e-calendar-marshal.list: add marshaller * gui/e-cal-view.h: remove field * gui/e-cal-view.c: no longer listen for model signals (e_calendar_view_class_init): make the model arg not construct time * gui/e-cal-model.h: update/add protos * gui/e-cal-model.c (e_cal_model_class_init): set the dispose handler and add a time_range_changed signal (e_cal_model_init): defaults for queries (e_cal_model_dispose): dispose of things (e_cal_model_finalize): remove bits that are in dispose now (search_by_uid_and_client): allow NULL client to find any uid (e_cal_view_objects_added_cb): ref the client (update_e_cal_view_for_client): use the full query (remove_client): pre change for each row and emit deleted signals (redo_queries): relaunch the query for each client (e_cal_model_get_time_range): get the time range (e_cal_model_set_time_range): set the time range and redo the queries (e_cal_model_set_search_query): get the search query (e_cal_model_set_search_query): set the search query and redo the queries (e_cal_model_get_component_for_uid): get the component info based on uid (copy_ecdv): copy and ECellDateEditValue (e_cal_model_copy_component_data): copy component data (e_cal_model_free_component_data): unref the client svn path=/trunk/; revision=25072
* return "" instead of NULL if there is no default_category set. FixesNot Zed2004-03-121-1/+1
| | | | | | | | | 2004-03-12 Not Zed <NotZed@Ximian.com> * gui/e-cal-model.c (ecm_initialize_value): return "" instead of NULL if there is no default_category set. Fixes #53419. svn path=/trunk/; revision=25042
* prevent from adding the same client more than once.Rodrigo Moya2004-03-041-0/+3
| | | | | | | | | 2004-03-03 Rodrigo Moya <rodrigo@ximian.com> * gui/e-cal-model.c (e_cal_model_add_client): prevent from adding the same client more than once. svn path=/trunk/; revision=24951
* don't assert if we can't find the component, just continue with next itemRodrigo Moya2004-01-221-1/+2
| | | | | | | | | | 2004-01-22 Rodrigo Moya <rodrigo@ximian.com> * gui/e-cal-model.c (e_cal_view_objects_removed_cb): don't assert if we can't find the component, just continue with next item in the list. svn path=/trunk/; revision=24365
* month and week view printing works again, day view is next to fixRadek Doulik2004-01-181-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | 2004-01-18 Radek Doulik <rodo@ximian.com> * gui/print.c (print_border_with_triangles): use rgb color as fillcolor (print_week_day_event): ditto * gui/e-cal-model.c (e_cal_model_get_rgb_color_for_component): new helper function, gets component color as rgb double values * gui/print.c (print_week_summary_cb): uncommented and updated for e_cal_model_generate_instances (print_week_summary): use e_cal_model_generate_instances (print_border_with_triangles): pass rgb fillcolor (print_border_rgb): new function to print border with rgb color background * gui/e-cal-model.c (e_cal_model_generate_instances): new function, similar to e_cal_generate_instances. see comments to understand how to use cb_data svn path=/trunk/; revision=24292
* make sure timezone value is sane (get_completed): dittoJP Rosevear2003-11-201-2/+2
| | | | | | | | | | | | | | 2003-11-19 JP Rosevear <jpr@ximian.com> * gui/e-cal-model-tasks.c (get_due): make sure timezone value is sane (get_completed): ditto * gui/e-cal-model.c (get_dtstart): add more guards * gui/e-cal-model-calendar.c (get_dtend): ditto svn path=/trunk/; revision=23442
* make sure the timezone value is saneJP Rosevear2003-11-191-5/+5
| | | | | | | | | | | 2003-11-18 JP Rosevear <jpr@ximian.com> * gui/e-cal-model.c (get_dtstart): make sure the timezone value is sane * gui/e-cal-model-calendar.c (get_dtend): ditto svn path=/trunk/; revision=23435
* emit the added signal for the correct rowsJP Rosevear2003-11-171-8/+5
| | | | | | | | | 2003-11-16 JP Rosevear <jpr@ximian.com> * gui/e-cal-model.c (e_cal_view_objects_added_cb): emit the added signal for the correct rows svn path=/trunk/; revision=23375
* add it via e-tasks (remove_uri_for_source): remove it via e-tasksJP Rosevear2003-11-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-11-16 JP Rosevear <jpr@ximian.com> * gui/tasks-component.c (add_uri_for_source): add it via e-tasks (remove_uri_for_source): remove it via e-tasks (get_default_task): provide a default for editing (impl_createControls): create the control directly (impl_requestCreateItem): implement * gui/gnome-cal.c (gnome_calendar_purge): don't let the two list iterators clobber each other * gui/e-tasks.h: add protos * gui/e-tasks.c (e_tasks_destroy): free the client list and the hash, disconnect signals (e_tasks_new_task): use the default client (e_tasks_add_todo_uri): add a uri (e_tasks_remove_todo_uri): remove a uri (e_tasks_set_default_uri): set default uri (e_tasks_get_default_client): get default client (e_tasks_delete_completed): expunge from all clients (e_tasks_setup_view_menus): use default client uri * gui/e-tasks.c (set_timezone): set the timezone for all clients (e_tasks_init): set up the clients has table * gui/e-calendar-table.etspec: yank some useless display columns * gui/e-cal-model.c (remove_client): remove objects in reverse order so we don't clobber ourselves * gui/calendar-component.c: add FIXME svn path=/trunk/; revision=23373
* use a standard calendar status (backend_cal_opened_online): dittoJP Rosevear2003-11-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | 2003-11-11 JP Rosevear <jpr@ximian.com> * gui/calendar-offline-handler.c (backend_cal_opened_offline): use a standard calendar status (backend_cal_opened_online): ditto * gui/alarm-notify/alarm-queue.c (cal_opened_cb): ditto * gui/gnome-cal.c (client_cal_opened_cb): ditto * gui/e-tasks.c (cal_opened_cb): ditto * gui/e-itip-control.c (default_server_started_cb): ditto * gui/e-cal-model.c (cal_opened_cb): ditto * gui/comp-editor-factory.c (cal_opened_cb): ditto svn path=/trunk/; revision=23286
* Remove get-vtype check from the completed-tasks query (and don't leak theDan Winship2003-11-111-36/+1
| | | | | | | | | | | | | * gui/e-tasks.c (e_tasks_delete_completed): Remove get-vtype check from the completed-tasks query (and don't leak the sexp string). * gui/e-cal-model.c (update_e_cal_view_for_client): Don't adjust the sexp to use get-vtype. * gui/gnome-cal.c (adjust_e_cal_view_sexp, gnome_calendar_purge): Remove get-vtype check from queries svn path=/trunk/; revision=23263
* Various changes to merge in evolution-data-server reliance.JP Rosevear2003-11-071-57/+57
| | | | svn path=/trunk/; revision=23206
* fixed typo in menu item label.Rodrigo Moya2003-10-291-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-10-29 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-component.c (fill_popup_menu_callback): fixed typo in menu item label. * gui/e-cal-model.[ch] (e_cal_model_get_use_24_hour_format): new function. * gui/e-cal-view.[ch]: no need to keep the 'use_24_hour' setting, it's already in the model. (e_cal_view_get_use_24_hour_format, e_cal_view_set_use_24_hour_format): new functions. * gui/e-day-view.[ch] (e_day_view_get_24_hour_format, (e_day_view_set_24_hour_format): removed. (e_day_view_convert_time_to_display, e_day_view_update_event_label, e_day_view_get_time_string_width): use the ECalView's function to get the 24 hour format. * gui/e-week-view.[ch] (e_week_view_get_24_hour_format, e_week_view_set_24_hour_format): removed. (e_week_view_convert_time_to_display, e_week_view_get_time_string_width): use the ECalView's function to get the 24 hour format. * gui/e-day-view-top-item.c (e_day_view_top_item_draw_long_event): * gui/e-day-view-time-item.c (e_day_view_time_item_draw): * gui/e-week-view-event-item.c (e_week_view_draw_time): don't use the view's use_24_hour_format, but the ECalView method. svn path=/trunk/; revision=23113
* changed fill_component_from_model virtual method to get an ETableModel,Rodrigo Moya2003-10-271-3/+2
| | | | | | | | | | | | | | | | | 2003-10-27 Rodrigo Moya <rodrigo@ximian.com> * gui/e-cal-model.h: changed fill_component_from_model virtual method to get an ETableModel, not an ECalModel. * gui/e-cal-model.c (ecm_append_row): the source model sent from ETable is an ETableModel, not an ECalModel. * gui/e-cal-model-calendar.c (ecmc_fill_component_from_model): get an ETableModel for the 'source_model' argument. * gui/e-cal-model-tasks.c (ecmt_fill_component_from_model): ditto. svn path=/trunk/; revision=23082
* Merge new-ui-branch to the trunk.Ettore Perazzoli2003-10-221-115/+167
| | | | svn path=/trunk/; revision=22965
* Add e-cal-list-view.etspec. (libevolution_calendar_la_SOURCES): AddHans Petter Jansson2003-10-101-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-10-10 Hans Petter Jansson <hpj@ximian.com> * calendar/gui/Makefile.am (etspec_DATA): Add e-cal-list-view.etspec. (libevolution_calendar_la_SOURCES): Add e-cal-list-view.[ch]. * calendar/gui/calendar-commands.c (show_list_view_clicked): Implement. (calendar_get_text_for_folder_bar_label): Add case for list view. Use month case and tweak it so it doesn't show "%d - %d" if the time span contains only one day. (verbs): Add list view. (pixmaps): Add list view. * calendar/gui/calendar-view-factory.c (calendar_view_factory_get_title): Add list view case. (calendar_view_factory_get_type_code): Add list view case. * calendar/gui/control-factory.c (get_prop): Add list view case. * calendar/gui/e-cal-model.c (get_classification): Fix to conform to updated libical. (ecm_set_value_at): Add missing break statements. (ecm_get_color_for_component): Add braces for clarity. * calendar/gui/gnome-cal.c (gnome_calendar_get_current_view_widget): Add list view case. (get_focus_location): Add list view case. (connect_list_view_focus): Implement. (setup_widgets): Set up list view. (gnome_calendar_direction): Add list view case. (set_view): Add list view case. (gnome_calendar_setup_view_menus): Add list view factory. (gnome_calendar_construct): Account for list view. (gnome_calendar_update_config_settings): Account for list view. (get_days_shown): Implement list view case. * calendar/gui/gnome-cal.h (GnomeCalendarViewType): Add list view. * calendar/gui/e-cal-list-view.[ch]: Implement ECalListView, subclassing ECalView. * ui/evolution-calendar.xml: Add calendar list view task button. * art/listview.xpm: Add calendar list view icon. svn path=/trunk/; revision=22850
* Import new libical from mainline HEAD and make appropriate changes toHans Petter2003-09-121-3/+14
| | | | | | Evolution. svn path=/trunk/; revision=22538
* Merged from calendar-views-with-model branchRodrigo Moya2003-08-201-28/+96
| | | | svn path=/trunk/; revision=22308
* Merged missing bits from branchRodrigo Moya2003-08-091-35/+204
| | | | svn path=/trunk/; revision=22152
* Merge new-calendar-branch into HEADRodrigo Moya2003-08-081-0/+1303
svn path=/trunk/; revision=22129