aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
Commit message (Collapse)AuthorAgeFilesLines
* set the info label (calendar_dates_changed_cb): call back for when theJP Rosevear2004-05-041-5/+120
| | | | | | | | | | | | 2004-05-03 JP Rosevear <jpr@ximian.com> * gui/calendar-component.c (set_info): set the info label (calendar_dates_changed_cb): call back for when the dates of the calendar change (create_component_view): store the info label for later use; listen for date changes to set the info label svn path=/trunk/; revision=25760
* Fixes #57897JP Rosevear2004-05-041-33/+0
| | | | | | | | | | | 2004-05-03 JP Rosevear <jpr@ximian.com> Fixes #57897 * gui/e-tasks.c (setup_widgets): no need to listen for the deleted signal, the cursor will change in that case svn path=/trunk/; revision=25759
* remove useless debug statementJP Rosevear2004-05-041-1/+0
| | | | | | | | | 2004-05-03 JP Rosevear <jpr@ximian.com> * gui/e-cal-model-tasks.c (set_completed): remove useless debug statement svn path=/trunk/; revision=25758
* set the info label message (model_changed_cb): call aboveJP Rosevear2004-05-041-6/+67
| | | | | | | | | | | | | | 2004-05-03 JP Rosevear <jpr@ximian.com> * gui/tasks-component.c (set_info): set the info label message (model_changed_cb): call above (table_selection_change_cb): ditto (model_rows_inserted_cb): ditto (model_rows_deleted_cb): ditto (create_component_view): remember the info in the view struct; listen for events that require the info label to be updated svn path=/trunk/; revision=25757
* Fixes #57899JP Rosevear2004-05-032-5/+22
| | | | | | | | | | | | | 2004-05-03 JP Rosevear <jpr@ximian.com> Fixes #57899 * gui/e-day-view.c (e_day_view_do_key_press): bail if the client is read only (or we get an error trying to find out) * gui/e-week-view.c (e_week_view_do_key_press): ditto svn path=/trunk/; revision=25749
* Fixes #57894JP Rosevear2004-05-031-2/+4
| | | | | | | | | | | 2004-05-03 JP Rosevear <jpr@ximian.com> Fixes #57894 * gui/gnome-cal.c (gnome_calendar_new_task): make sure we use the default component of the correct model svn path=/trunk/; revision=25748
* Update the alarm notify dialog to be HIG compliantRodney Dawes2004-05-012-102/+225
| | | | | | | | | | | | 2004-04-30 Rodney Dawes <dobey@ximian.com> * gui/alarm-notify/alarm-notify-dialog.c (alarm_notify_dialog): * gui/alarm-notify/alarm-notify.glade: Update the alarm notify dialog to be HIG compliant Fixes #41224 svn path=/trunk/; revision=25729
* Set up the model to use the correct query. Setup callbacks for gconfGary Ekker2004-05-014-10/+174
| | | | | | | | | | | | | | | | | | | 2004-04-30 Gary Ekker <gekker@novell.com> * gui/e-tasks.c: (e_tasks_init): Set up the model to use the correct query. Setup callbacks for gconf changes. Add an idle timeout to hide completed items. Add update_view, update_view_cb, and config_hide_completed_tasks_changed_cb to update the model view. * gui/gnome-cal.c: ditto * gui/calendar-config.h: Add notifications for hide_completed_tasks settings. * gui/calendar-config.c: ditto svn path=/trunk/; revision=25727
* make the entry non-editable. Quick fix for #48132 (could convert toNot Zed2004-04-301-1/+2
| | | | | | | | | | 2004-04-30 Not Zed <NotZed@Ximian.com> * gui/dialogs/meeting-page.c (get_widgets): make the entry non-editable. Quick fix for #48132 (could convert to optionmenu but then we need to change again for gnome >?2.6). svn path=/trunk/; revision=25698
* use the source color if it is set. Yay for ugly colors.Larry Ewing2004-04-302-2/+23
| | | | | | | | | | | | 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
* Update the prefs dialog pages for the calendar and tasks components to beRodney Dawes2004-04-301-330/+549
| | | | | | | | | 2004-04-29 Rodney Dawes <dobey@ximian.com> * gui/dialogs/cal-prefs-dialog.glade: Update the prefs dialog pages for the calendar and tasks components to be HIG compliant svn path=/trunk/; revision=25695
* remove prototypesJP Rosevear2004-04-3013-81/+213
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-29 JP Rosevear <jpr@ximian.com> * gui/tasks-component.h (tasks_component_peek_source_list): remove prototypes * gui/tasks-component.c (source_removed_cb): unselect the source in the selector if source removed from calendar (create_component_view): create the activity handler and listen to source remove signal * gui/gnome-cal.h: add signals, protos * gui/gnome-cal.c (gnome_calendar_class_init): add source added and removed signals (client_cal_opened_cb): emit source removed signal (open_ecal): set the status message (backend_died_cb): emit source removed signal (gnome_calendar_set_activity_handler): allow an activity handler to be set (gnome_calendar_add_source): emit source added signal (gnome_calendar_remove_source): emit source removed signal (display_view): update the active activity handler * gui/e-tasks.h: add signal prototypes * gui/e-tasks.c (e_tasks_class_init): add source added and removed signals (backend_died_cb): emit source removed signal (e_tasks_add_todo_source): emit source added/removed signals (e_tasks_remove_todo_source): emit source removed signal * gui/e-calendar-view.h: add proto * gui/e-calendar-view.c (e_calendar_view_set_activity_handler): allow an activity handler to be set (e_calendar_view_set_status_message): use private activity handler (if any) to set status message * gui/e-calendar-table.h: add data member and proto * gui/e-calendar-table.c (e_calendar_table_set_activity_handler): allow an activity handler to be set (e_calendar_table_set_status_message): use private activity handler (if any) to set status message * gui/e-calendar-marshal.list: add extra marshallers * gui/calendar-component.h: kill protos * gui/calendar-component.c (source_removed_cb): unselect the source in the selector if source removed from calendar (create_component_view): create the activity handler and listen to source remove signal svn path=/trunk/; revision=25694
* dittoJP Rosevear2004-04-302-2/+0
| | | | | | | | | | 2004-04-29 JP Rosevear <jpr@ximian.com> * gui/dialogs/comp-editor.c (send_timezone): ditto * gui/dialogs/task-page.c (task_page_fill_component): kill warning svn path=/trunk/; revision=25693
* 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
* Removed the terminating NULL vararg since we don't need it forJeffrey Stedfast2004-04-301-1/+1
| | | | | | | | | | | 2004-04-29 Jeffrey Stedfast <fejj@ximian.com> * gui/migration.c (migrate_pilot_data): Removed the terminating NULL vararg since we don't need it for g_strdup_printf, it was only needed when it was g_build_filename(). Gets rid of a gcc warning. svn path=/trunk/; revision=25689
* check we find any usable components of the icalendar entry beforeNot Zed2004-04-291-5/+7
| | | | | | | | | | 2004-04-29 Not Zed <NotZed@Ximian.com> * gui/e-itip-control.c (e_itip_control_set_data): check we find any usable components of the icalendar entry before dereferncing it. Fixes crash in #57264. svn path=/trunk/; revision=25675
* dont shadow source with another source in the fallback case. Related toNot Zed2004-04-281-2/+0
| | | | | | | | | 2004-04-28 Not Zed <NotZed@Ximian.com> * gui/e-itip-control.c (object_requested_cb): dont shadow source with another source in the fallback case. Related to #54094. svn path=/trunk/; revision=25657
* disable comment searching which is currently uselessJP Rosevear2004-04-281-0/+3
| | | | | | | | | 004-04-27 JP Rosevear <jpr@ximian.com> * gui/cal-search-bar.c: disable comment searching which is currently useless svn path=/trunk/; revision=25648
* Fixes #52270 and #57593JP Rosevear2004-04-282-68/+84
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-27 JP Rosevear <jpr@ximian.com> Fixes #52270 and #57593 * gui/e-cal-model-tasks.c (ecmt_set_value_at): remove checks for start after due (ecmt_duplicate_value): copy the completed and due dates properly (ecmt_fill_component_from_model): only set the percent and status if the completion isn't set (ensure_task_partially_complete): ensure the task is not complete, in progress and make the percentage sensible if its 0 or 100 (set_status): make sure the status and related vars are set properly (ecmt_set_value_at): handle status (ecmt_fill_component_from_model): make sure the click to add fields don't clobber each other (ecmt_is_cell_editable): status is editable * gui/e-cal-model-calendar.c (ecmc_duplicate_value): copy the dtend correctly svn path=/trunk/; revision=25647
* hook up the color picker and test buttons in the new task dialog.Larry Ewing2004-04-282-8/+12
| | | | | | | | | | | | 2004-04-27 Larry Ewing <lewing@ximian.com> * gui/dialogs/calendar-setup.c: hook up the color picker and test buttons in the new task dialog. * gui/dialogs/calendar-setup.glade: fix visibility and color picker names. svn path=/trunk/; revision=25644
* i2004-04-27 Larry Ewing <lewing@ximian.com>Larry Ewing2004-04-282-20/+76
| | | | | | | | | | | | * gui/dialogs/calendar-setup.c (new_calendar_test_uri): add handler for test button. (calendar_setup_new_calendar): connect test button, fill in color picker member. (source_to_dialog): set the color picker color if the source has one. (dialog_to_source): set the source color. svn path=/trunk/; revision=25643
* Fixed the version checks for migrating pilot data. (migrate_calendars):Jeffrey Stedfast2004-04-281-7/+7
| | | | | | | | | | | | | | | | 2004-04-27 Jeffrey Stedfast <fejj@ximian.com> * gui/migration.c (migrate_tasks): Fixed the version checks for migrating pilot data. (migrate_calendars): Same. (migrate_pilot_data): Doh. Take a third argument to specify what component we are migrating ("todo" vs "calendar") so that we can compare against the correct filename. Might help :-) (migrate_pilot_db_key): Just set an empty value for the data since there's no way to actually get it and I don't think it really matters anyway. svn path=/trunk/; revision=25642
* Fixed the version checks for migrating pilot data. (migrate_calendars):Jeffrey Stedfast2004-04-281-7/+14
| | | | | | | | | | | | | 2004-04-27 Jeffrey Stedfast <fejj@ximian.com> * gui/migration.c (migrate_tasks): Fixed the version checks for migrating pilot data. (migrate_calendars): Same. (migrate_pilot_data): Doh. Take a third argument to specify what component we are migrating ("todo" vs "calendar") so that we can compare against the correct filename. Might help :-) svn path=/trunk/; revision=25638
* compare the start time and the due time only when both are not null.Kidd Wang2004-04-271-4/+14
| | | | | | | * gui/e-cal-model-tasks.c: (ecmt_set_value_at): compare the start time and the due time only when both are not null. svn path=/trunk/; revision=25627
* New function to migrate pilot data. (migrate_calendars): Migrate pilotJeffrey Stedfast2004-04-271-6/+145
| | | | | | | | | | | 2004-04-26 Jeffrey Stedfast <fejj@ximian.com> * gui/migration.c (migrate_pilot_data): New function to migrate pilot data. (migrate_calendars): Migrate pilot data if upgrade version <=1.5.9 (migrate_tasks): Same. svn path=/trunk/; revision=25620
* Call e_icon_factory_init ()Rodney Dawes2004-04-241-0/+3
| | | | | | | | | | 2004-04-23 Rodney Dawes <dobey@ximian.com> * gui/alarm-notify/notify-main.c (main): Call e_icon_factory_init () Fixes #57497 svn path=/trunk/; revision=25602
* Fixes #56092JP Rosevear2004-04-222-0/+19
| | | | | | | | | | | | | | | | 2004-04-22 JP Rosevear <jpr@ximian.com> Fixes #56092 * gui/e-day-view.c (e_day_view_show_popup_menu): weak ref for the menu to be destroyed (popup_destroyed_cb): reset popup_event_num and popup_event_day * gui/e-week-view.c (e_week_view_show_popup_menu): weak ref for the menu to be destroyed (popup_destroyed_cb): reset the popup_event_num svn path=/trunk/; revision=25583
* make sure we don't deref a NULL pointerJP Rosevear2004-04-222-11/+1
| | | | | | | | | 2004-04-21 JP Rosevear <jpr@ximian.com> * gui/calendar-component.c (create_new_event): make sure we don't deref a NULL pointer svn path=/trunk/; revision=25573
* Fixes #56504JP Rosevear2004-04-226-678/+856
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-21 JP Rosevear <jpr@ximian.com> Fixes #56504 * gui/gnome-cal.c (gnome_calendar_destroy): no need to destroy the creatable item handler (gnome_calendar_set_ui_component): don't do the creatable item stuff here * gui/e-tasks.c (e_tasks_set_ui_component): don't do the creatable item stuff here (e_tasks_destroy): no need to destroy creatable item handler * gui/e-calendar-table.c (e_calendar_table_set_status_message): comment out temporarily * gui/e-calendar-view.c (e_calendar_view_set_status_message): ditto * gui/calendar-component.c: switch to using per component view information; don't listen for config changes to the primary selection and selection so that different windows can have different calendar selections; use a local creatable items handler so that the new button is associated with the right window when setting the default times * gui/tasks-component.c: ditto svn path=/trunk/; revision=25566
* only set the preview zone if the preview has been created (setup_widgets):JP Rosevear2004-04-211-3/+3
| | | | | | | | | | 2004-04-21 JP Rosevear <jpr@ximian.com> * gui/e-tasks.c (set_timezone): only set the preview zone if the preview has been created (setup_widgets): set the default zone for the preview pane svn path=/trunk/; revision=25562
* Fixes #55797JP Rosevear2004-04-211-2/+11
| | | | | | | | | | | | 2004-04-21 JP Rosevear <jpr@ximian.com> Fixes #55797 * gui/calendar-component.c (create_new_event): force an all day event if we are viewing the week, month or list view, which mimics double click in the view svn path=/trunk/; revision=25561
* ** Fixes #57034.Not Zed2004-04-211-5/+16
| | | | | | | | | | | | | | | | | | 2004-04-21 Not Zed <NotZed@Ximian.com> ** Fixes #57034. * gui/dialogs/calendar-setup.c (create_new_source_with_group): NULL out source if we can't open the calendar. (source_group_menu_add_groups): if the group is readonly, then desensitise it. (source_group_menu_add_groups): return the first non-readonly calendar index. (calendar_setup_new_calendar): set the group history to the first non-readonly group. (calendar_setup_new_task_list): same. svn path=/trunk/; revision=25556
* Fix crash when gconf value are not existing in the gconf database.Frédéric Crozat2004-04-211-3/+5
| | | | | | | | * gui/migration.c: (migrate_calendars): Fix crash when gconf value are not existing in the gconf database. svn path=/trunk/; revision=25555
* fix for user_creatable_items api changes.Not Zed2004-04-212-2/+2
| | | | | | | | | | | | 2004-04-21 Not Zed <NotZed@Ximian.com> * gui/gnome-cal.c (gnome_calendar_set_ui_component): fix for user_creatable_items api changes. * gui/e-tasks.c (e_tasks_set_ui_component): fix for user_creatable_items api changes. svn path=/trunk/; revision=25547
* Update the calendar to use the icon theme through the EIconFactory objectMichael Terry2004-04-1919-188/+212
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-19 Michael Terry <mike@mterry.name> * gui/GNOME_Evolution_Calendar.server.in.in: * gui/calendar-commands.c: * gui/calendar-component.c: * gui/e-calendar-table.c: * gui/e-calendar-view.c: * gui/e-day-view-main-item.c: * gui/e-day-view-top-item.c: * gui/e-day-view.c: * gui/e-day-view.h: * gui/e-itip-control.c: * gui/e-timezone-entry.c: * gui/e-week-view-event-item.c: * gui/e-week-view.c: * gui/e-week-view.h: * gui/tasks-component.c: * gui/alarm-notify/alarm-notify-dialog.c: * gui/alarm-notify/alarm-queue.c: * gui/dialogs/comp-editor.c: * gui/dialogs/event-editor.c: Update the calendar to use the icon theme through the EIconFactory object in e-util svn path=/trunk/; revision=25515
* take a range_selected boolean for internal use (gnome_calendar_set_view):JP Rosevear2004-04-191-19/+27
| | | | | | | | | | | | | | | 2004-04-19 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.c (set_view): take a range_selected boolean for internal use (gnome_calendar_set_view): use above (display_view): use priv->range_selected, we'll set it correctly before this (display_view_cb): only pass focus boolean (gnome_calendar_on_date_navigator_selection_changed): set the view so the view menu is accurate svn path=/trunk/; revision=25510
* Fixes #53124JP Rosevear2004-04-194-289/+557
| | | | | | | | | | | | | | 2004-04-18 JP Rosevear <jpr@ximian.com> Fixes #53124 * gui/e-tasks.c: remove preview pieces, they are in their own class now; use the new class for preview * gui/e-cal-component-preview.[hc]: implement a preview area for tasks and events svn path=/trunk/; revision=25505
* include libecal/e-cal-component.h to kill implicit declaration ofTrent Lloyd2004-04-191-0/+1
| | | | | | | | | | 2004-04-17 Trent Lloyd <lathiat@sixlabs.org> * gui/e-calendar-view.c: include libecal/e-cal-component.h to kill implicit declaration of e_cal_component_get_recur_id_as_string at line 869. svn path=/trunk/; revision=25504
* Fixes #52271Gary Ekker2004-04-161-1/+6
| | | | | | | | | | | | 2004-04-15 Gary Ekker <gekker@novell.com> Fixes #52271 * gui/e-cal-model-tasks.c: (set_percent): shouldn't call ensure_task_not_complete here, it removes the percent property that we just set. svn path=/trunk/; revision=25491
* don't actually check if start date is after due date, its perfectly validJP Rosevear2004-04-161-16/+0
| | | | | | | | | | 2004-04-15 JP Rosevear <jpr@ximian.com> * gui/dialogs/task-page.c (task_page_fill_component): don't actually check if start date is after due date, its perfectly valid for that to occur svn path=/trunk/; revision=25488
* Fixes #53903JP Rosevear2004-04-152-4/+19
| | | | | | | | | | | | | | | 2004-04-15 JP Rosevear <jpr@ximian.com> Fixes #53903 * gui/dialogs/meeting-page.c (meeting_page_fill_widgets): show/hide add button properly (change_clicked_cb): ditto * gui/dialogs/comp-editor.c (needs_send_cb): call back when "needs_send" (page_changed_cb): use accessor svn path=/trunk/; revision=25482
* stop listening to changes since we are just going to save and closeJP Rosevear2004-04-151-34/+15
| | | | | | | | | | | | | 2004-04-15 JP Rosevear <jpr@ximian.com> * gui/dialogs/comp-editor.c (save_comp): stop listening to changes since we are just going to save and close (save_cmd): remove, its ok since we are toasting menus shortly anyhow (obj_modified_cb): no need to look at update flag (obj_removed_cb): ditto svn path=/trunk/; revision=25481
* move the calendar publishing initialization from createControls to main.cGary Ekker2004-04-154-34/+25
| | | | | | | | | | | | | | | | | 2004-04-15 Gary Ekker <gekker@novell.com> * gui/calendar-component.h: move the calendar publishing initialization from createControls to main.c * gui/calendar-component.c: (create_controls): Ditto * gui/main.c: (initialize): Ditto * gui/dialogs/cal-prefs-dialog.c: (url_list_changed): remove a gfree that was freeing a before it should have been. Also removed cruft from a previous attempt to fix the crash. svn path=/trunk/; revision=25480
* added some spacing.Rodrigo Moya2004-04-151-0/+1
| | | | | | | | | 2004-04-15 Rodrigo Moya <rodrigo@ximian.com> * gui/dialogs/select-source-dialog.c (select_source_dialog): added some spacing. svn path=/trunk/; revision=25477
* use the DTSTART for the recur-id if it's not available.Rodrigo Moya2004-04-152-2/+20
| | | | | | | | | 2004-04-15 Rodrigo Moya <rodrigo@ximian.com> * gui/e-calendar-view.c (e_calendar_view_delete_selected_occurrence): use the DTSTART for the recur-id if it's not available. svn path=/trunk/; revision=25476
* fix missing parameters, wow that was a mess.Larry Ewing2004-04-153-1225/+1078
| | | | | | | | | | | | | | | | 2004-04-14 Larry Ewing <lewing@ximian.com> * gui/calendar-component.c (selector_tree_drag_motion): fix missing parameters, wow that was a mess. * gui/dialogs/calendar-setup.glade: add the new "new" dialogs, remove the old druids. * gui/dialogs/calendar-setup.c (calendar_setup_new_calendar): use the new dialogs, colors are still not functional. (calendar_setup_new_task_list): use the new dialogs, with no colors. svn path=/trunk/; revision=25474
* Fixes #56613JP Rosevear2004-04-153-24/+28
| | | | | | | | | | | | | | | | | | | | | | 2004-04-14 JP Rosevear <jpr@ximian.com> Fixes #56613 * gui/gnome-cal.h: add proto * gui/gnome-cal.c (client_cal_opened_cb): key the clients by uid (backend_died_cb): ditto (gnome_calendar_add_source): ditto (gnome_calendar_remove_source): use remove_source_by_uid (gnome_calendar_remove_source_by_uid): new function to remove a source by uid (gnome_calendar_set_default_source): key the clients by uid * gui/calendar-component.c (update_task_selection): the source could be NULL if the source was deleted rather than unchecked (update_primary_task_selection): look at the task source list svn path=/trunk/; revision=25469
* Same as below for the tasks component.Not Zed2004-04-142-5/+24
| | | | | | | | | | | | | 2004-04-14 Not Zed <NotZed@Ximian.com> * gui/tasks-component.c (impl_createControls): Same as below for the tasks component. * gui/calendar-component.c (impl_createControls): add the info area label widget to the sidebar control (c&p the addressbook code). svn path=/trunk/; revision=25451
* Fixes #56628Gary Ekker2004-04-131-2/+10
| | | | | | | | | | | 2004-04-12 Gary Ekker <gekker@novell.com> Fixes #56628 * gui/calendar-component.c (create_new_event): Add informational dialog when user attempts event creation in read-only calendar. svn path=/trunk/; revision=25432
* Fixed to use e-passwords.Gary Ekker2004-04-114-61/+105
| | | | | | | | | | | | | | | | | 2004-04-09 Gary Ekker <gekker@novell.com> * gui/dialogs/url-editor-dialog.c: Fixed to use e-passwords. * gui/dialogs/cal-prefs-dialog.c: Fixed crash and bugs created by changes made for instant apply. * gui/itip-utils.c: Fixed to use e-passwords. * gui/e-pub-utils.c: Fixed to use e-passwords. (just_published): Fixed error in logic. (e_pub_publish): Fixed crash if ESource is NULL. svn path=/trunk/; revision=25410
* EABDestination -> EDestination. (e_delegate_dialog_get_delegate): same.Chris Toshok2004-04-104-47/+47
| | | | | | | | | | | | | | | | | | | | | | | | 2004-04-09 Chris Toshok <toshok@ximian.com> * gui/dialogs/e-delegate-dialog.c (e_delegate_dialog_construct): EABDestination -> EDestination. (e_delegate_dialog_get_delegate): same. (e_delegate_dialog_get_delegate_name): same. * gui/dialogs/alarm-options.c (alarm_to_malarm_widgets): EABDestination -> EDestination. (malarm_widgets_to_alarm): same. * gui/e-select-names-editable.c (e_select_names_editable_get_address): EABDestination -> EDestination. (e_select_names_editable_get_name): same. * gui/e-meeting-list-view.c (process_section): EABDestination -> EDestination. (select_names_ok_cb): same. svn path=/trunk/; revision=25391
* Create an EUserCreatableItemsHandler for the view if there isn't one yet,Dan Winship2004-04-095-4/+43
| | | | | | | | | | | | | | | | | | | | | | | | * gui/gnome-cal.c (gnome_calendar_set_ui_component): Create an EUserCreatableItemsHandler for the view if there isn't one yet, and then activate it. (gnome_calendar_destroy): destroy it. * gui/calendar-component.c (impl__get_userCreatableItems): add object/folder flags to items. * gui/e-tasks.c (e_tasks_set_ui_component): Create an EUserCreatableItemsHandler for the view if there isn't one yet, and then activate it. (e_tasks_destroy): destroy it. * gui/tasks-component.c (impl__get_userCreatableItems): add object/folder flags. Change "Task List" to "Tasks Group" per new specs. * gui/calendar-commands.c (calendar_control_deactivate): clear the GnomeCal's ui_component rather than setting it again svn path=/trunk/; revision=25382
* Fixed to be instant-apply.Jeffrey Stedfast2004-04-081-358/+302
| | | | | | | | 2004-04-07 Jeffrey Stedfast <fejj@ximian.com> * gui/dialogs/cal-prefs-dialog.c: Fixed to be instant-apply. svn path=/trunk/; revision=25360
* 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
* remove extra set view params (gnome_calendar_set_view): simplify, just setJP Rosevear2004-04-089-170/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-07 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.c (gnome_calendar_dayjump): remove extra set view params (gnome_calendar_set_view): simplify, just set the current view id and let the gal view stuff do the rest (display_view): modify from set_view, don't set the view id here or update the default view config setting (display_view_cb): update the date navigator (gnome_calendar_construct): kill the default view stuff, gal view handles that (gnome_calendar_on_date_navigator_selection_changed): use display_view * gui/e-week-view.c (time_range_changed_cb): ditto (e_week_view_set_selected_time_range): just set the selection, don't fool with the base date (e_week_view_on_button_press): do a full day event if double clicked on * gui/e-day-view.c (time_range_changed_cb): only set the selection if we can't preserve an existing selection * gui/control-factory.c (set_prop): * gui/calendar-config.h: remove protos * gui/calendar-config.c: remove default view calls * gui/calendar-commands.c (show_day_view_clicked): remove extra params to gnome_calendar_set_view (show_work_week_view_clicked): ditto (show_week_view_clicked): ditto (show_month_view_clicked): ditto (show_list_view_clicked): ditto * gui/apps_evolution_calendar.schemas.in.in: remove default view setting, gal view remembers this for us svn path=/trunk/; revision=25353
* only select one dayJP Rosevear2004-04-061-2/+2
| | | | | | | | 2004-04-05 JP Rosevear <jpr@ximian.com> * gui/e-week-view.c (time_range_changed_cb): only select one day svn path=/trunk/; revision=25321
* removed commented code.Rodrigo Moya2004-04-051-34/+0
| | | | | | | | 2004-04-05 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/alarm-queue.c: removed commented code. svn path=/trunk/; revision=25316
* removed useless call to set the POA after construction.Rodrigo Moya2004-04-051-1/+0
| | | | | | | | | 2004-04-05 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/notify-main.c (main): removed useless call to set the POA after construction. svn path=/trunk/; revision=25315
* Fixes #56316Rodrigo Moya2004-04-056-1/+132
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-05 Rodrigo Moya <rodrigo@ximian.com> Fixes #56316 * gui/dialogs/comp-editor-page.[ch]: added "fill_timezones" virtual method to CompEditorPage class. (comp_editor_page_fill_timezones): new function. (comp_editor_page_class_init): initialize new virtual method. * gui/dialogs/event-page.c (event_page_fill_timezones, event_page_class_init): * gui/dialogs/task-page.c (task_page_fill_timezones, task_page_class_init): * gui/dialogs/task-details-page.c (task_details_page_fill_timezones, task_details_page_class_init): implemented new virtual method for pages dealing with timezones. * gui/dialogs/comp-editor.c (save_comp): call the "fill_timezones" method on all pages, and call... (send_timezone): ...this function for each hash table item. svn path=/trunk/; revision=25314
* set the default timezone on all clients when opened.Rodrigo Moya2004-04-021-0/+2
| | | | | | | | | 2004-04-01 Rodrigo Moya <rodrigo@ximian.com> * gui/gnome-cal.c (client_cal_opened_cb): set the default timezone on all clients when opened. svn path=/trunk/; revision=25280
* fix small typoRadek Doulik2004-04-011-1/+1
| | | | | | | | | 2004-04-01 Radek Doulik <rodo@ximian.com> * gui/e-calendar-view.c (e_calendar_view_delete_selected_occurrence): fix small typo svn path=/trunk/; revision=25279
* return correct values (boolean).Rodrigo Moya2004-04-011-2/+2
| | | | | | | | | 2004-04-01 Rodrigo Moya <rodrigo@ximian.com> * gui/dialogs/recur-comp.c (recur_component_dialog): return correct values (boolean). svn path=/trunk/; revision=25276
* make sure we unset the float value for the panes if converting from 1.4JP Rosevear2004-04-011-1/+1
| | | | | | | | | 2004-03-31 JP Rosevear <jpr@ximian.com> * gui/migration.c (migrate_calendars): make sure we unset the float value for the panes if converting from 1.4 and earlier svn path=/trunk/; revision=25274
* Fixes #56120JP Rosevear2004-04-011-2/+2
| | | | | | | | | | | | 2004-03-31 JP Rosevear <jpr@ximian.com> Fixes #56120 * gui/gnome-cal.c (append_category_cb): update the correct element (client_categories_changed_cb): pass the array, not a reference to it svn path=/trunk/; revision=25273
* fixed documentation typos.Rodrigo Moya2004-04-011-2/+2
| | | | | | | | 2004-03-31 Rodrigo Moya <rodrigo@ximian.com> * gui/gnome-cal.c: fixed documentation typos. svn path=/trunk/; revision=25264
* Replaced add_event_source with add_source and passed the VEVENT type asSarfraaz Ahmed2004-03-311-1/+1
| | | | | | | | | 2004-03-31 Sarfraaz Ahmed <asarfraaz@novell.com> * gui/config-control.c (set_prop) : Replaced add_event_source with add_source and passed the VEVENT type as argument. svn path=/trunk/; revision=25263
* add remote calendar setup page to task list setup assistant and editWilliam Jon McCann2004-03-312-23/+408
| | | | | | | | | | | | 2004-03-30 William Jon McCann <mccann@jhu.edu> * gui/dialogs/calendar-setup.glade: * gui/dialogs/calendar-setup.c (new_task_list_finish) (calendar_setup_new_task_list, calendar_setup_edit_task_list): add remote calendar setup page to task list setup assistant and edit dialog. Remove separators from dialog. svn path=/trunk/; revision=25244
* call drag_finish properly. (selector_tree_drag_motion): set the dragLarry Ewing2004-03-301-61/+56
| | | | | | | | | | | | | | | | | | | 2004-03-29 Larry Ewing <lewing@ximian.com> * gui/component/addressbook-component.c (selector_tree_drag_data_received): call drag_finish properly. (selector_tree_drag_motion): set the drag status properly. 2004-03-29 Larry Ewing <lewing@ximian.com> * gui/calendar-component.c (selector_tree_drag_data_received): deal with the action type a properly. in the normal case. * gui/calendar-component.c (selector_tree_drag_data_received): call drag_finish properly, change the uid. (selector_tree_drag_motion): set drag status properly. svn path=/trunk/; revision=25240
* don't require client to be loaded in order to remove the sourceWilliam Jon McCann2004-03-302-0/+4
| | | | | | | | | | 2004-03-29 William Jon McCann <mccann@jhu.edu> * gui/tasks-component.c (delete_task_list_cb): * gui/calendar-component.c (delete_calendar_cb): don't require client to be loaded in order to remove the source svn path=/trunk/; revision=25234
* create On The Web source group for tasks.William Jon McCann2004-03-301-1/+16
| | | | | | | | | 2004-03-29 William Jon McCann <mccann@jhu.edu> * gui/migration.c (create_task_sources, migrate_tasks): create On The Web source group for tasks. svn path=/trunk/; revision=25230
* Naming issue, Go to Date -> Select Date, Go to Today -> Select today.Hari Prasad Nadig2004-03-292-4/+4
| | | | | | | | | | | 2004-03-22 Hari Prasad Nadig <hp@ndeepak.info> * gui/goto-dialog.glade: Naming issue, Go to Date -> Select Date, Go to Today -> Select today. Solves 48293 * gui/e-calendar-view.c: gives aid to the above change. svn path=/trunk/; revision=25224
* removed misplaced return statement that prevented the rest of the objectsRodrigo Moya2004-03-292-1/+4
| | | | | | | | | | 2004-03-29 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/alarm-queue.c (query_objects_changed_cb): removed misplaced return statement that prevented the rest of the objects list to be processed. svn path=/trunk/; revision=25222
* remove the EVENT_MOVE signal which was binded to Alt + Arrows. ditto.Kidd Wang2004-03-294-95/+49
| | | | | | | | | | | | | | | | | * gui/e-calendar-view.c: (e_calendar_view_class_init): remove the EVENT_MOVE signal which was binded to Alt + Arrows. * gui/e-calendar-view.h: ditto. * gui/e-day-view.c: (e_day_view_class_init), (e_day_view_do_key_press), (e_day_view_event_move): handle Alt + Arrows in the more general place e_day_view_do_key_press so that we can avoid the conflicting accessible key. When an appointment is selected, pressing Alt + Arrows causes it to be moved around. Otherwise, pressing Alt + LEFT/RIGHT will move the focus to the same day in the previous/next week. * gui/e-week-view.c: (e_week_view_class_init), (e_week_view_event_move), (e_week_view_do_key_press): ditto. svn path=/trunk/; revision=25219
* 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
* no need to explicitly add the contacts group, the create function doesJP Rosevear2004-03-271-7/+0
| | | | | | | | | 2004-03-26 JP Rosevear <jpr@ximian.com> * gui/migration.c (migrate_calendars): no need to explicitly add the contacts group, the create function does this properly svn path=/trunk/; revision=25203
* make sure we always sync the source list and just do it once; unref theJP Rosevear2004-03-271-6/+13
| | | | | | | | | | | 2004-03-26 JP Rosevear <jpr@ximian.com> * gui/migration.c (migrate_calendars): make sure we always sync the source list and just do it once; unref the sources we get (migrate_tasks): make sure we always sync the source list and just do it once svn path=/trunk/; revision=25202
* Fixes #55648JP Rosevear2004-03-276-246/+293
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-26 JP Rosevear <jpr@ximian.com> Fixes #55648 * gui/print.c (print_todo_details): get the default from the model * gui/gnome-cal.h: remove and update protos * gui/gnome-cal.c (update_query): the clients and client_list members are now arrays of source types (setup_widgets): default the query to everything for tasks, cast the config items (gnome_calendar_init): init all the client hashs (gnome_calendar_destroy): clean them up, clean up all categories (client_cal_opened_cb): handle based on source type (append_category_cb): don't track the size in the closure (client_categories_changed_cb): do all the merging here (backend_died_cb): handle based on source type (gnome_calendar_construct): we don't special case the task stuff any more (gnome_calendar_get_default_client): return the default of the current view (gnome_calendar_add_source): take a source type argument and append accordingly (gnome_calendar_remove_source): similar, but remove accordingly (gnome_calendar_set_default_source): take a source type argument and set the default accordingly (gnome_calendar_new_task): use the default of the task model * gui/e-calendar-view.c (e_calendar_view_add_event): kill warning * gui/calendar-component.c (update_uris_for_selection): pass source type when adding/removing (update_uri_for_primary_selection): ditto (update_task_selection): make sure we show the correct list of tasks (update_primary_task_selection): make sure we track the primary task correctly (delete_calendar_cb): pass source type when removing (config_primary_selection_changed_cb): config listener callback for tasks (config_tasks_selection_changed_cb): ditto (impl_createControls): load the initial task selection, listen for changes (calendar_component_init): get the source lists * gui/calendar-commands.c (sensitize_taskpad_commands): get the task pad and then the default client from that svn path=/trunk/; revision=25201
* 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
* Fixes #53499JP Rosevear2004-03-268-125/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-25 JP Rosevear <jpr@ximian.com> Fixes #53499 * gui/gnome-cal.c (setup_widgets): don't give the state file to the list view (set_view): ensure that if the list view was in custom mode it stays that way (display_view_cb): attach to the etable of the list view (gnome_calendar_setup_view_menus): use an etable gal view for the list view and don't set the view twice * gui/e-tasks.c (e_tasks_setup_view_menus): the instance should no longer be per task uri since all the uris are shown together * gui/e-cal-list-view.h: update/add protos * gui/e-cal-list-view.etspec: limit the available columns to what product design agreed on * gui/e-calendar-table.etspec: ditto * gui/e-cal-list-view.c (e_cal_list_view_class_init): ignore update query calls (e_cal_list_view_load_state): make public (e_cal_list_view_save_state): ditto (setup_e_table): don't handle state saving ourselves (e_cal_list_view_construct): ditto (e_cal_list_view_new): ditto (e_cal_list_view_destroy): ditto * gui/calendar-view.c (calendar_view_get_type_code): we don't handle the list view here * gui/calendar-view-factory.c (calendar_view_factory_get_type_code): we don't handle the list view here (calendar_view_factory_get_title): ditto svn path=/trunk/; revision=25185
* don't create queries for the clients that are not loaded yet.Rodrigo Moya2004-03-251-0/+4
| | | | | | | | | 2004-03-24 Rodrigo Moya <rodrigo@ximian.com> * gui/gnome-cal.c (update_query): don't create queries for the clients that are not loaded yet. svn path=/trunk/; revision=25171
* remove debug code that slipped inJP Rosevear2004-03-251-2/+1
| | | | | | | | | 004-03-24 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.c (client_cal_opened_cb): remove debug code that slipped in svn path=/trunk/; revision=25170
* Use ngettext for handling plural forms throughout (fixes bug 53464).Danilo Šegan2004-03-243-57/+31
| | | | svn path=/trunk/; revision=25168
* Fixes #51948JP Rosevear2004-03-242-110/+24
| | | | | | | | | | | | | | | | 2004-03-23 JP Rosevear <jpr@ximian.com> Fixes #51948 * gui/dialogs/meeting-page.c (button_press_event): compile this again, determine the row with a different method (button_press_event): pass mpage (meeting_page_construct): listen for button press event * gui/e-meeting-list-view.c: remove commit that wasn't supposed to go in svn path=/trunk/; revision=25167
* fix buildChris Toshok2004-03-241-1/+1
| | | | svn path=/trunk/; revision=25163
* make the flow control correctJP Rosevear2004-03-241-4/+3
| | | | | | | | 004-03-23 JP Rosevear <jpr@ximian.com> * gui/e-calendar-view.c: make the flow control correct svn path=/trunk/; revision=25162
* ensure that only one Personal calendar/task list gets created when movingJP Rosevear2004-03-241-9/+15
| | | | | | | | | | 2004-03-23 JP Rosevear <jpr@ximian.com> * gui/migration.c (create_calendar_sources, create_task_sources): ensure that only one Personal calendar/task list gets created when moving between minor versions svn path=/trunk/; revision=25160
* remove unused variableJP Rosevear2004-03-244-4/+5
| | | | | | | | | | | | | | | | | | 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
* For bug#53417Umesh Tiwari2004-03-241-0/+1
| | | | | | | | | | | 2004-03-23 Umesh Tiwari <tiwariumesh232@rediffmaiil.com> For bug#53417 * gui/e-tasks.c: Clear the preview panel after the last task is deleted. svn path=/trunk/; revision=25158
* get the mail alarm description message from "malarm_description" insteadAlfred Peng2004-03-232-4/+8
| | | | | | | | | | | | | | | | | 2004-03-23 Alfred Peng <alfred.peng@sun.com> * gui/dialogs/alarm-options.c (malarm_widgets_to_alarm): get the mail alarm description message from "malarm_description" instead of "dalarm_description". 2004-03-23 Alfred Peng <alfred.peng@sun.com> * gui/alarm-notify/alarm-queue.c (audio_notification): If there is no attachment for a audio reminder, only a message window shows up. Get a beep sound even without attachment for audio reminder. svn path=/trunk/; revision=25154
* get the UID from the server on newly created events and set theRodrigo Moya2004-03-221-2/+67
| | | | | | | | | | 2004-03-22 Rodrigo Moya <rodrigo@ximian.com> * gui/e-calendar-view.c (e_calendar_view_add_event): get the UID from the server on newly created events and set the ECalComponent's UID to that, for further operations. svn path=/trunk/; revision=25144
* Fixes #55716JP Rosevear2004-03-203-1/+97
| | | | | | | | | | | 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
* if gnome_calendar_add_event_source fails, don't add the client to theRodrigo Moya2004-03-201-2/+2
| | | | | | | | | | 2004-03-19 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-component.c (update_uris_for_selection): if gnome_calendar_add_event_source fails, don't add the client to the internal client list. svn path=/trunk/; revision=25130
* compare ecalcomponents, not icalcomponents (the compare func is borked),JP Rosevear2004-03-192-17/+25
| | | | | | | | | | | | | | | 2004-03-19 JP Rosevear <jpr@ximian.com> * gui/e-day-view.c (process_component): compare ecalcomponents, not icalcomponents (the compare func is borked), check recurrence changes better (e_day_view_init): just use the model the parent creates * gui/e-week-view.c (process_component): create the temporary item from the correct icalcomp (e_week_view_init): just use the model the parent creates svn path=/trunk/; revision=25129
* create an ESourceSelector instead of a ESourceOptionMenu, to be consistentRodrigo Moya2004-03-191-8/+18
| | | | | | | | | | | | | 2004-03-18 Rodrigo Moya <rodrigo@ximian.com> * gui/dialogs/select-source-dialog.c (select_source_dialog): create an ESourceSelector instead of a ESourceOptionMenu, to be consistent with the other components, and create a scrolled window to hold the source selector. (primary_selection_changed_cb): callback for "primary_selection_changed" signal in the ESourceSelector. svn path=/trunk/; revision=25120
* Fix #51187 on bugzilla of ximian If "alarms" or "alarms->alarms" is NULLAlfred Peng2004-03-181-30/+33
| | | | | | | | | | | | | | 2004-03-18 Alfred Peng <alfred.peng@sun.com> * Fix #51187 on bugzilla of ximian * gui/alarm-notify/alarm-queue.c (query_objects_changed_cb): If "alarms" or "alarms->alarms" is NULL after querying a calendar for the alarms of a particular object, the reuse of "cqa" will probably cause evolution-alarm-notify to crash. So remove "cqa" when "alarms" or "alarms->alarms" is NULL. Otherwise update it. svn path=/trunk/; revision=25112
* Capitalized words changed. Solves 48115.hpnadig2004-03-173-7/+7
| | | | | | | | | | | | 2004-03-17 hpnadig <hp@ndeepak.info> * gui/dialogs/task-page.glade: Capitalized words changed. Solves 48115. * gui/dialogs/task-details-page.glade: s/Date Completed/Date completed. * gui/e-calendar-table.etspec: Capitalization checked. Solves 48130. svn path=/trunk/; revision=25099
* Fixes #55292Gary Ekker2004-03-171-2/+3
| | | | | | | | | | | 2004-03-17 Gary Ekker <gekker@novell.com> Fixes #55292 * gui/e-pub-utils.c (e_pub_publish): fix a crash when trying to publish a NULL component svn path=/trunk/; revision=25095
* new dialog for allowing the user to select a source.Rodrigo Moya2004-03-174-69/+135
| | | | | | | | | | | | | | | 2004-03-16 Rodrigo Moya <rodrigo@ximian.com> * gui/dialogs/select-source-dialog.[ch]: new dialog for allowing the user to select a source. * gui/dialogs/copy-source-dialog.c (copy_source_dialog): use the select_source_dialog function to ask user for the source to use. (source_selected_cb): removed unneeded function. * gui/dialogs/Makefile.am: added new files. svn path=/trunk/; revision=25093
* check if the selected event has its associated ECalModelComponent.Rodrigo Moya2004-03-171-1/+1
| | | | | | | | | | 2004-03-16 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-commands.c (calendar_control_sensitize_calendar_commands): check if the selected event has its associated ECalModelComponent. svn path=/trunk/; revision=25092
* set the search query (e_tasks_init): set the query to be #t by defaultJP Rosevear2004-03-162-3/+9
| | | | | | | | | | | | 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
* use right cast macroJP Rosevear2004-03-161-1/+1
| | | | | | | | | 2004-03-15 JP Rosevear <jpr@ximian.com> * gui/dialogs/comp-editor-page.c (comp_editor_page_fill_widgets): use right cast macro svn path=/trunk/; revision=25077
* Rename e-cal-view to e-calendar-view and fix includesJP Rosevear2004-03-1611-1748/+11
| | | | | | | | | | | | | | | 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-1611-672/+1061
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fixes #48112Rodrigo Moya2004-03-151-3/+3
| | | | | | | | | | | | 2004-03-15 Rodrigo Moya <rodrigo@ximian.com> Fixes #48112 * gui/calendar-commands.c (calendar_control_sensitize_calendar_commands): disable the 'Delete' menu item on recurring meetings, since 'Delete all Occurrences' already deals with that. svn path=/trunk/; revision=25067
* Fixes #35577Rodrigo Moya2004-03-152-12/+44
| | | | | | | | | | | | | 2004-03-15 Rodrigo Moya <rodrigo@ximian.com> Fixes #35577 * gui/e-cal-view.c (e_calendar_view_delete_selected_occurrence): if the component is an instance, pass the recurrence ID to e_cal_remove_object_with_mod. Also, make the user confirm the deletion, and send the cancellation message for meetings. svn path=/trunk/; revision=25066
* 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
* add a call to e_cal_component_commit_sequence since we have changed theKidd Wang2004-03-121-5/+13
| | | | | | | | | | | 2004-03-09 Kidd Wang <kidd.wang@sun.com> * gui/e-day-view.c: (e_day_view_finish_long_event_resize): add a call to e_cal_component_commit_sequence since we have changed the property of the component. Whether the new event is all day should also be set properly according to the value of the original event. svn path=/trunk/; revision=25039
* Fixes #48106Rodrigo Moya2004-03-091-1/+2
| | | | | | | | | | 2004-03-08 Rodrigo Moya <rodrigo@ximian.com> Fixes #48106 * gui/dialogs/alarm-page.glade: s/Send an Email/Send an email. svn path=/trunk/; revision=24994
* set a GConf listener callback to list for changes in selected calendars.Rodrigo Moya2004-03-052-1/+93
| | | | | | | | | | | | | 2004-03-05 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/alarm-notify.c (alarm_notify_init): set a GConf listener callback to list for changes in selected calendars. (alarm_notify_finalize): remove the GConf notification listener. (conf_changed_cb): callback to react on configuration changes. Process the new selected calendars and remove the unselected ones. (process_removal_in_hash): callback to remove unselected calendars. svn path=/trunk/; revision=24973
* Fixes #50294Rodrigo Moya2004-03-051-0/+33
| | | | | | | | | | | | | 2004-03-04 Rodrigo Moya <rodrigo@ximian.com> Fixes #50294 * gui/e-tasks.c (setup_widgets): connect to "model_rows_deleted" signal on the ETable's model. (model_rows_deleted_cb): callback for clearing the preview widget when the currently selected task is removed. svn path=/trunk/; revision=24969
* set the sensitivity correctly, depending on whether the command applied toRodrigo Moya2004-03-052-17/+19
| | | | | | | | | | | | 2004-03-04 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-commands.c (calendar_control_sensitize_calendar_commands): set the sensitivity correctly, depending on whether the command applied to the currently selected event or the default client. (calendar_control_activate): make sure we start with the menu items correctly enabled/disabled. svn path=/trunk/; revision=24968
* Fixes #53496Rodrigo Moya2004-03-051-0/+2
| | | | | | | | | | | 2004-03-04 Rodrigo Moya <rodrigo@ximian.com> Fixes #53496 * gui/dialogs/cal-prefs-dialog.glade: set the same spacing for all tabs in the notebook. svn path=/trunk/; revision=24966
* always add the page.Rodrigo Moya2004-03-042-17/+11
| | | | | | | | | | | | | 2004-03-04 Rodrigo Moya <rodrigo@ximian.com> * gui/dialogs/comp-editor.c (comp_editor_append_page): always add the page. * gui/dialogs/event-page.c (event_page_fill_widgets): continue filling up all other fields even if there are missing ones, and return the validation result. svn path=/trunk/; revision=24965
* don't make the dialog window sticky, the icon on the system tray alreadyRodrigo Moya2004-03-041-1/+0
| | | | | | | | | | 2004-03-04 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/alarm-notify-dialog.c (alarm_notify_dialog): don't make the dialog window sticky, the icon on the system tray already shows in all workspaces. svn path=/trunk/; revision=24963
* Fixes #54028Rodrigo Moya2004-03-041-1/+1
| | | | | | | | | | | 2004-03-04 Rodrigo Moya <rodrigo@ximian.com> Fixes #54028 * gui/alarm-notify/alarm-queue.c (query_objects_changed_cb): fixed the time range for the alarm query, to include the end of today. svn path=/trunk/; revision=24961
* Fixes #53137Rodrigo Moya2004-03-0410-21/+48
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-04 Rodrigo Moya <rodrigo@ximian.com> Fixes #53137 * gui/dialogs/comp-editor-page.[ch]: made fill_widgets virtual method return a gboolean. (comp_editor_page_fill_widgets): return value from virtual method implementation. * gui/dialogs/event-page.c (event_page_fill_widgets): * gui/dialogs/meeting-page.c (meeting_page_fill_widgets): * gui/dialogs/recurrence-page.c (recurrence_page_fill_widgets): * gui/dialogs/schedule-page.c (schedule_page_fill_widgets): * gui/dialogs/task-details-page.c (task_details_page_fill_widgets): * gui/dialogs/task-page.c (task_page_fill_widgets): * gui/dialogs/alarm-page.c (alarm_page_fill_widgets): return value, as expected from the virtual method signature. * gui/dialogs/comp-editor.c (comp_editor_append_page): dont add the page if there was an error calling the fill_widgets method. svn path=/trunk/; revision=24960
* 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
* added support for searching the location field also. (regen_query): takeRodrigo Moya2004-03-031-0/+6
| | | | | | | | | | 2004-03-02 Rodrigo Moya <rodrigo@ximian.com> * gui/cal-search-bar.c: added support for searching the location field also. (regen_query): take into account the new search field. svn path=/trunk/; revision=24940
* remove conduit dir creationJP Rosevear2004-03-031-1/+0
| | | | | | | | 2004-03-02 JP Rosevear <jpr@ximian.com> * gui/Makefile.am: remove conduit dir creation svn path=/trunk/; revision=24933
* add untested start of dnd support for source selector.Larry Ewing2004-03-021-0/+240
| | | | | | | | | 2004-03-02 Larry Ewing <lewing@ximian.com> * gui/calendar-component.c: add untested start of dnd support for source selector. svn path=/trunk/; revision=24931
* fix rampant double-freeing.Dan Winship2004-03-021-20/+8
| | | | | | * gui/alarm-notify/alarm-notify.c: fix rampant double-freeing. svn path=/trunk/; revision=24927
* pass the user list and returned icalcomponent to e_cal_send_objects().Rodrigo Moya2004-03-021-3/+5
| | | | | | | | | 2004-03-01 Rodrigo Moya <rodrigo@ximian.com> * gui/itip-utils.c (comp_server_send): pass the user list and returned icalcomponent to e_cal_send_objects(). svn path=/trunk/; revision=24926
* ignore the timezone info of all-day events.Kidd Wang2004-03-011-3/+3
| | | | | | | * gui/print.c: (print_date_label): ignore the timezone info of all-day events. svn path=/trunk/; revision=24919
* remove protoJP Rosevear2004-02-274-15/+8
| | | | | | | | | | | | | | | 2004-02-27 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.h: remove proto * gui/gnome-cal.c (set_query): rename from gnome_calendar_set_query and make static * gui/e-day-view.h: remove proto for dead function * gui/e-day-view.c: guard config.h include svn path=/trunk/; revision=24909
* Create the arrows in these widgets as GTK_SHADOW_NONE, since the defaultRodney Dawes2004-02-271-2/+2
| | | | | | | | | | | | 2004-02-26 Rodney Dawes <dobey@ximian.com> * gui/e-meeting-time-sel.c (e_meeting_time_selector_construct): Create the arrows in these widgets as GTK_SHADOW_NONE, since the default arrow type in GTK+ 2.x is flat triangle arrows, and shadow types are generally ignored for arrows anyway, and so we don't look ugly with themes that handle shadow types on arrows correctly svn path=/trunk/; revision=24902
* Fix the repo_id to include the evolution base versionRodney Dawes2004-02-271-1/+1
| | | | | | | | | 2004-02-26 Rodney Dawes <dobey@ximian.com> * gui/alarm-notify/GNOME_Evolution_Calendar_AlarmNotify.server.in.in: Fix the repo_id to include the evolution base version svn path=/trunk/; revision=24899
* make sure we unref the task pad client and the calendar clients areJP Rosevear2004-02-261-15/+6
| | | | | | | | | | 2004-02-26 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.c (client_cal_opened_cb): make sure we unref the task pad client and the calendar clients are unreffed by the hash table svn path=/trunk/; revision=24880
* fix float type pane position keys (we migrated these improperly in theJP Rosevear2004-02-251-0/+25
| | | | | | | | | | | | 2004-02-24 JP Rosevear <jpr@ximian.com> * gui/migration.c (migrate_calendars): fix float type pane position keys (we migrated these improperly in the past), just use the default value Fixes #53087 svn path=/trunk/; revision=24860
* remove the client from the queue also.Rodrigo Moya2004-02-191-0/+2
| | | | | | | | | 2004-02-18 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/alarm-notify.c (free_client_hash): remove the client from the queue also. svn path=/trunk/; revision=24790
* set the task pad client to NULL if opening it failed. Show more verboseRodrigo Moya2004-02-191-1/+19
| | | | | | | | | 2004-02-18 Rodrigo Moya <rodrigo@ximian.com> * gui/gnome-cal.c (client_cal_opened_cb): set the task pad client to NULL if opening it failed. Show more verbose status bar messages. svn path=/trunk/; revision=24780
* add 1 second to the last notification time, or we'll get many times theRodrigo Moya2004-02-181-0/+2
| | | | | | | | | 2004-02-18 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/alarm-queue.c (query_objects_changed_cb): add 1 second to the last notification time, or we'll get many times the same notification. svn path=/trunk/; revision=24772
* make copy & paste and drag & drop behave the same way described asKidd Wang2004-02-182-16/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/e-cal-view.c: (e_calendar_view_add_event), (clipboard_get_text_cb): make copy & paste and drag & drop behave the same way described as follows: In day view and work week view from main canvas to top canvas before copy or drag: short event after paste or drop: all-day event from main canvas to main canvas before copy or drag: short event after paste or drop: short event from top canvas to top canvas before copy or drag: all-day event after paste or drop: all-day event before copy or drag: long event after paste or drop: long event from top canvas to main canvas before copy or drag: all-day event after paste or drop: short event before copy or drag: long event after paste or drop: short event In week view, month view and list view life is pretty simple since there's no top canvas in these three views. We just get what we copy or drag after we perform paste or drop. svn path=/trunk/; revision=24770
* set the string length properly.Kidd Wang2004-02-181-2/+2
| | | | | | * gui/itip-utils.c: (itip_send_comp): set the string length properly. svn path=/trunk/; revision=24768
* removed buggy characters from menu items' texts.Rodrigo Moya2004-02-171-3/+3
| | | | | | | | | 2004-02-16 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/alarm-queue.c (tray_icon_clicked_cb): removed buggy characters from menu items' texts. svn path=/trunk/; revision=24752
* open the calendars asynchonously. (cal_opened_cb): callback forRodrigo Moya2004-02-171-5/+25
| | | | | | | | | | | 2004-02-16 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/alarm-notify.c (alarm_notify_add_calendar): open the calendars asynchonously. (cal_opened_cb): callback for "cal_opened" signal. Add the calendars to the alarm queue here. svn path=/trunk/; revision=24751
* get alarms since the last notification, only use current time when thereRodrigo Moya2004-02-171-4/+6
| | | | | | | | | | 2004-02-16 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/alarm-queue.c (query_objects_changed_cb): get alarms since the last notification, only use current time when there is no previous notification time. svn path=/trunk/; revision=24750
* set session restart style to RESTART_IF_RUNNING.Rodrigo Moya2004-02-171-1/+1
| | | | | | | | | 2004-02-16 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/notify-main.c (init_session): set session restart style to RESTART_IF_RUNNING. svn path=/trunk/; revision=24749
* no need to keep the master client. (init_session): just set the daemon'sRodrigo Moya2004-02-161-17/+20
| | | | | | | | | | | 2004-02-16 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/notify-main.c: no need to keep the master client. (init_session): just set the daemon's restart style, not the restart command. Connect to "save_yourself" signal on the session also. (save_session_cb): set the restart command here. svn path=/trunk/; revision=24748
* pass the user list to e_cal_send_objects().Rodrigo Moya2004-02-161-0/+1
| | | | | | | | | | | 2004-02-16 Rodrigo Moya <rodrigo@ximian.com> * gui/itip-utils.c (comp_server_send): pass the user list to e_cal_send_objects(). 2004-02-16 Rodrigo Moya <rodrigo@ximian.com> svn path=/trunk/; revision=24747
* Instead of saying "Select destination source", we now say "... calendar"Hans Petter Jansson2004-02-131-1/+7
| | | | | | | | | | 2004-02-12 Hans Petter Jansson <hpj@ximian.com> * gui/dialogs/copy-source-dialog.c (copy_source_dialog): Instead of saying "Select destination source", we now say "... calendar" or "... task list", based on object type. svn path=/trunk/; revision=24730
* rename from CONTACT_BASE_URI, and change to contacts:// to match e-d-s.Chris Toshok2004-02-131-3/+3
| | | | | | | | | | | 2004-02-12 Chris Toshok <toshok@ximian.com> * gui/migration.c (CONTACTS_BASE_URI): rename from CONTACT_BASE_URI, and change to contacts:// to match e-d-s. (create_calendar_contact_source): CONTACT -> CONTACTS. (create_calendar_sources): same. svn path=/trunk/; revision=24726
* See #51567 use "gtk_dialog_add_buttons" to change the response_id ofBruce Tao2004-02-121-2/+3
| | | | | | | | | | | 2004-02-13 Bruce Tao <bruce.tao@sun.com> See #51567 * gui/dialogs/delete-comp.c (delete_component_dialog): use "gtk_dialog_add_buttons" to change the response_id of button "YES" and "NO". svn path=/trunk/; revision=24719
* Fixes #53886Rodrigo Moya2004-02-121-10/+5
| | | | | | | | | | | | | | 2004-02-11 Rodrigo Moya <rodrigo@ximian.com> Fixes #53886 * gui/gnome-cal.c (gnome_calendar_paste_clipboard, gnome_calendar_delete_selection, gnome_calendar_cut_clipboard, gnome_calendar_copy_clipboard): removed g_assert_if_reached calls since we might get a different widget getting the focus. (get_focus_location): check the canvas's' focused item. svn path=/trunk/; revision=24707
* Fixes #53271Rodrigo Moya2004-02-112-6/+6
| | | | | | | | | | | | | 2004-02-11 Rodrigo Moya <rodrigo@ximian.com> Fixes #53271 * gui/calendar-component.c (delete_calendar_cb): remove the source from the GnomeCalendar widget also. * gui/tasks-component.c (delete_task_list_cb): ditto. svn path=/trunk/; revision=24705
* Fixes #53271Rodrigo Moya2004-02-113-3/+7
| | | | | | | | | | | | | 2004-02-11 Rodrigo Moya <rodrigo@ximian.com> Fixes #53271 * gui/calendar-component.c (delete_calendar_cb): remove the source from the GnomeCalendar widget also. * gui/tasks-component.c (delete_task_list_cb): ditto. svn path=/trunk/; revision=24704
* guarantee we do have some timezone before the time convertion.Harry Lu2004-02-111-0/+6
| | | | | | | * gui/print.c: (print_date_label): guarantee we do have some timezone before the time convertion. svn path=/trunk/; revision=24695
* don't add the clients to the internal hash/list here, just remove it ifRodrigo Moya2004-02-091-5/+18
| | | | | | | | | | | 2004-02-09 Rodrigo Moya <rodrigo@ximian.com> * gui/gnome-cal.c (client_cal_opened_cb): don't add the clients to the internal hash/list here, just remove it if opening the calendar fails. (gnome_calendar_add_event_source): add the client to the internal hash/list here. svn path=/trunk/; revision=24682
* refuse to update the task info if due date is before start date.Harry Lu2004-02-091-4/+38
| | | | | | | * gui/e-cal-model-tasks.c: (ecmt_set_value_at): refuse to update the task info if due date is before start date. svn path=/trunk/; revision=24676
* make OK button defaultRadek Doulik2004-02-061-1/+33
| | | | | | | | 2004-02-06 Radek Doulik <rodo@ximian.com> * gui/dialogs/calendar-setup.glade: make OK button default svn path=/trunk/; revision=24645
* Convert the calendar_config_get_timezone andJP Rosevear2004-02-0626-153/+51
| | | | | | | | | | | 2004-02-05 JP Rosevear <jpr@ximian.com> * Convert the calendar_config_get_timezone and icaltimezone_get_builtin_timezone pair to just calendar_config_get_icaltimezone, this also guarantees we will have some timezone (even if its just UTC) svn path=/trunk/; revision=24642
* add protoJP Rosevear2004-02-062-5/+20
| | | | | | | | | | | | | 004-02-05 JP Rosevear <jpr@ximian.com> * gui/calendar-config.h: add proto * gui/calendar-config.c (calendar_config_get_icaltimezone): return the icaltimezone based on the location and default to utc if we can't find one (calendar_config_get_hide_completed_tasks_sexp): use above svn path=/trunk/; revision=24641
* make failure not so draconian - make the color blackJP Rosevear2004-02-061-5/+1
| | | | | | | | | | | 2004-02-05 JP Rosevear <jpr@ximian.com> * gui/dialogs/cal-prefs-dialog.c (set_color_picker): make failure not so draconian - make the color black Fixes #53547 svn path=/trunk/; revision=24635
* add a mnemonic for the 'Go to Today' button in the 'Go To Date' dialog.Harry Lu2004-02-051-1/+1
| | | | | | | * gui/goto-dialog.glade: add a mnemonic for the 'Go to Today' button in the 'Go To Date' dialog. svn path=/trunk/; revision=24628
* Fixes #53388 added a check for NULLSarfraaz Ahmed2004-02-051-0/+2
| | | | | | | | 2004-02-05 Sarfraaz Ahmed <asarfraaz@novell.com> Fixes #53388 * gui/e-itip-control.c (get_next): added a check for NULL svn path=/trunk/; revision=24627
* Fixes #52970Rodrigo Moya2004-02-047-49/+60
| | | | | | | | | | | | | | | | | | | | | | | 2004-02-04 Rodrigo Moya <rodrigo@ximian.com> Fixes #52970 * idl/evolution-calendar.idl: added back the AlarmNotify interface. * gui/alarm-notify/GNOME_Evolution_Calendar_AlarmNotify.server.in.in: changed to have the AlarmNotify component be created via a factory. * gui/alarm-notify/alarm-notify.[ch]: converted to implement the AlarmNotify interface. * gui/alarm-notify/notify-main.c (main): register the factory with bonobo_generic_factory_new, not the object itself. Removed redundant call to bonobo_object_unref. Call e_passwords_shutdown on exit. * gui/alarm-notify/config-data.c (config_data_get_calendars_to_load): get only the selected calendars/task lists. svn path=/trunk/; revision=24613
* don't update the date navigator query nor the internal lists here...Rodrigo Moya2004-02-041-16/+9
| | | | | | | | | | 2004-02-04 Rodrigo Moya <rodrigo@ximian.com> * gui/gnome-cal.c (gnome_calendar_add_event_source): don't update the date navigator query nor the internal lists here... (client_cal_opened_cb): do it here. svn path=/trunk/; revision=24612
* display the exception message on error.Rodrigo Moya2004-02-041-1/+1
| | | | | | | | | 2004-02-04 Rodrigo Moya <rodrigo@ximian.com> * gui/main.c (launch_alarm_daemon_cb): display the exception message on error. svn path=/trunk/; revision=24611
* open calendars asynchronously. (client_cal_opened_cb): on success, add theRodrigo Moya2004-02-041-43/+39
| | | | | | | | | | 2004-02-04 Rodrigo Moya <rodrigo@ximian.com> * gui/gnome-cal.c (open_ecal): open calendars asynchronously. (client_cal_opened_cb): on success, add the clients to the models here. (gnome_calendar_add_event_source, gnome_calendar_construct): not here. svn path=/trunk/; revision=24610
* change the access key for adding a reminder from Alt+a to Alt+d to avoidHarry Lu2004-02-041-2/+56
| | | | | | | * gui/dialogs/alarm-page.glade: change the access key for adding a reminder from Alt+a to Alt+d to avoid conflict with the menuitem. svn path=/trunk/; revision=24604
* Fix a bug in evolution/calendar/gui/print.c: bound_text(). It does notYong Sun2004-02-041-6/+12
| | | | | | | | | | 2004-02-04 Yong Sun <Yong.Sun@sun.com> * gui/print.c: Fix a bug in evolution/calendar/gui/print.c: bound_text(). It does not break lines with the correct boundary of UTF-8 characters. So, for non-latin locales, it will cause printing issues. svn path=/trunk/; revision=24600
* Fix location of e-activity-handler.h #includeDan Winship2004-02-043-1/+3
| | | | | | | | | | | | * gui/tasks-component.h: Fix location of e-activity-handler.h #include * gui/Makefile.am (INCLUDES): add widgets/misc for e-activity-handler.h and e-task-bar.h * gui/dialogs/Makefile.am (INCLUDES): Likewise svn path=/trunk/; revision=24589
* remove dead filesJP Rosevear2004-01-312-1896/+0
| | | | | | | | 2004-01-30 JP Rosevear <jpr@ximian.com> * remove dead files svn path=/trunk/; revision=24545
* CV Fixes #51871Gary Ekker2004-01-301-0/+4
| | | | | | | | | | | CV Fixes #51871 * gui/dialogs/calendar-setup.c (calendar_setup_edit_calendar): add activate handler for name_entry (calendar_setup_edit_task_list): ditto : ---------------------------------------------------------------------- svn path=/trunk/; revision=24540
* remove extraneous ;JP Rosevear2004-01-301-2/+2
| | | | | | | | | | 2004-01-30 JP Rosevear <jpr@ximian.com> * gui/tasks-component.c (create_new_todo): remove extraneous ; Fixes #53418 svn path=/trunk/; revision=24536
* don't set the group to be read only until after the source is added.JP Rosevear2004-01-301-2/+3
| | | | | | | | | 2004-01-29 JP Rosevear <jpr@ximian.com> * gui/migration.c (create_calendar_contact_source): don't set the group to be read only until after the source is added. svn path=/trunk/; revision=24523
* migrate to a specific source (migrate_ical_folder): create a new sourceJP Rosevear2004-01-291-109/+165
| | | | | | | | | | | | | | | | | | 2004-01-29 JP Rosevear <jpr@ximian.com> * gui/migration.c (migrate_ical_folder_to_source): migrate to a specific source (migrate_ical_folder): create a new source based on the new source name/uid (create_calendar_contact_source): use the #define for the base uri (create_calendar_sources): try and find the right sources if they already exist (create_task_sources): ditto (migrate_calendars): make sure the personal source is the system source (migrate_tasks): ditto svn path=/trunk/; revision=24521
* added support for the list view also.Rodrigo Moya2004-01-291-1/+4
| | | | | | | | | 2004-01-29 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-view.c (calendar_view_get_type_code): added support for the list view also. svn path=/trunk/; revision=24520
* stop status bar messages madness.Rodrigo Moya2004-01-294-17/+0
| | | | | | | | | | | 2004-01-28 Rodrigo Moya <rodrigo@ximian.com> * gui/gnome-cal.c (update_query): * gui/e-cal-list-view.c (e_cal_list_view_update_query): * gui/e-cal-view.c (e_calendar_view_update_query): stop status bar messages madness. svn path=/trunk/; revision=24503
* use e_cal_removeJP Rosevear2004-01-282-2/+2
| | | | | | | | | | 2004-01-27 JP Rosevear <jpr@ximian.com> * gui/calendar-component.c (delete_calendar_cb): use e_cal_remove * gui/tasks-component.c (delete_task_list_cb): ditto svn path=/trunk/; revision=24469
* Fixes #53276Rodrigo Moya2004-01-271-18/+40
| | | | | | | | | | | | | | 2004-01-27 Rodrigo Moya <rodrigo@ximian.com> Fixes #53276 * gui/dialogs/copy-source-dialog.c (show_error): new function to create an error message dialog. (copy_source): check if the destination calendar is read only, and if so, don't try to copy components over. Fixed leaks. Call show_error to display meaningful error messages. svn path=/trunk/; revision=24456
* add the source to the group so it actually shows upJP Rosevear2004-01-271-4/+7
| | | | | | | | | 2004-01-26 JP Rosevear <jpr@ximian.com> * gui/migration.c (migrate_ical_folder): add the source to the group so it actually shows up svn path=/trunk/; revision=24455
* get the source name with out using freed memory (migrate_tasks): dittoJP Rosevear2004-01-271-2/+2
| | | | | | | | | | 2004-01-27 JP Rosevear <jpr@ximian.com> * gui/migration.c (migrate_calendars): get the source name with out using freed memory (migrate_tasks): ditto svn path=/trunk/; revision=24453
* Fixes #53338Rodrigo Moya2004-01-272-0/+6
| | | | | | | | | | | | | | | | | | | | 2004-01-27 Rodrigo Moya <rodrigo@ximian.com> Fixes #53338 * gui/dialogs/calendar-setup.c (dialog_to_source): set the relative URI on the source for remote sources. 2004-01-27 Rodrigo Moya <rodrigo@ximian.com> Fixes #52312 * gui/dialogs/calendar-setup.c (create_new_source_with_group): * gui/migration.c (migrate_ical_folder, create_calendar_sources, create_task_sources): set the relative URI for local calendars and task lists to be the source UID. svn path=/trunk/; revision=24446
* Updated some .cvsignore files.Christian Neumair2004-01-261-0/+2
| | | | svn path=/trunk/; revision=24424
* new function.Rodrigo Moya2004-01-256-13/+38
| | | | | | | | | | | | | | | | | | | 2004-01-24 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-component.[ch] (calendar_component_peek_source_selector): new function. * gui/tasks-component.[ch] (tasks_component_peek_source_selector): new function. * gui/e-tasks.c (backend_died_cb): * gui/gnome-cal.c (backend_died_cb): don't tell the user to restart Evolution, there is no need now, just unselecting and selecting back the calendar loads it again. Also, remove the crashed client from the list of loaded clients. Also, unselect the source on the source selector. svn path=/trunk/; revision=24417
* use e_source_list_peek_source_any (setup_create_ecal): dittoJP Rosevear2004-01-251-50/+5
| | | | | | | | | | | | | 2004-01-24 JP Rosevear <jpr@ximian.com> * gui/tasks-component.c (update_primary_selection): use e_source_list_peek_source_any (setup_create_ecal): ditto (create_new_todo): just use the default call directly (update_uris_for_selection): just use e-tasks remove/add todo source directly svn path=/trunk/; revision=24416
* don't unref and ref, the hash table does thisJP Rosevear2004-01-251-8/+6
| | | | | | | | | | | | 2004-01-24 JP Rosevear <jpr@ximian.com> * gui/e-tasks.c (e_tasks_add_todo_source): don't unref and ref, the hash table does this (e_tasks_remove_todo_source): ditto Fixes #53281 svn path=/trunk/; revision=24415
* use the colors from the model as background, not as foreground.Rodrigo Moya2004-01-252-9/+8
| | | | | | | | | | | | 2004-01-24 Rodrigo Moya <rodrigo@ximian.com> * gui/e-calendar-table.c (e_calendar_table_init): use the colors from the model as background, not as foreground. * gui/e-cal-model-tasks.c (ecmt_get_color_for_component): return the color assigned to each URI if it's not overdue. svn path=/trunk/; revision=24413
* listen for the correct notificationJP Rosevear2004-01-251-2/+2
| | | | | | | | | 2004-01-24 JP Rosevear <jpr@ximian.com> * gui/tasks-component.c (setup_create_ecal): listen for the correct notification svn path=/trunk/; revision=24412
* sync the source list after the source removalJP Rosevear2004-01-252-0/+2
| | | | | | | | | | | | | 2004-01-24 JP Rosevear <jpr@ximian.com> * gui/tasks-component.c (delete_task_list_cb): sync the source list after the source removal * gui/calendar-component.c (delete_calendar_cb): ditto Fixes #53271 svn path=/trunk/; revision=24411
* display a progress dialog (dialog_close): destroy itJP Rosevear2004-01-251-70/+257
| | | | | | | | | | | | | | | | | | 2004-01-24 JP Rosevear <jpr@ximian.com> * gui/migration.c (setup_progress_dialog): display a progress dialog (dialog_close): destroy it (dialog_set_folder_name): display the folder being migrated (dialog_set_progress): update the progress (check_for_conflict): make sure we don't name anything the same (get_source_name): create a source name (migrate_ical): migrate the events/tasks from one ecal to another (migrate_ical_folder): migrate a specific folder (migrate_calendars): use above (migrate_tasks): ditto svn path=/trunk/; revision=24410
* Use PUBLISH if no METHOD definedRodney Dawes2004-01-241-4/+3
| | | | | | | | | | 2004-01-23 Rodney Dawes <dobey@ximian.com> * gui/e-itip-control.c: Use PUBLISH if no METHOD defined Fixes #45564 svn path=/trunk/; revision=24385
* remove useless e_mkdir_hier call.JP Rosevear2004-01-231-7/+0
| | | | | | | | | | | 2004-01-22 JP Rosevear <jpr@ximian.com> * gui/migration.c (process_old_dir): remove useless e_mkdir_hier call. Fixes #53065 svn path=/trunk/; revision=24366
* 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
* Remove debugging statementJP Rosevear2004-01-221-1/+0
| | | | | | | | | 2004-01-22 JP Rosevear <jpr@ximian.com> * gui/e-tasks.c (e_tasks_setup_view_menus): Remove debugging statement svn path=/trunk/; revision=24363
* use the calendar component config dir (gnome_calendar_setup_view_menus):JP Rosevear2004-01-222-3/+8
| | | | | | | | | | | | | | | | 2004-01-22 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.c (setup_widgets): use the calendar component config dir (gnome_calendar_setup_view_menus): use the calendar component base dir for the view storage * gui/e-tasks.c (e_tasks_setup_view_menus): use the task component base dir for the view storage Fixes #53133 svn path=/trunk/; revision=24362
* check return value from auth_new_cal_from_source(). Connect toRodrigo Moya2004-01-222-1/+39
| | | | | | | | | | | | | | 2004-01-21 Rodrigo Moya <rodrigo@ximian.com> * gui/e-tasks.c (e_tasks_add_todo_source): check return value from auth_new_cal_from_source(). Connect to "backend_died" signal on the ECal class. (backend_died_cb): callback for "backend_died" that displays an error message when that happens. * gui/gnome-cal.c (backend_died_cb): use a GtkMessageDialog. svn path=/trunk/; revision=24355
* renamed to _source and made them work with ESource's.Rodrigo Moya2004-01-224-30/+50
| | | | | | | | | | | | | | | 2004-01-21 Rodrigo Moya <rodrigo@ximian.com> * gui/e-tasks.[ch] (e_tasks_add_todo_uri, e_tasks_remove_todo_uri, e_tasks_get_default_uri): renamed to _source and made them work with ESource's. * gui/tasks-component.c (update_uri_for_primary_selection, add_uri_for_source, remove_uri_for_source): * gui/tasks-control.c (tasks_control_set_property): updated for changes in e-tasks.[ch]. svn path=/trunk/; revision=24354
* added 'ECalSourceType' argument to be able to create the ECal correctly.Rodrigo Moya2004-01-221-16/+18
| | | | | | | | | | | | | 2004-01-21 Rodrigo Moya <rodrigo@ximian.com> * gui/dialogs/calendar-setup.c (create_new_source_with_group): added 'ECalSourceType' argument to be able to create the ECal correctly. Added a call to e_cal_open with 'only_if_exists' set to FALSE so that the backend creates the calendar. (new_calendar_finish, new_task_list_finish): pass new argument to create_new_source_with_group. svn path=/trunk/; revision=24352
* call e_cal_remove_calendar to actually remove the task list via theRodrigo Moya2004-01-211-8/+19
| | | | | | | | | | 2004-01-21 Rodrigo Moya <rodrigo@ximian.com> * gui/tasks-component.c (delete_task_list_cb): call e_cal_remove_calendar to actually remove the task list via the backend. svn path=/trunk/; revision=24350
* Fixes #51705Rodrigo Moya2004-01-211-7/+16
| | | | | | | | | | | | 2004-01-21 Rodrigo Moya <rodrigo@ximian.com> Fixes #51705 * gui/calendar-component.c (delete_calendar_cb): call e_cal_remove_calendar to actually remove the calendar via the backend. svn path=/trunk/; revision=24348
* just use the convienence function for the default gconf client (fixesJP Rosevear2004-01-211-2/+1
| | | | | | | | | | | | 2004-01-21 JP Rosevear <jpr@ximian.com> * gui/dialogs/calendar-setup.c (calendar_setup_new_calendar): just use the convienence function for the default gconf client (fixes leak) (calendar_setup_new_task_list): ditto (new_task_list_finish): we don't support task uri's svn path=/trunk/; revision=24346
* just use the convienence function for the default gconf client (fixesJP Rosevear2004-01-211-8/+2
| | | | | | | | | | | 2004-01-21 JP Rosevear <jpr@ximian.com> * gui/dialogs/calendar-setup.c (calendar_setup_new_calendar): just use the convienence function for the default gconf client (fixes leak) (calendar_setup_new_task_list): ditto svn path=/trunk/; revision=24345
* only block widgets that existJP Rosevear2004-01-211-8/+14
| | | | | | | | | 2004-01-21 JP Rosevear <jpr@ximian.com> * gui/dialogs/calendar-setup.c (source_to_dialog): only block widgets that exist svn path=/trunk/; revision=24344
* correct property name c/p errorJP Rosevear2004-01-201-1/+1
| | | | | | | | | | | 2004-01-19 JP Rosevear <jpr@ximian.com> * gui/e-cal-model-tasks.c (ensure_task_not_complete): correct property name c/p error Fixes # 52269 svn path=/trunk/; revision=24317
* handle the case where we have a bogus uidJP Rosevear2004-01-202-4/+6
| | | | | | | | | | | 2004-01-19 JP Rosevear <jpr@ximian.com> * gui/tasks-component.c (update_primary_selection): handle the case where we have a bogus uid * gui/calendar-component.c (update_primary_selection): ditto svn path=/trunk/; revision=24313
* (print_month_small): use e_cal_model_generate_instancesRadek Doulik2004-01-191-4/+5
| | | | | | (instance_cb): use ECalModelGenerateInstancesData svn path=/trunk/; revision=24306
* uncomment and use ECalModelComponent (print_day_details): useRadek Doulik2004-01-191-76/+79
| | | | | | | | | | | | | 2004-01-19 Radek Doulik <rodo@ximian.com> * gui/print.c (print_day_add_event): uncomment and use ECalModelComponent (print_day_details): use e_cal_model_generate_instances (print_day_details_cb): use ECalModelGenerateInstancesData (print_day_long_event): use event color (print_day_event): ditto svn path=/trunk/; revision=24305
* don't create the component if there is a multiple selectionJP Rosevear2004-01-181-5/+7
| | | | | | | | | | | 2004-01-17 JP Rosevear <jpr@ximian.com> * gui/e-calendar-table.c (e_calendar_table_delete_selected): don't create the component if there is a multiple selection Fixes #52266 svn path=/trunk/; revision=24294
* (print_table): set page orientation, it may be changed from lastRadek Doulik2004-01-181-0/+3
| | | | | | | printing (print_comp): ditto svn path=/trunk/; revision=24293
* month and week view printing works again, day view is next to fixRadek Doulik2004-01-183-71/+157
| | | | | | | | | | | | | | | | | | | | | | | | 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
* we are required to pass in the end in-out argJP Rosevear2004-01-182-4/+4
| | | | | | | | | | | 2004-01-17 JP Rosevear <jpr@ximian.com> * gui/e-cal-view.c (on_print): we are required to pass in the end in-out arg Fixes #52972 svn path=/trunk/; revision=24291
* update protosJP Rosevear2004-01-185-90/+115
| | | | | | | | | | | | | | | | | | | 004-01-17 JP Rosevear <jpr@ximian.com> * gui/print.h: update protos * gui/print.c (print_title): util routine to print a title (print_table): print out an etable * gui/calendar-commands.c (print): handle printing the list view * gui/e-cal-list-view.etspec: draw the grid to mimic tasks * gui/tasks-control.c (tasks_control_print_cmd): use print_table Fixes #51751, #52958 svn path=/trunk/; revision=24290
* we actually want to not return on any error as well (like NOT FOUND)JP Rosevear2004-01-171-4/+10
| | | | | | | | | 2004-01-16 JP Rosevear <jpr@ximian.com> * gui/e-itip-control.c (find_server): we actually want to not return on any error as well (like NOT FOUND) svn path=/trunk/; revision=24285
* convert to GObjectJP Rosevear2004-01-173-57/+69
| | | | | | | | | | | | | | | | | | | | | 2004-01-16 JP Rosevear <jpr@ximian.com> * gui/e-comp-editor-registry.h: convert to GObject * gui/e-comp-editor-registry.c (registry_data_free): routine to free the registry data (dispose): destroy the registry data (finalize): finalize it (class_init): setup above (init): create full hash table (e_comp_editor_registry_add): weak ref the editor and strdup the hash table key (editor_destroy_cb): we get the registry data now, just remove it * gui/dialogs/comp-editor.c (close_dialog): disconnect the signal handlers, its a bit of a hack but it is a simple fix svn path=/trunk/; revision=24277
* don't set old orientation, preview needs right orientation even afterRadek Doulik2004-01-161-5/+2
| | | | | | | | | 2004-01-16 Radek Doulik <rodo@ximian.com> * gui/print.c (print_calendar): don't set old orientation, preview needs right orientation even after everything is printed svn path=/trunk/; revision=24271
* Fixes #52920Rodrigo Moya2004-01-161-2/+2
| | | | | | | | 2004-01-16 Rodrigo Moya <rodrigo@ximian.com> Fixes #52920 svn path=/trunk/; revision=24268
* unref the activity handler.Rodrigo Moya2004-01-161-0/+5
| | | | | | | | | 2004-01-16 Rodrigo Moya <rodrigo@ximian.com> * gui/tasks-component.c (impl_dispose): unref the activity handler. svn path=/trunk/; revision=24263
* new function. (impl_createControls): create a task bar also for the tasksRodrigo Moya2004-01-164-17/+42
| | | | | | | | | | | | | | | | | | | 2004-01-16 Rodrigo Moya <rodrigo@ximian.com> * gui/tasks-component.[ch] (tasks_component_peek_activity_handler): new function. (impl_createControls): create a task bar also for the tasks component. We can't rely on the calendar component's one. (tasks_component_init): create the private activity handler. * gui/e-calendar-table.c (e_calendar_table_set_status_message): use the tasks component's activity handler. * gui/e-tasks.c (on_url_cb): new callback to display status bar messages when mousing over links. (setup_widgets): connect to "on_url" signal on the HTML widget. svn path=/trunk/; revision=24262
* reverted my changes made on Jan 8th.Rodrigo Moya2004-01-161-19/+2
| | | | | | | | 2004-01-15 Rodrigo Moya <rodrigo@ximian.com> * gui/dialogs/comp-editor.c: reverted my changes made on Jan 8th. svn path=/trunk/; revision=24256
* removed.Rodrigo Moya2004-01-168-193/+118
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-15 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/save.[ch]: removed. * gui/alarm-notify/Makefile.am: removed save.[ch]. * gui/alarm-notify/notify-main.c: removed obsolete headers. * gui/alarm-notify/config-data.[ch] (config_data_set_last_notification_time, config_data_get_last_notification_time, config_data_save_blessed_program, config_data_is_blessed_program): new functions. * gui/alarm-notify/alarm-queue.c: dont use removed functions. (alarm_trigger_cb, procedure_notification_dialog, alarm_queue_init): use config_data_* functions. * gui/alarm-notify/alarm-notify.c: dont use removed functions. svn path=/trunk/; revision=24249
* update protosJP Rosevear2004-01-166-142/+373
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-15 JP Rosevear <jpr@ximian.com> * gui/tasks-component.h: update protos * gui/tasks-component.c (impl_finalize): free base dir (impl_upgradeFromVersion): just call migrate_tasks (tasks_component_init): set base dir value (tasks_component_peek_base_directory): accessor (tasks_component_peek_source_list): ditto * gui/migration.c (process_old_dir): look for a source with the name and fallback to creating it (create_calendar_contact_source): create the contacts:// source (create_calendar_sources): use above and create all the necessary sources (create_task_sources): create all the necessary sources (migrate_calendars): do all the migration logic here, upgrade bonobo-conf to gconf (migrate_tasks): ditto * gui/calendar-component.h: update prototypes * gui/calendar-component.c (impl_finalize): free the base directory (impl_upgradeFromVersion): just call migrate_calendars (calendar_component_init): fill in base dir value (calendar_component_peek_base_directory): accessor (calendar_component_peek_source_list): ditto svn path=/trunk/; revision=24248
* test priv->calendar is not NULL before getting current viewRadek Doulik2004-01-151-2/+1
| | | | | | | | | 2004-01-15 Radek Doulik <rodo@ximian.com> * gui/calendar-component.c (create_new_event): test priv->calendar is not NULL before getting current view svn path=/trunk/; revision=24241
* reset create_ecalRadek Doulik2004-01-152-0/+14
| | | | | | | | | | | | | 2004-01-15 Radek Doulik <rodo@ximian.com> * gui/tasks-component.c (primary_source_selection_changed_cb): reset create_ecal * gui/calendar-component.c (impl_requestCreateItem): merge with JP's changes (primary_source_selection_changed_cb): reset create_ecal svn path=/trunk/; revision=24239
* fixes #23281, some refactoring and list view get_selected_time_rangeRadek Doulik2004-01-1511-158/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | implementation 2004-01-15 Radek Doulik <rodo@ximian.com> * gui/calendar-component.c (impl_requestCreateItem): merge with JP's changes 2004-01-14 Radek Doulik <rodo@ximian.com> * gui/e-cal-list-view.c (e_cal_list_view_get_selected_time_range): new implementation, use time range from selected event * gui/e-cal-view.c (e_calendar_view_get_selected_time_range): return gboolean, TRUE if requested time was set, FALSE otherwise (e_calendar_view_new_appointment_full): use current time if time range is unavailable * gui/calendar-component.c (impl_requestCreateItem): use e_calendar_view_new_appointment_full instead of cal_comp_event_new_with_current_time * gui/e-cal-view.c (e_calendar_view_new_appointment_full): new helper function * gui/comp-editor-factory.c (edit_new): use cal_comp_event_new_with_current_time * gui/calendar-component.c (impl_requestCreateItem): use cal_comp_event_new_with_current_time * gui/comp-util.c (cal_comp_event_new_with_current_time): new function, cut'n'pasted from get_default_event (calendar-component.c and comp-editor-factory.c) svn path=/trunk/; revision=24238
* new utility routine to create new tasks (create_new_todo): use above so weJP Rosevear2004-01-152-61/+57
| | | | | | | | | | | | | | | | 2004-01-14 JP Rosevear <jpr@ximian.com> * gui/tasks-component.c (impl_requestCreateItem): new utility routine to create new tasks (create_new_todo): use above so we don't try to set up the creation ecal unless we are actually creating a new item * gui/calendar-component.c (create_new_event): new utility routine to create new events (impl_requestCreateItem): use above so we don't try to set up the creation ecal unless we are actually creating a new item svn path=/trunk/; revision=24225
* use get_selected_objects() instead of get_selected_comp().Rodrigo Moya2004-01-151-7/+8
| | | | | | | | | 2004-01-14 Rodrigo Moya <rodrigo@ximian.com> * gui/e-calendar-table.c (e_calendar_table_show_popup_menu): use get_selected_objects() instead of get_selected_comp(). svn path=/trunk/; revision=24223
* removed assertion.Rodrigo Moya2004-01-151-2/+1
| | | | | | | | 2004-01-14 Rodrigo Moya <rodrigo@ximian.com> * gui/e-cal-model-tasks.c (get_status): removed assertion. svn path=/trunk/; revision=24220
* check return value from e_cal_new().Rodrigo Moya2004-01-151-19/+18
| | | | | | | | | | | | 2004-01-14 Rodrigo Moya <rodrigo@ximian.com> * common/authentication.c (auth_new_cal_from_source): check return value from e_cal_new(). * gui/gnome-cal.c (gnome_calendar_construct): if there is no default tasks folder, don't create the ECal from it. svn path=/trunk/; revision=24219
* don't try to set up the creation ecal unless we are actually creating aJP Rosevear2004-01-141-8/+9
| | | | | | | | | 2004-01-14 JP Rosevear <jpr@ximian.com> * gui/tasks-component.c (impl_requestCreateItem): don't try to set up the creation ecal unless we are actually creating a new item svn path=/trunk/; revision=24218
* Check for libsoup separatelyRodney Dawes2004-01-141-0/+2
| | | | | | | | | | | | 2004-01-13 Rodney Dawes <dobey@ximian.com> * configure.in: Check for libsoup separately 2004-01-13 Rodney Dawes <dobey@ximian.com> * gui/Makefile.am: Only link in libsoup where we need it svn path=/trunk/; revision=24203
* free 'base_uri' at the end of the function, or it will leak, and removedRodrigo Moya2004-01-141-13/+1
| | | | | | | | | | 2004-01-13 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-component.c (impl_upgradeFromVersion): free 'base_uri' at the end of the function, or it will leak, and removed duplicated code to create the birthdays backend. svn path=/trunk/; revision=24202
* add e-pub-utils.[ch] for Free/Busy publishingGary Ekker2004-01-1320-127/+2376
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-12 Gary Ekker <gekker@novell.com> * gui/Makefile.am: add e-pub-utils.[ch] for Free/Busy publishing * gui/apps_evolution_calendar.schemas.in.in: add schema for /apps/evo/calendar/free_busy key * gui/calendar-commands.c (publish_freebusy_cmd): change to publish component rather than attach as email * gui/calendar-config-keys.h: add free_busy/urls key definition * gui/calendar-config.[ch] (calendar_config_get_free_busy): new method for retrieving FB gconf key (calendar_config_set_free_busy): new method for saving FB gconf key * gui/e-cal-view.c (on_publish): change to publish component rather than attach as email * gui/itip-utils.[ch] (itip_publish_begin): new method to process e_cal_components and aggregate the data if we are publishing for multiple calendars (itip_publish_comp): new method to publish the ical data to an http server via libsoup (comp_fb_normalize): new static method to ensure rfc 2446 compliant data before publishing icalcomponent_get_uid (fb_sort): new static method to sort FB properties in ascending order * gui/dialogs/Makefile.am: add url-editor-dialog.[ch] and url-editor-dialog.glade for configure FB publishing * gui/dialogs/cal-prefs-dialog.[ch] (cal_prefs_dialog_url_add_clicked): (cal_prefs_dialog_url_edit_clicked):new method for events in FB tab of cal-prefs-dialog (cal_prefs_dialog_url_remove_clicked): ditto (cal_prefs_dialog_url_enable_clicked): ditto (cal_prefs_dialog_url_url_list_change): ditto (cal_prefs_dialog_url_url_list_enable_toggled): ditto (cal_prefs_dialog_url_url_list_double_click): ditto (show_fb_config): new method for updating dialog with FB specific data in gconf (update_fb_config): new method for updating gconf with FB specific data from dialogs (setup_changes): detect changes in url_list gtk_tree_view (get_widgets): include new dialog widgets for FB config (init_widgets): connect signals for new FB config widgets * gui/dialogs/cal-prefs-dialog.glade: add new widgets for FB config * gui/dialogs/url-editor-dialog.[ch]: add files for FB url-editor dialog * gui/dialogs/url-editor-dialog.glade: ditto * gui/e-pub-utils.[ch]: add files with FB publishing utilities * gui/calendar-component.c (init_calendar_publishing): sets up listeners to publish calendar, g_idle_add, and on gconf change (init_calendar_publishing_cb): ditto (conf_changed_callback): ditto (impl_createControls): ditto svn path=/trunk/; revision=24190
* sync the source list after creating the remote source group.Rodrigo Moya2004-01-131-2/+3
| | | | | | | | | 2004-01-12 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-component.c (impl_upgradeFromVersion): sync the source list after creating the remote source group. svn path=/trunk/; revision=24189
* Revert William McCann's patch of 2003-12-19 until we can get consistentJP Rosevear2004-01-1326-3581/+2488
| | | | | | | | | 2004-01-12 JP Rosevear <jpr@ximian.com> * Revert William McCann's patch of 2003-12-19 until we can get consistent across all of evolution svn path=/trunk/; revision=24177
* Only update dialog widgets if they exist.Hans Petter Jansson2004-01-121-2/+4
| | | | | | | | | 2004-01-12 Hans Petter Jansson <hpj@ximian.com> * gui/dialogs/calendar-setup.c (source_to_dialog): Only update dialog widgets if they exist. svn path=/trunk/; revision=24169
* Fix copyright notice, its copyright Novell not our hackersJP Rosevear2004-01-114-4/+4
| | | | | | | | | | | | | | | 2004-01-11 JP Rosevear <jpr@ximian.com> * gui/tasks-component.c: Fix copyright notice, its copyright Novell not our hackers * gui/tasks-component.h: ditto * gui/calendar-component.c: ditto * gui/calendar-component.h: ditto svn path=/trunk/; revision=24150
* cast the views to E_CALENDAR_VIEW, not to E_CAL_VIEW.Rodrigo Moya2004-01-111-2/+2
| | | | | | | | | 2004-01-10 Rodrigo Moya <rodrigo@ximian.com> * gui/gnome-cal.c (open_ecal): cast the views to E_CALENDAR_VIEW, not to E_CAL_VIEW. svn path=/trunk/; revision=24148
* added missing headers.Rodrigo Moya2004-01-1112-137/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-01-10 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/notify-main.c: added missing headers. * gui/alarm-notify/alarm-notify.c (alarm_notify_remove_calendar): use the correct variable when calling alarm_queue_remove_client(). * gui/calendar-component.c (impl_upgradeFromVersion): removed redundant variable declarations. * gui/migration.c (process_old_dir): * gui/e-timezone-entry.c (e_timezone_entry_mnemonic_activate): * gui/e-date-time-list.c (e_date_time_list_finalize): * gui/e-alarm-list.c (e_alarm_list_finalize): fixed warnings. * gui/e-calendar-table.c: added missing prototypes at the top to avoid warnings. * gui/e-week-view.c (e_week_view_scroll_a_step): * gui/e-day-view.c (e_day_view_event_move): directly return in the default: case. * gui/e-tasks.c (setup_widgets): connect to changes on the model. (model_row_changed_cb): callback to update the HTML detailed view when the currently selected task changes. (client_obj_updated_cb): removed unused function. (set_status_message): changed to accept a variable list of arguments. (e_tasks_add_todo_uri): display status messages and get error message from backend and display it in a dialog. (cal_opened_cb, load_error, method_error, permission_error): removed unused functions. * gui/gnome-cal.c (open_ecal): added a GnomeCalendar argument, and display status messages. (gnome_calendar_construct, gnome_calendar_add_event_source): adapted to changes in open_ecal(). svn path=/trunk/; revision=24147
* keep all the tray icons we create in a list. (tray_icon_destroyed_cb):Rodrigo Moya2004-01-102-1/+16
| | | | | | | | | | | | 2004-01-10 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/alarm-queue.c (display_notification): keep all the tray icons we create in a list. (tray_icon_destroyed_cb): remove the tray icon data from the list. (popup_dismiss_cb, popup_dismiss_all_cb): implemented missing popup menu items. svn path=/trunk/; revision=24145
* calendar_config -> calendar_setup. (edit_calendar_cb): Ditto.Hans Petter Jansson2004-01-108-245/+707
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-09 Hans Petter Jansson <hpj@ximian.com> * gui/calendar-component.c (new_calendar_cb): calendar_config -> calendar_setup. (edit_calendar_cb): Ditto. (impl_requestCreateItem): Ditto. * gui/tasks-component.c (new_task_list_cb): Use calendar_setup. (edit_task_list_cb): Implement properties callback. (rename_task_list_cb): Remove. (fill_popup_menu_cb): Remove "rename" and add "properties". (impl_requestCreateItem): Use calendar_setup. * gui/dialogs/Makefile.am (libcal_dialogs_la_SOURCES): calendar_config -> calendar_setup. Remove new-task-list.[ch]. (glade_DATA): calendar_config -> calendar_setup. Remove new-task-list.glade. * gui/dialogs/new-task-list.[ch]: Remove. * gui/dialogs/calendar-config.[ch]: Rename to calendar-setup.[ch]. * gui/dialogs/calendar-config.glade: Rename to calendar-setup.glade. svn path=/trunk/; revision=24139
* make sure we sync the source list when appropriateJP Rosevear2004-01-102-2/+23
| | | | | | | | | | | 2004-01-09 JP Rosevear <jpr@ximian.com> * gui/calendar-component.c (impl_upgradeFromVersion): make sure we sync the source list when appropriate * gui/tasks-component.c (impl_upgradeFromVersion): ditto svn path=/trunk/; revision=24137
* Create ESource for anniversariesERDI Gergo2004-01-101-2/+29
| | | | | | | | | 2004-01-09 ERDI Gergo <cactus@cactus.rulez.org> * gui/calendar-component.c (impl_upgradeFromVersion): Create ESource for anniversaries svn path=/trunk/; revision=24136
* Call calendar_config_new_calendar(). (rename_calendar_cb): Remove.Hans Petter Jansson2004-01-107-300/+1551
| | | | | | | | | | | | | | | | | | | | | 2003-01-09 Hans Petter Jansson <hpj@ximian.com> * gui/calendar-component.c (new_calendar_cb): Call calendar_config_new_calendar(). (rename_calendar_cb): Remove. (edit_calendar_cb): Implement properties callback. (fill_popup_menu_cb): Add "Properties..." item and remove "Rename". * gui/dialogs/Makefile.am (libcal_dialogs_la_SOURCES): Add calendar-config.[ch] and remove new-calendar.[ch]. (glade_DATA): Add calendar-config.glade and remove new-calendar.glade. * gui/dialogs/calendar-config.[ch]: Implement calendar creation and editing. * gui/dialogs/calendar-config.glade: Add GUI for above. svn path=/trunk/; revision=24135
* return the corba valuesJP Rosevear2004-01-102-2/+2
| | | | | | | | | | | 2004-01-09 JP Rosevear <jpr@ximian.com> * gui/tasks-component.c (impl_upgradeFromVersion): return the corba values * gui/calendar-component.c (impl_upgradeFromVersion): ditto svn path=/trunk/; revision=24134
* only migrate old calendars if migrating from <= 1.4.x.Rodrigo Moya2004-01-102-23/+35
| | | | | | | | | | | 2004-01-09 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-component.c (impl_upgradeFromVersion): only migrate old calendars if migrating from <= 1.4.x. * gui/tasks-component.c (impl_upgradeFromVersion): ditto for tasks. svn path=/trunk/; revision=24132
* add a new signal "event_move" and its key binding.Andrew Wu2004-01-098-198/+575
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-09 Andrew Wu <Yang.Wu@sun.com> * gui/e-cal-view.c (e_calendar_view_class_init): add a new signal "event_move" and its key binding. * gui/e-cal-view.h: add a new type "ECalViewMoveDirection". add a new virtual method "event_move" for ECalView. * gui/e-day-view.c (e_day_view_event_move), (e_day_view_change_event_time): Use "Alt + Arrow" to move a selected event through time lines or different days. * gui/e-day-view.h: add a new property "last_edited_comp_string" for EWeekView. * gui/e-week-view.c (e_week_view_class_init), (e_week_view_init), (e_week_view_reshape_events), (e_week_view_event_move), (e_week_view_get_day_offset_of_event), (e_week_view_scroll_a_step), (e_week_view_change_event_time), (e_week_view_do_key_press), (e_week_view_move_selection_day), (e_week_view_get_adjust_days_for_move_up), (e_week_view_get_adjust_days_for_move_down), (e_week_view_get_adjust_days_for_move_left), (e_week_view_get_adjust_days_for_move_right): Use "Alt + Arrow" to move a selected event through different days. * gui/e-week-view.h: add a new property "last_edited_comp_string" for EWeekView. svn path=/trunk/; revision=24128
* store the ECal's associated ECalView, and connect to its "objects_removed"Rodrigo Moya2004-01-092-29/+109
| | | | | | | | | | | | | | | | | | | | | | 2004-01-08 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/alarm-queue.c (display_notification): store the ECal's associated ECalView, and connect to its "objects_removed" signal. (notifiy_dialog_cb): disconnect signals from the ECalView, not the ECal. (on_dialog_objs_removed_cb): adapted to respond to "objects_removed" signal on ECalView. Made it destroy the tray bar icon also. (add_popup_menu_item): new function to create the popup items. (tray_icon_clicked_cb): remove connection to obsolete signal, and made it popup a menu on right-click. (popup_open_cb, popup_dismiss_cb, popup_dismiss_all_cb): callbacks for popup menu. * gui/gnome-cal.c (connect_week_view_focus): don't access the widget's private fields if NULL. svn path=/trunk/; revision=24120
* moved the line that sets priv->updating to FALSE up some lines, to avoidRodrigo Moya2004-01-081-4/+21
| | | | | | | | | | | | 2004-01-08 Rodrigo Moya <rodrigo@ximian.com> * gui/dialogs/comp-editor.c (save_comp): moved the line that sets priv->updating to FALSE up some lines, to avoid getting callbacks with an incorrect value on it. (obj_modified_cb): check the UIDs of the objects we get passed to see if the one being edited is amongst them. svn path=/trunk/; revision=24108
* delete the ECalViewMoveDirection type declaration which was added byKidd Wang2004-01-082-14/+0
| | | | | | | | | | | 2004-01-08 Kidd Wang <kidd.wang@sun.com> * gui/e-cal-view.h: delete the ECalViewMoveDirection type declaration which was added by mistake yesterday. * Changelog: add a missed entry for calender-commands.c. svn path=/trunk/; revision=24105
* call e_cal_view_start to actually start the live query.Rodrigo Moya2004-01-081-2/+3
| | | | | | | | | | 2004-01-07 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/alarm-queue.c (load_alarms): call e_cal_view_start to actually start the live query. (add_component_alarms): check the 'alarms' parameter before using it. svn path=/trunk/; revision=24100
* call e_cal_view_start to actually start the live query.Rodrigo Moya2004-01-081-0/+2
| | | | | | | | | 2004-01-07 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/alarm-queue.c (load_alarms): call e_cal_view_start to actually start the live query. svn path=/trunk/; revision=24099
* added an ECalQuery for each loaded client. (load_alarms): use a live queryRodrigo Moya2004-01-071-60/+71
| | | | | | | | | | | | | | | | | 2004-01-07 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/alarm-queue.c: added an ECalQuery for each loaded client. (load_alarms): use a live query to the calendar instead of calling e_cal_get_alarms_in_range(). (alarm_queue_add_client): set query initially to NULL. (query_objects_changed_cb): renamed and made it manage both "objects_added" and "objects_modified" signals of ECalView. (query_objects_removed_cb): manage the "objects_removed" signal of ECalView. (alarm_queue_remove_client): unref the live query. svn path=/trunk/; revision=24085
* remove the item from the hash last and don't free its members because theJP Rosevear2004-01-071-8/+6
| | | | | | | | | | | 2004-01-06 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.c (gnome_calendar_add_event_source): remove the item from the hash last and don't free its members because the hash table does that for us (gnome_calendar_remove_event_source): ditto svn path=/trunk/; revision=24078
* new method's implementation. (calendar_component_class_init): initializeRodrigo Moya2004-01-072-71/+98
| | | | | | | | | | | | | | | | | | | 2004-01-06 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-component.c (impl_upgradeFromVersion): new method's implementation. (calendar_component_class_init): initialize new epv's member. (calendar_component_init): moved migration code to impl_upgradeFromVersion. (update_uri_for_primary_selection): fixed warning. * gui/tasks-component.c (impl_upgradeFromVersion): new method's implementation. (tasks_component_class_init): initialize new epv's member. (tasks_component_init): moved migration code to impl_upgradeFromVersion. svn path=/trunk/; revision=24074
* disconnect the activated signalJP Rosevear2004-01-071-0/+5
| | | | | | | | | 2004-01-06 JP Rosevear <jpr@ximian.com> * gui/e-select-names-renderer.c (esnr_editing_done): disconnect the activated signal svn path=/trunk/; revision=24069
* we don't put any signal handlers on the client or source client now, butJP Rosevear2004-01-071-60/+90
| | | | | | | | | | | | | | | | | 2004-01-06 JP Rosevear <jpr@ximian.com> * gui/dialogs/comp-editor.c (comp_editor_finalize): we don't put any signal handlers on the client or source client now, but we do on the view (real_set_e_cal): no signal handlers on the client (obj_modified_cb): we are guaranteed this is a signal for our component (obj_removed_cb): ditto (listen_for_changes): listen for changes on the object (save_comp): use above since the source_client changed (real_edit_comp): use above since the comp changed svn path=/trunk/; revision=24067
* if we are de-activated, the editing is done (esnr_start_editing): listenJP Rosevear2004-01-061-0/+14
| | | | | | | | | | | | | 2004-01-06 JP Rosevear <jpr@ximian.com> * gui/e-select-names-renderer.c (esnr_activated): if we are de-activated, the editing is done (esnr_start_editing): listen for activated signal on the control frame Fixes #52196 svn path=/trunk/; revision=24065