aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-component.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixes #332409 Reset the ecal to NULL. If the default client does not existChenthill Palanisamy2006-04-241-0/+3
| | | | | | | | | | | | 2006-04-24 Chenthill Palanisamy <pchenthill@novell.com> Fixes #332409 * gui/calendar-component.c: (setup_create_ecal): Reset the ecal to NULL. * gui/e-calendar-view.c: (e_calendar_view_new_appointment_for): If the default client does not exist do not open the dialog. svn path=/trunk/; revision=31879
* Fix for 333693. need to see if source is NULL to avoid a CRITICAL warning.Harry Lu2006-03-281-1/+1
| | | | | | | | | | 2006-03-28 Harry Lu <harry.lu@sun.com> Fix for 333693. * gui/calendar-component.c: (update_task_selection): need to see if source is NULL to avoid a CRITICAL warning. svn path=/trunk/; revision=31748
* remove shortcut keys (UI Hackfest - SeeHarish Krishnaswamy2006-01-161-2/+2
| | | | | | | | | | | | 2006-01-16 Harish Krishnaswamy <kharish@novell.com> * gui/calendar-component.c: (impl__get_userCreatableItems): * gui/memos-component.c: (impl__get_userCreatableItems): * gui/tasks-component.c: (impl__get_userCreatableItems): remove shortcut keys (UI Hackfest - See http://go-evolution.org/Shortcut_Keys_Review). svn path=/trunk/; revision=31216
* Use e_util_mkdir_hier() instead of e_mkdir_hier().Simon Zheng2006-01-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-10 Simon Zheng <simon.zheng@sun.com> * gui/calendar-component.c: (calendar_component_peek): * gui/calendar-config.c: * gui/e-cal-model-tasks.c: * gui/e-cal-popup.c: * gui/e-cell-date-edit-text.c: * gui/e-meeting-store.c: * gui/memos-component.c: (memos_component_peek): * gui/print.c: * gui/tasks-component.c: (tasks_component_peek): Use e_util_mkdir_hier() instead of e_mkdir_hier(). Use e_util_strstrcase() instead of e_strstrcasea(). use e_strftime() in evolution-data-server/ libedataserver/e-data-server-util.c instead of the copy in evolution/e-util/e-util.c. use e_filename_make_safe() in evolution-data-server/ libedataserver/e-data-server-util.c instead of the copy in evolution/e-util/e-util.c. use e_utf8_strftime() in evolution-data-server/ libedataserver/e-data-server-util.c instead of the copy in evolution/e-util/e-util.c. svn path=/trunk/; revision=31116
* committed these files to fix http://bugzilla.gnome.org/show_bug.cgi?id=260354Parthasarathi Susarla2005-12-211-12/+13
| | | | | | | | | | | | | | ChangeLog addressbook/ChangeLog addressbook/gui/component/addressbook-component.c calendar/ChangeLog calendar/gui/calendar-component.c calendar/gui/memos-component.c calendar/gui/tasks-component.c mail/ChangeLog mail/Evolution-Mail.idl mail/mail-component.c shell/ChangeLog shell/Evolution-Component.idl shell/Evolution-Shell.idl shell/Evolution.idl shell/Makefile.am shell/e-shell-window.c shell/e-shell-window.h shell/e-shell.c svn path=/trunk/; revision=30915
* Committing the calendar publishing patch.Chenthill Palanisamy2005-12-191-41/+0
| | | | svn path=/trunk/; revision=30876
* Use g_filename_to_uri() instead of just prefixing "file://" for Win32Tor Lillqvist2005-11-251-3/+3
| | | | | | | | | | 2005-11-25 Tor Lillqvist <tml@novell.com> * gui/calendar-component.c (ensure_sources): Use g_filename_to_uri() instead of just prefixing "file://" for Win32 portability. svn path=/trunk/; revision=30668
* fixes #308802.Chenthill Palanisamy2005-10-181-3/+3
| | | | svn path=/trunk/; revision=30526
* Provides across calendars keyboard accelerators for popup menusSrinivasa Ragavan2005-10-031-4/+4
| | | | | | | | | | | | | | 2005-10-02 Srinivasa Ragavan <sragavan@novell.com> Provides across calendars keyboard accelerators for popup menus * gui/calendar-component.c (ecc_source_popups): * gui/e-calendar-view.c (ecv_main_items) (ecv_main_items): * gui/gnome-cal.c (gc_popups): * gui/tasks-component.c (etc_source_popups): Added Keybinding for popup menu. svn path=/trunk/; revision=30478
* Fixes 314922.Chenthill Palanisamy2005-09-021-1/+3
| | | | svn path=/trunk/; revision=30306
* Added support for opening a calendar-item in the editor when its ESourceVeerapuram Varadhan2005-07-121-9/+24
| | | | | | * Added support for opening a calendar-item in the editor when its ESource id and ECalComponent id/rid are passed in the invocation URI. svn path=/trunk/; revision=29722
* Set the new item flags while creating new meetings from other components.Chenthill Palanisamy2005-07-041-1/+1
| | | | | | Check the new item flags while creating the scheduling page. svn path=/trunk/; revision=29625
* Added widgets in INCLUDES.Kaushal Kumar2005-06-231-1/+1
| | | | | | | | | | | | 2005-06-23 Kaushal Kumar <kakumar@novell.com> * e-util/Makefile.am, widgets/e-timezone-dialog/Makefile.am, addressbook/gui/search/Makefile.am, plugins/groupwise-features/Makefile.am: Added widgets in INCLUDES. Updated the include paths to use misc instead of widgets/misc. svn path=/trunk/; revision=29574
* Added support for groupwise meeting delegation.Chenthill Palanisamy2005-06-071-1/+3
| | | | svn path=/trunk/; revision=29463
* moved e-error to e-util/Not Zed2005-05-161-1/+1
| | | | | | | | 2005-05-16 Not Zed <NotZed@Ximian.com> * moved e-error to e-util/ svn path=/trunk/; revision=29363
* Popup all the menu items when clicked on the source.Chenthill Palanisamy2005-03-221-13/+2
| | | | | | | | | 2005-03-22 Chenthill Palanisamy <pchenthill@novell.com> * gui/calendar-component.c: (popup_event_cb): Popup all the menu items when clicked on the source. svn path=/trunk/; revision=29090
* ensure the color and primary config are set on the personal sourceJP Rosevear2005-03-211-0/+11
| | | | | | | | | | | 2005-03-21 JP Rosevear <jpr@novell.com> * gui/tasks-component.c (ensure_sources): ensure the color and primary config are set on the personal source * gui/calendar-component.c (ensure_sources): ditto svn path=/trunk/; revision=29072
* Merge from 2.10 branchJP Rosevear2005-03-151-1/+1
| | | | svn path=/trunk/; revision=29019
* Make sure the base uri is same as the one migration code uses. Avoids twoSivaiah Nallagatla2005-02-261-1/+1
| | | | | | | | | | | 2005-02-25 Sivaiah Nallagatla <snallagatla@novell.com> * gui/calendar-component.c (ensure_sources) : Make sure the base uri is same as the one migration code uses. Avoids two "On This Computer" groups when both migration and this code runs. svn path=/trunk/; revision=28890
* Make sure all the default source groups and sources are present by addingSivaiah Nallagatla2005-02-221-8/+143
| | | | | | | | | | | | | | | | | | | 2005-02-19 Sivaiah Nallagatla <snallagatla@novell.com> * gui/calendar-component.c (ensure_sources) : Make sure all the default source groups and sources are present by adding missing ones. Also update the base uri of "On This Computer" group to take care of change in user home dir. (calendar_component_init) : call ensure_sources * gui/tasks-component.c (ensure_sources) (tasks_component_init) : ditto Takes care of #67411 & #67724 for calendar and tasks components. svn path=/trunk/; revision=28840
* Fixes #72090Rodrigo Moya2005-02-021-31/+33
| | | | | | | | | | | 2005-02-02 Rodrigo Moya <rodrigo@novell.com> Fixes #72090 * gui/calendar-component.c (impl_handleURI): don't assume the URI is always correct. svn path=/trunk/; revision=28677
* use libedataserver's e-url.Rodrigo Moya2005-01-171-1/+1
| | | | | | | | | | | | | | 2005-01-17 Rodrigo Moya <rodrigo@novell.com> * gui/calendar-component.c: * gui/calendar-offline-handler.c: * gui/comp-editor-factory.c: * gui/e-tasks.c: * gui/gnome-cal.c: * gui/misc.c: * gui/alarm-notify/alarm-notify.c: use libedataserver's e-url. svn path=/trunk/; revision=28422
* handle calendar:// urisJP Rosevear2005-01-101-1/+65
| | | | | | | | | 2005-01-09 JP Rosevear <jpr@novell.com> * gui/calendar-component.c (impl_handleURI): handle calendar:// uris svn path=/trunk/; revision=28303
* add a11y name to calendar sidebar selector. add a11y name to task sidebarHarry Lu2005-01-041-0/+3
| | | | | | | | | | | 2005-01-04 Harry Lu <harry.lu@sun.com> * gui/calendar-component.c: (create_component_view): add a11y name to calendar sidebar selector. * gui/tasks-component.c: (create_component_view): add a11y name to task sidebar selector. svn path=/trunk/; revision=28231
* svn path=/trunk/; revision=28177Not Zed2004-12-221-1/+1
| | | | | | | | | | | | | | | | | | | | 2004-12-17 Not Zed <NotZed@Ximian.com> * gui/e-calendar-table.c (e_calendar_table_show_popup_menu): * gui/tasks-component.c (popup_event_cb): * gui/gnome-cal.c (gnome_calendar_view_popup_factory): * gui/e-calendar-view.c (e_calendar_view_create_popup_menu): * gui/alarm-notify/alarm-queue.c (tray_icon_clicked_cb): * gui/dialogs/meeting-page.c (button_press_event): * gui/calendar-component.c (popup_event_cb): svn path=/trunk/; revision=28177
* Evo UI Hackfest : harishHarish Krishnaswamy2004-11-251-4/+15
| | | | | | | | | | | | | | | | | * gui/calendar-component.c: (new_calendar_cb), (edit_calendar_cb): Use modified_setup_edit_calendar call. (popup_event_cb): If source is null (Rt click on a source group), show the new calendar popup menu item. Else, do not show the new calendar option. * gui/dialogs/calendar-setup.[ch] (eccp_get_source_type): Compare the source_groups by their uid and not the pointers, so that the correct option is activated on the combo box. (calendar_setup_edit_calendar) : add a source_group parameter to the function. (calendar_setup_new_calendar): Use modified signature of the above function. * gui/e-calendar-view.c (on_edit_appointment): check the icalcomponent to see if it is a meeting and set the argument to e_calendar_view_edit_appointment correctly. svn path=/trunk/; revision=27991
* added hook doco.Not Zed2004-10-281-0/+7
| | | | | | | | | | | 2004-10-28 Not Zed <NotZed@Ximian.com> * gui/tasks-component.c (popup_event_cb): * gui/e-calendar-view.c (e_calendar_view_create_popup_menu): * gui/e-calendar-table.c (e_calendar_table_show_popup_menu): * gui/calendar-component.c (popup_event_cb): added hook doco. svn path=/trunk/; revision=27751
* put an icon on the properties menu itemJP Rosevear2004-10-211-1/+2
| | | | | | | | | | | | | 2004-10-20 JP Rosevear <jpr@novell.com> * gui/calendar-component.c: put an icon on the properties menu item * gui/tasks-component.c: ditto * gui/main.c (initialize): register plugin hooks for tasks and calendar svn path=/trunk/; revision=27656
* convert to org.gnome hook namesJP Rosevear2004-10-201-1/+1
| | | | | | | | | | | 2004-10-19 JP Rosevear <jpr@novell.com> * gui/calendar-component.c, gui/e-cal-menu.c, gui/e-cal-popup.c, gui/e-calendar-table.c, gui/e-calendar-view.c, gui/gnome-cal.c, gui/tasks-component.c, gui/alarm-notify/alarm-queue.c, gui/dialogs/meeting-page.c: convert to org.gnome hook names svn path=/trunk/; revision=27638
* gui/comp-editor-factory.c (edit_existing),Harish Krishnaswamy2004-10-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/calendar-component.c (create_new_event): * gui/e-calendar-view.c: (e_calendar_view_edit_appointment): * gui/comp-editor-factory.c (edit_existing), * (edit_new): * gui/dialogs/event-editor.c * (event_editor_edit_comp), (event_editor_new): updated the calls to event_editor_new with additional argument. * gui/dialogs/event-editor.h: * add parameter * is_meeting to distinguish between events and meetings. * gui/dialogs/meeting-page.c: * (sensitize_widgets): use explicit GError variable so that BUSY_ERROR conditions do not lead us to think the calendar is readonly. * gui/e-meeting-store.c: * (refresh_queue_remove), * (ems_init), (e_meeting_store_remove_attendee), (freebusy_async), (refresh_busy_periods), (refresh_queue_add): Make free-busy calls to backends async. Fixed the problem of spurious attendees getting added to the refresh_data. svn path=/trunk/; revision=27614
* dittoJP Rosevear2004-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-10-13 JP Rosevear <jpr@novell.com> * gui/dialogs/task-page.c: ditto * gui/calendar-component.h: remove e-source-selector include * gui/tasks-component.h: ditto * gui/calendar-component.c: update include to libedataserverui for source selector and option menus * gui/e-cal-popup.c: ditto * gui/dialogs/url-editor-dialog.h: ditto * gui/dialogs/select-source-dialog.c: ditto * gui/tasks-component.c: ditto * importers/icalendar-importer.c: ditto * gui/e-itip-control.c: ditto; use G_DEFINE_TYPE instead of E_MAKE_TYPE * gui/dialogs/event-page.c: ditto * gui/dialogs/task-page.c: ditto svn path=/trunk/; revision=27569
* rename to view_popup_factory. Make it build an epopup item list directly.Not Zed2004-10-071-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-10-06 Not Zed <NotZed@Ximian.com> * gui/gnome-cal.c (gnome_calendar_setup_view_popup): rename to view_popup_factory. Make it build an epopup item list directly. Can't re-use the galview cruft :-/ (gnome_calendar_discard_view_popup): no longer needed. (gc_set_view, gc_save_custom_view, gc_define_views_response) (gc_define_views): implement the gal-view popup menu items. * gui/gnome-cal.h: * gui/e-week-view.h: * gui/e-day-view.h: * gui/e-cal-list-view.h: removed old e-popup-menu header. * gui/e-calendar-view.c (setup_popup_icons): removed. (e_calendar_view_create_popup_menu): converted to use e-popup. (on_paste, on_copy, on_cut, on_delete_occurrence) (on_unrecur_appointment, on_delete_appointment, on_publish) (on_forward, on_meeting, on_move_to, on_copy_to, on_print_event) (on_save_as, on_print, on_edit_appointment, on_goto_today) (on_goto_date, on_new_task, on_new_meeting, on_new_event) (on_new_appointment): convert to use e-popup stuff. * gui/tasks-component.c (popup_event_cb): e-popup api changes. * gui/e-cal-popup.c (e_cal_popup_target_new_select): implement the selection target. (ecalp_target_free): and free it. * gui/e-cal-model.h: Make the ECalModel struct non-anonymous so it can be forward-declared. * gui/calendar-component.c (popup_event_cb): e-popup api changes. svn path=/trunk/; revision=27489
* cast warning away. (create_component_view): connect to popup_event ratherNot Zed2004-10-061-91/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-10-01 Not Zed <NotZed@Ximian.com> * gui/tasks-component.c (create_component_view): cast warning away. (create_component_view): connect to popup_event rather than fill_popup_menu. * gui/calendar-component.c (create_component_view): cast a warning away. * calendar-errors.xml: add prompt-delete-task-list. * gui/tasks-component.c (fill_popup_menu_cb): renamed to popup_event_cb, make use e-cal-popup. (edit_task_list_cb, new_task_list_cb, delete_task_list_cb) (copy_task_list_cb): deja-vu. update for api. (add_popup_menu_item): killed. murdered. drawn and quatered. (delete_task_list_cb): use e-error for the delete prompt. * gui/calendar-component.c (create_component_view): hook onto popup event instead of fill_popup_menu. * calendar-errors.xml: added prompt-delete-calendar. * gui/calendar-component.c (fill_popup_menu_cb): rename to popup_event_cb, make use e-cal-popup. (edit_calendar_cb, new_calendar_cb, delete_calendar_cb) (copy_calendar_cb): fix for api changes. (add_popup_menu_item): removed. (delete_calendar_cb): use e-error for the delete thing. * gui/e-cal-popup.[ch]: calendar popup driver. svn path=/trunk/; revision=27467
* dittoJP Rosevear2004-09-231-5/+11
| | | | | | | | | | | 2004-09-22 JP Rosevear <jpr@novell.com> * gui/calendar-component.c (fill_popup_menu_cb): ditto * gui/tasks-component.c (fill_popup_menu_cb): don't allow a delete of the system calendar svn path=/trunk/; revision=27339
* Fixes #62021JP Rosevear2004-08-081-0/+6
| | | | | | | | | | | | | | | | | | | | 004-08-06 JP Rosevear <jpr@ximian.com> Fixes #62021 * gui/dialogs/event-page.c (source_changed_cb): set the default timezone * gui/e-itip-control.c (start_calendar_server): set the default timezone * gui/calendar-component.c (setup_create_ecal): set the default timezone, as the component view is not alive and hence has not set it * gui/tasks-component.c (setup_create_ecal): ditto svn path=/trunk/; revision=26849
* clean up all the default clients (default_client_cal_opened_cb): changeJP Rosevear2004-08-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 2004-08-03 JP Rosevear <jpr@novell.com> * gui/gnome-cal.c (gnome_calendar_destroy): clean up all the default clients (default_client_cal_opened_cb): change the if statement to a switch to be consistent with the other code bits and set the default client for the source type (gnome_calendar_add_source): look at the default based on the source type (gnome_calendar_set_default_source): set the default for the source type (gnome_calendar_new_task): bail out if we have no ecal * gui/gnome-cal.c (set_timezone): set the timezone for all the default clients * gui/calendar-component.c (update_primary_task_selection): look in the task source list, not the plain source list svn path=/trunk/; revision=26828
* Fixes #62363JP Rosevear2004-08-051-0/+1
| | | | | | | | | | | 004-08-05 JP Rosevear <jpr@novell.com> Fixes #62363 * gui/calendar-component.c (create_new_event): commit the sequence svn path=/trunk/; revision=26826
* set a different title if we are editing; de-sensitize option menu if weJP Rosevear2004-07-261-2/+2
| | | | | | | | | | | | | | | | | | | | 2004-07-26 JP Rosevear <jpr@novell.com> * gui/dialogs/calendar-setup.c (calendar_setup_edit_calendar): set a different title if we are editing; de-sensitize option menu if we are editing (calendar_setup_edit_task_list): set a different title if we are editing * gui/dialogs/calendar-setup.glade: use task list instead of tasks group * gui/tasks-component.c (impl__get_userCreatableItems): add assigned task as an item, use task list instead of tasks group * gui/calendar--component.c (impl__get_userCreatableItems): fiddle with shortcuts svn path=/trunk/; revision=26735
* use short month forms to limit the maximum width of the label.Larry Ewing2004-07-201-6/+6
| | | | | | | | | 2004-07-16 Larry Ewing <lewing@ximian.com> * gui/calendar-component.c (set_info): use short month forms to limit the maximum width of the label. svn path=/trunk/; revision=26673
* Fixes #57287, 58748JP Rosevear2004-07-141-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-07-12 JP Rosevear <jpr@novell.com> Fixes #57287, 58748 * gui/tasks-component.c (source_added_cb): if the source was added in the main calendar, select it because the user caused this to happen by creating a task (create_component_view): listen for source_added signal on the tasks * gui/gnome-cal.c (view_selection_changed_cb): if the user created a task, make sure we are displaying the relevant event list (set_timezone): set the default zone of the default client (setup_widgets): listen for the user_created signal (gnome_calendar_destroy): clean up default client (client_cal_opened_cb): disconnect from the open signal (default_client_cal_opened_cb): set the default client on the models (open_ecal): make the callback function a param (gnome_calendar_add_source): include the default client when searching for an existing client (gnome_calendar_set_default_source): make the default client independent of the rest of the clients * gui/e-week-view.c (e_week_view_on_editing_stopped): emit user_created signal * gui/e-tasks.c (user_created_cb): if the user created a task, make sure we are displaying the relevant task list (set_timezone): set the timezone on the client (setup_widgets): listen for user_created signal (e_tasks_destroy): unref default client (default_client_cal_opened_cb): set the default on the model when it opens (open_ecal): open a task list (e_tasks_add_todo_source): include the default client when searching for an existing client (e_tasks_set_default_source): make the default client independent of the rest of the clients * gui/e-day-view.c (e_day_view_on_editing_stopped): emit user_created signal * gui/e-calendar-view.h: add signal proto * gui/e-calendar-view.c (e_calendar_view_class_init): add user_created signal * gui/e-calendar-table.h: add signal proto * gui/e-calendar-table.c (e_calendar_table_class_init): add user_created signal (row_appended_cb): if row is appended, emit user_created signal (e_calendar_table_init): listen for row_appended signal * gui/e-cal-model.h: add signal proto * gui/e-cal-model.c (e_cal_model_class_init): add row_appended signal (ecm_append_row): don't leak, emit row appended signal (e_cal_model_set_default_client): remove the existing default if it was only used as the default (update_e_cal_view_for_client): short circuit query create (add_new_client): look for an existing client and update its record if found, handle opening things here (e_cal_model_add_client): just call add_new_client (remove_client_objects): just remove a client's objects (remove_client): use above, handle removal of client if its default * gui/calendar-component.c (source_added_cb): if the source was added in the main calendar, select it because the user caused this to happen by creating an appointment (create_component_view): listen for source_added signal on the calendar svn path=/trunk/; revision=26644
* same.Not Zed2004-06-281-2/+2
| | | | | | | | | | | 2004-06-28 Not Zed <NotZed@Ximian.com> * gui/tasks-component.c (impl__get_userCreatableItems): same. * gui/calendar-component.c (impl__get_userCreatableItems): fix up shortcuts. #56746. svn path=/trunk/; revision=26540
* Add a call to e_source_selector_set_select_new here so that we can selectRodney Dawes2004-06-251-0/+1
| | | | | | | | | | | | | | | | | | | | | 2004-06-24 Rodney Dawes <dobey@novell.com> * gui/calendar-component.c (create_component_view): * gui/tasks-component.c (create_component_view): Add a call to e_source_selector_set_select_new here so that we can select new sources when we create them 2004-06-24 Rodney Dawes <dobey@novell.com> * e-source-selector.[ch]: Add new "select_new" property to private structure of the ESourceSelector (rebuild_cb): Add code to select the new source, and cause the selection_changed signal to get emitted, if we select new sources (init): Don't select new sources by default (e_source_selector_set_select_new): Add function to set whether or not we want to select new sources when we add them svn path=/trunk/; revision=26498
* Revert previous change to add the callbacks for notification of calendarRodney Dawes2004-06-241-22/+2
| | | | | | | | | | | 2004-06-23 Rodney Dawes <dobey@novell.com> * gui/calendar-component.c: Revert previous change to add the callbacks for notification of calendar selection changes (create_new_view): Update the comment for watching notification on the tasks selection to state it is for the mini tasks view svn path=/trunk/; revision=26478
* Add these two callbacks so that we can update the selection in theRodney Dawes2004-06-231-0/+21
| | | | | | | | | | | | | | 2004-06-22 Rodney Dawes <dobey@novell.com> * gui/calendar-component.c (config_calendars_selection_changed_cb): (config_primary_calendar_selection_changed_cb): Add these two callbacks so that we can update the selection in the calendar when the gconf key changes, like we do for tasks (create_component_view): Register the two callbacks that we created for updating the selection in the view, and their notification IDs svn path=/trunk/; revision=26470
* kill warningJP Rosevear2004-06-231-1/+0
| | | | | | | | 2004-06-22 JP Rosevear <jpr@novell.com> * gui/calendar-component.c (create_new_event): kill warning svn path=/trunk/; revision=26466
* Fixes #56323Rodrigo Moya2004-06-181-11/+0
| | | | | | | | | | | | | | 2004-06-18 Rodrigo Moya <rodrigo@novell.com> Fixes #56323 * gui/calendar-component.c (create_new_event): removed read-only check, just call the editor with the currently selected client and let it do the job. * gui/tasks-component.c (create_new_todo): ditto. svn path=/trunk/; revision=26419
* Use E_ICON_SIZE_MENUJeffrey Stedfast2004-05-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-17 Jeffrey Stedfast <fejj@novell.com> * gui/tasks-component.c (add_popup_menu_item): Use E_ICON_SIZE_MENU * gui/e-timezone-entry.c (e_timezone_entry_init): Use E_ICON_SIZE_BUTTON * gui/e-itip-control.c (write_error_html): Use E_ICON_SIZE enums. (write_html): Same. * gui/e-calendar-view.c (e_calendar_view_set_status_message): Use E_ICON_SIZE_STATUS (setup_popup_icons): Use E_ICON_SIZE_MENU * gui/e-calendar-table.c (e_calendar_table_init): Use E_ICON_SIZE_LIST rather than a hard-coded value of 16 pixels. (e_calendar_table_set_status_message): Use E_ICON_SIZE_STATUS * gui/calendar-component.c (add_popup_menu_item): Use E_ICON_SIZE_MENU rather than hard-coding the pixel size. svn path=/trunk/; revision=25934
* add GError return for error details & return errors.Not Zed2004-05-121-3/+12
| | | | | | | | | | | | 2004-05-11 Not Zed <NotZed@Ximian.com> * gui/migration.c (migrate_calendars, migrate_tasks): add GError return for error details & return errors. * gui/calendar-component.c (impl_upgradeFromVersion): fix for api change, and erturn exception if we need to. svn path=/trunk/; revision=25865
* 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
* remove prototypesJP Rosevear2004-04-301-14/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* make sure we don't deref a NULL pointerJP Rosevear2004-04-221-1/+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-221-355/+466
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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
* Update the calendar to use the icon theme through the EIconFactory objectMichael Terry2004-04-191-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* move the calendar publishing initialization from createControls to main.cGary Ekker2004-04-151-21/+20
| | | | | | | | | | | | | | | | | 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
* fix missing parameters, wow that was a mess.Larry Ewing2004-04-151-1/+3
| | | | | | | | | | | | | | | | 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-151-2/+4
| | | | | | | | | | | | | | | | | | | | | | 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-141-3/+12
| | | | | | | | | | | | | 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
* Create an EUserCreatableItemsHandler for the view if there isn't one yet,Dan Winship2004-04-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* 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-301-0/+2
| | | | | | | | | | 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
* Fixes #55648JP Rosevear2004-03-271-6/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* remove unused variableJP Rosevear2004-03-241-1/+1
| | | | | | | | | | | | | | | | | | 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
* 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
* Rename e-cal-view to e-calendar-view and fix includesJP Rosevear2004-03-161-1/+1
| | | | | | | | | | | | | | | 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
* 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
* Fixes #53271Rodrigo Moya2004-02-111-3/+3
| | | | | | | | | | | | | 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-111-2/+4
| | | | | | | | | | | | | 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
* Fixes #52970Rodrigo Moya2004-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 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
* use e_cal_removeJP Rosevear2004-01-281-1/+1
| | | | | | | | | | 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
* new function.Rodrigo Moya2004-01-251-0/+6
| | | | | | | | | | | | | | | | | | | 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
* sync the source list after the source removalJP Rosevear2004-01-251-0/+1
| | | | | | | | | | | | | 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
* 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
* handle the case where we have a bogus uidJP Rosevear2004-01-201-3/+3
| | | | | | | | | | | 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
* update protosJP Rosevear2004-01-161-66/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-151-0/+7
| | | | | | | | | | | | | 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-151-68/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-151-46/+29
| | | | | | | | | | | | | | | | 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
* 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-131-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-131-3/+0
| | | | | | | | | 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
* Fix copyright notice, its copyright Novell not our hackersJP Rosevear2004-01-111-1/+1
| | | | | | | | | | | | | | | 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
* added missing headers.Rodrigo Moya2004-01-111-9/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* calendar_config -> calendar_setup. (edit_calendar_cb): Ditto.Hans Petter Jansson2004-01-101-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-101-2/+20
| | | | | | | | | | | 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-101-22/+6
| | | | | | | | | | | | | | | | | | | | | 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-101-1/+1
| | | | | | | | | | | 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-101-13/+19
| | | | | | | | | | | 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
* new method's implementation. (calendar_component_class_init): initializeRodrigo Moya2004-01-071-41/+54
| | | | | | | | | | | | | | | | | | | 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
* removed redundant functions. (update_uris_for_selection): dont call aboveRodrigo Moya2004-01-051-15/+3
| | | | | | | | | | | 2004-01-04 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-component.c (add_uri_for_source, remove_uri_for_source): removed redundant functions. (update_uris_for_selection): dont call above functions, use gnome_calendar_* directly. svn path=/trunk/; revision=24041
* renamed from *_uri, to work with ESource's rather than with plain URIs.Rodrigo Moya2003-12-231-11/+3
| | | | | | | | | | | | | | | | 2003-12-22 Rodrigo Moya <rodrigo@ximian.com> * gui/gnome-cal.[ch] (gnome_calendar_add_event_source, gnome_calendar_remove_event_source): renamed from *_uri, to work with ESource's rather than with plain URIs. (gnome_calendar_set_default_source): ditto. * gui/control-factory.c (set_prop): * gui/calendar-component.c (add_uri_for_source, remove_uri_for_source, update_uri_for_primary_selection): use sources instead of uris with the GnomeCalendar widget. svn path=/trunk/; revision=24005
* new files for managing interactive authentication with backends.Rodrigo Moya2003-12-221-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-22 Rodrigo Moya <rodrigo@ximian.com> * common/authentication.[ch]: new files for managing interactive authentication with backends. * common/Makefile.am: build new private library. * gui/alarm-notify/alarm-notify.c (alarm_notify_add_calendar): * gui/dialogs/event-page.c (source_changed_cb): * gui/dialogs/task-page.c (source_changed_cb): * gui/dialogs/copy-source-dialog.c (copy_source): * gui/calendar-component.c (setup_create_ecal): * gui/calendar-offline-handler.c (backend_go_offline, backend_go_online, calendar_offline_handler_init): * gui/comp-editor-factory.c (open_client): * gui/e-itip-control.c (start_calendar_server): * gui/e-tasks.c (e_tasks_add_todo_uri): * gui/gnome-cal.c (gnome_calendar_construct, gnome_calendar_add_event_uri): * gui/tasks-component.c (setup_create_ecal): * importers/icalendar-importer.c (load_file_fn, vcal_load_file_fn, gnome_calendar_import_data_fn): create the ECal's via the auth_new_cal_from* functions in the authentication module. * gui/alarm-notify/Makefile.am: * gui/Makefile.am: * importers/Makefile.am: link new private library. * Makefile.am: added new directory to the build. svn path=/trunk/; revision=23999
* rewrite for new ecal api, cache all ecal's by type and minimize loading.JP Rosevear2003-12-221-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-21 JP Rosevear <jpr@ximian.com> * gui/e-itip-control.[hc]: rewrite for new ecal api, cache all ecal's by type and minimize loading. Switch to using the source option menu * conduits/todo/todo-conduit.c (start_calendar_server): ditto * conduits/calendar/calendar-conduit.c (start_calendar_server): use ECalSourceType * importers/icalendar-importer.c (load_file_fn): ditto (vcal_load_file_fn): ditto (gnome_calendar_import_data_fn): ditto * gui/dialogs/task-page.c (source_changed_cb): ditto * gui/dialogs/event-page.c (source_changed_cb): ditto * gui/dialogs/copy-source-dialog.h: update proto * gui/dialogs/copy-source-dialog.c (copy_source_dialog): ditto * gui/alarm-notify/alarm-notify.c (alarm_notify_add_calendar): ditto * gui/tasks-component.c (copy_task_list_cb): ditto (setup_create_ecal): ditto * gui/gnome-cal.c (gnome_calendar_construct): ditto (gnome_calendar_add_event_uri): ditto * gui/e-tasks.c (e_tasks_add_todo_uri): ditto * gui/comp-editor-factory.c (open_client): ditto * gui/calendar-offline-handler.c (backend_go_offline): ditto (backend_go_online): ditto (calendar_offline_handler_init): ditto * gui/calendar-component.c (copy_calendar_cb): ditto (setup_create_ecal): ditto * gui/print.c (print_month_small): don't pass type to e_cal_generate_instances (print_day_details): ditto (print_week_summary): ditto * gui/tag-calendar.c (tag_calendar_by_client): ditto svn path=/trunk/; revision=23994
* make sure there is a ui containerJP Rosevear2003-12-201-4/+5
| | | | | | | | | | | | | | | | 2003-12-19 JP Rosevear <jpr@ximian.com> * gui/tasks-control.c (tasks_control_sensitize_commands): make sure there is a ui container * gui/calendar-commands.c (calendar_control_sensitize_calendar_commands): ditto * gui/tasks-component.c (impl_createControls): update after the signals are connected so that the ecal's are actually loaded * gui/calendar-component.c: ditto svn path=/trunk/; revision=23990
* Remove separators from dialogs. Use frame style recommended by the HIG.William Jon McCann2003-12-201-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-19 William Jon McCann <mccann@jhu.edu> * gui/dialogs/task-page.c (source_changed_cb): * gui/dialogs/send-comp.c (send_component_dialog): * gui/dialogs/save-comp.c (save_component_dialog): * gui/dialogs/recur-comp.c (recur_component_dialog): * gui/dialogs/event-page.c (source_changed_cb): * gui/dialogs/delete-error.c (delete_error_dialog): * gui/dialogs/delete-comp.c (delete_component_dialog): * gui/dialogs/changed-comp.c (changed_component_dialog): * gui/dialogs/cancel-comp.c (cancel_component_dialog): * gui/dialogs/alarm-options.glade: * gui/dialogs/alarm-page.glade: * gui/dialogs/cal-prefs-dialog.glade: * gui/dialogs/e-delegate-dialog.glade: * gui/dialogs/event-page.glade: * gui/dialogs/new-calendar.glade: * gui/dialogs/new-task-list.glade: * gui/dialogs/recurrence-page.glade: * gui/dialogs/task-details-page.glade: * gui/dialogs/task-page.glade: * gui/tasks-control.c (confirm_purge): * gui/tasks-component.c (delete_task_list_cb) (rename_task_list_cb, setup_create_ecal): * gui/goto-dialog.glade: * gui/e-cal-model-tasks.c (show_geo_warning): * gui/comp-editor-factory.c (cal_opened_cb): * gui/calendar-component.c (delete_calendar_cb) (rename_calendar_cb, setup_create_ecal, delete_calendar_cb): * gui/calendar-commands.c (purge_cmd): Remove separators from dialogs. Use frame style recommended by the HIG. svn path=/trunk/; revision=23989
* make sure we connect to the "changed" signals after setting the initialRodrigo Moya2003-12-181-9/+11
| | | | | | | | | | | | 2003-12-18 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-component.c (impl_createControls): make sure we connect to the "changed" signals after setting the initial selections on the ESourceSelector. Fixes some nasty warnings because of calendar_control_sensitize_calendar_commands being called with no container yet for the control. svn path=/trunk/; revision=23979
* use g_file_test to check if the 'pixmap' argument is a file. If so, getRodrigo Moya2003-12-181-2/+3
| | | | | | | | | | | 2003-12-17 Rodrigo Moya <rodrigo@ximian.com> * gui/tasks-component.c (add_popup_menu_item): * gui/calendar-component.c (add_popup_menu_item): use g_file_test to check if the 'pixmap' argument is a file. If so, get the pixmap from it, or gtk_image_new_from_stock will return an empty pixmap. svn path=/trunk/; revision=23969
* set a correct status message.Rodrigo Moya2003-12-181-3/+4
| | | | | | | | | | | | | | | 2003-12-17 Rodrigo Moya <rodrigo@ximian.com> * gui/gnome-cal.c (client_cal_opened_cb): set a correct status message. * gui/tasks-component.c (fill_popup_menu_cb): * gui/calendar-component.c (fill_popup_menu_cb): use the folder*.png icons for folder operations. * gui/Makefile.am: removed cal-client directory from $INCLUDES. svn path=/trunk/; revision=23968
* removed the 'NewCalendar' verb. (file_new_calendar_cb): removed callbackRodrigo Moya2003-12-171-3/+14
| | | | | | | | | | | | | | | | 2003-12-17 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-commands.c: removed the 'NewCalendar' verb. (file_new_calendar_cb): removed callback for 'NewCalendar' verb. (impl__get_userCreatableItems): added 'New Calendar' to the list of user creatable items. (impl_requestCreateItem): implemented 'New Calendar'. * gui/tasks-component.c (impl__get_userCreatableItems): added 'New Task List' to the list of user creatable items. (impl_requestCreateItem): implemented 'New Task List'. svn path=/trunk/; revision=23965
* call calendar_control_sensitize_calendar_commands when the primaryRodrigo Moya2003-12-171-29/+10
| | | | | | | | | | | | | | | | | 2003-12-17 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-component.c (update_uri_for_primary_selection): call calendar_control_sensitize_calendar_commands when the primary selection changes. (impl_createControls): keep the view_control in the private structure and use control_factory_new_control() to create the control. (control_activate_cb): removed unneeded function. * gui/tasks-component.c (impl_createControls): use tasks_control_new to create the tasks view control. (control_activate_cb): removed unneeded function. svn path=/trunk/; revision=23962
* set a proper exception if we failJP Rosevear2003-12-151-2/+4
| | | | | | | | | | | | | | | | | 2003-12-14 JP Rosevear <jpr@ximian.com> * gui/calendar-component.c (impl_requestCreateItem): set a proper exception if we fail 2003-12-14 JP Rosevear <jpr@ximian.com> * gui/calendar-config.c (calendar_config_get_hide_completed_tasks_units): make sure the string is non-null before strcmp'ing it Fixes #52033 svn path=/trunk/; revision=23938
* free the notification listJP Rosevear2003-12-041-1/+2
| | | | | | | | | | | | | 2003-12-03 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.c (gnome_calendar_destroy): free the notification list * gui/tasks-component.c (impl_dispose): ditto * gui/calendar-component.c (impl_dispose): ditto svn path=/trunk/; revision=23610
* cast the parent (config_primary_selection_changed_cb): handle the primaryJP Rosevear2003-12-031-21/+126
| | | | | | | | | | | | | | | | 2003-12-03 JP Rosevear <jpr@ximian.com> * gui/calendar-component.c (rename_calendar_cb): cast the parent (config_primary_selection_changed_cb): handle the primary selection changing elsewhere (impl_dispose): remove the list of notifications (impl_createControls): add primary calendar notification (config_create_ecal_changed_cb): clear create_ecal if the primary key changes (setup_create_ecal): find an ecal to use for creation (impl_requestCreateItem): use above svn path=/trunk/; revision=23600
* Replace member "activity" with an "activity_id".Ettore Perazzoli2003-12-021-11/+25
| | | | | | | | | | | | | | | | | | | | | * gui/e-calendar-table.h (struct _ECalendarTable): Replace member "activity" with an "activity_id". * gui/e-cal-view.c (struct _ECalendarViewPrivate): Replace member "activity" with "activity_id". (e_calendar_view_destroy): Don't unref activity here anymore. (e_calendar_view_set_status_message): Report progress using the EActivityHandler off the CalendarComponent. * gui/calendar-component.c (struct _CalendarComponentPrivate): New member activity_handler. (calendar_component_init): Init. (calendar_component_peek_activity_handler): New. (impl_dispose): Unref. (impl_createControls): Return an ETaskBar for the statusbar control. svn path=/trunk/; revision=23565
* Pass a label for the status bar control for now.Ettore Perazzoli2003-12-021-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (impl_createControls): Pass a label for the status bar control for now. * gui/calendar-component.c (impl_createControls): Pass a label for the status bar control for now. * gui/tasks-component.c (impl_createControls): Pass a label for the status bar control for now. * mail-component.c (impl_createControls): Pass a label for the status bar control for now. * e-shell.c (struct _EShellPrivate): Remove member activity_handler. (setup_activity_interface): Remove. (e_shell_init): Don't call. (create_window): Don't attach the task bar to the activity handler. * e-shell-window.c (struct _ComponentView): New member statusbar_widget. (struct _EShellWindowPrivate): Remove member task_bar. (init_view): Get the status bar control from createControls and put it in the ComponentView struct. (setup_task_bar): New. (setup_statusbar_notebook): New. (switch_view): Switch the statusbar notebook too. (impl_dispose): Add missing GTK_OBJECT() cast. (e_shell_window_peek_task_bar): Remove. * Evolution-Component.idl (Component::createControls): New out arg "statusbar_control"; this way components can provide their own status bar. * e-activity-handler.c, e-activity-handler.h: Turn into a plain GObject; translate all the CORBA methods into plain C methods. * Makefile.am: Move e-activity-handler to libeshell instead of it being in the shell. svn path=/trunk/; revision=23555
* fixed copyright notices.Rodrigo Moya2003-11-241-1/+18
| | | | | | | | | | | | | | | | | | | 2003-11-23 Rodrigo Moya <rodrigo@ximian.com> * gui/dialogs/new-calendar.[ch]: fixed copyright notices. * gui/dialogs/copy-source-dialog.[ch]: implementation of the Copy command for sources. * gui/dialogs/Makefile.am: added new files. * gui/calendar-component.c (fill_popup_menu_cb, copy_calendar_cb): added Copy command. * gui/tasks-component.c (fill_popup_menu_cb, copy_task_list_cb): added Copy command. svn path=/trunk/; revision=23471
* add protos82003-11-191-15/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-11-18 <jpr@ximian.com> * gui/calendar-config.h: add protos * gui/calendar-config.c (calendar_config_get_primary_calendar): get the primary calendar (calendar_config_set_primary_calendar): set it (calendar_config_add_notification_primary_calendar): set notifications for it (calendar_config_get_primary_tasks): get the primary task list (calendar_config_set_primary_tasks): set it (calendar_config_add_notification_primary_tasks): set notifications for it * gui/calendar-config-keys.h: add primary keys * gui/calendar-component.c (find_first_source): find any source (update_uri_for_primary_selection): set the default uri and save the source uid (update_primary_selection): set the primary selection (primary_source_selection_changed_cb): use above (impl_createControls): set the primary selection * gui/tasks-component.c: as above svn path=/trunk/; revision=23434
* removed the 'New...' menu items from the UI, it's now implemented in theRodrigo Moya2003-11-191-1/+1
| | | | | | | | | | | 2003-11-18 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-commands.c (calendar_control_sensitize_calendar_commands, sensitize_taskpad_commands): removed the 'New...' menu items from the UI, it's now implemented in the shell. svn path=/trunk/; revision=23421
* added 'sensitive' argument. (fill_popup_menu_cb): disable/enable menuRodrigo Moya2003-11-191-1/+1
| | | | | | | | | | | | | | 2003-11-18 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-component.c (add_popup_menu_item): added 'sensitive' argument. (fill_popup_menu_cb): disable/enable menu items depending on whether there is a selection or not. * gui/tasks-component.c (add_popup_menu_item, fill_popup_menu_cb): ditto. svn path=/trunk/; revision=23419
* added 'sensitive' argument. (fill_popup_menu_cb): disable/enable menuRodrigo Moya2003-11-191-5/+15
| | | | | | | | | | | | | | 2003-11-18 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-component.c (add_popup_menu_item): added 'sensitive' argument. (fill_popup_menu_cb): disable/enable menu items depending on whether there is a selection or not. * gui/tasks-component.c (add_popup_menu_item, fill_popup_menu_cb): ditto. svn path=/trunk/; revision=23416
* peek the primary selection.Rodrigo Moya2003-11-181-34/+23
| | | | | | | | | | 2003-11-17 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-component.c (delete_calendar_cb, rename_calendar_cb): * gui/tasks-component.c (delete_task_list_cb, rename_task_list_cb): peek the primary selection. svn path=/trunk/; revision=23392
* try first to create the icon from the stock, and then from a file.Rodrigo Moya2003-11-171-4/+39
| | | | | | | | | | | | | | | | 2003-11-17 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-component.c (add_popup_menu_item): try first to create the icon from the stock, and then from a file. (fill_popup_menu_cb): set callback for 'Rename' menu item. (rename_calendar_cb): callback for 'Rename' menu item. (new_calendar_cb): fixed arguments. * gui/tasks-component.c (impl_createControls): connect to "fill_popup_menu" signal on the source selector. (fill_popup_menu_cb): callback to create our menu items. svn path=/trunk/; revision=23388
* add it via e-tasks (remove_uri_for_source): remove it via e-tasksJP Rosevear2003-11-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-11-16 JP Rosevear <jpr@ximian.com> * gui/tasks-component.c (add_uri_for_source): add it via e-tasks (remove_uri_for_source): remove it via e-tasks (get_default_task): provide a default for editing (impl_createControls): create the control directly (impl_requestCreateItem): implement * gui/gnome-cal.c (gnome_calendar_purge): don't let the two list iterators clobber each other * gui/e-tasks.h: add protos * gui/e-tasks.c (e_tasks_destroy): free the client list and the hash, disconnect signals (e_tasks_new_task): use the default client (e_tasks_add_todo_uri): add a uri (e_tasks_remove_todo_uri): remove a uri (e_tasks_set_default_uri): set default uri (e_tasks_get_default_client): get default client (e_tasks_delete_completed): expunge from all clients (e_tasks_setup_view_menus): use default client uri * gui/e-tasks.c (set_timezone): set the timezone for all clients (e_tasks_init): set up the clients has table * gui/e-calendar-table.etspec: yank some useless display columns * gui/e-cal-model.c (remove_client): remove objects in reverse order so we don't clobber ourselves * gui/calendar-component.c: add FIXME svn path=/trunk/; revision=23373
* set up a event to be edited (impl_requestCreateItem): implementJP Rosevear2003-11-171-17/+84
| | | | | | | | | | 2003-11-16 JP Rosevear <jpr@ximian.com> * gui/calendar-component.c (get_default_event): set up a event to be edited (impl_requestCreateItem): implement svn path=/trunk/; revision=23371
* config accessor (calendar_config_set_calendars_selected): dittoJP Rosevear2003-11-151-22/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-11-14 JP Rosevear <jpr@ximian.com> * gui/calendar-config.c (calendar_config_get_calendars_selected): config accessor (calendar_config_set_calendars_selected): ditto (calendar_config_add_notification_calendars_selected): config notification * gui/calendar-config.h: add protos * gui/calendar-config-keys.h: add new key * gui/calendar-component.c (is_in_uids): util function (update_uris_for_selection): save the selection in the configuration (update_selection): update the selection from the config info (source_selection_changed_cb): only pass one param (config_selection_changed_cb): listen for config changes (impl_dispose): remove config notification (impl_createControls): use bonobo_exception_set; add a config notification 2003-11-14 JP Rosevear <jpr@ximian.com> * test-source-list.c (on_idle_do_stuff): we only need the uid to remove and peek at stuff * e-source-list.h: update proto types * e-source-list.c (e_source_list_peek_source_by_uid): allow peek by uid only (e_source_list_remove_source_by_uid): allow removal by uid only svn path=/trunk/; revision=23362
* New. (impl_requestCreateItem): New. (tasks_component_class_init): Install.Ettore Perazzoli2003-11-131-1/+0
| | | | | | | | | | | | * gui/tasks-component.c (impl__get_userCreatableItems): New. (impl_requestCreateItem): New. (tasks_component_class_init): Install. * gui/calendar-component.c (impl__get_userCreatableItems): New. (impl_requestCreateItem): New, for now just a stub. (calendar_component_class_init): Install into the EPV. svn path=/trunk/; revision=23327
* (impl__get_userCreatableItems): New.Ettore Perazzoli2003-11-131-2/+58
| | | | | | | (impl_requestCreateItem): New, for now just a stub. (calendar_component_class_init): Install into the EPV. svn path=/trunk/; revision=23320
* Use non-deprecated gtk_menu_shell_append ().Hans Petter Jansson2003-11-131-1/+1
| | | | | | | | | 2003-11-12 Hans Petter Jansson <hpj@ximian.com> * gui/calendar-component.c (add_popup_menu_item): Use non-deprecated gtk_menu_shell_append (). svn path=/trunk/; revision=23306
* added more menu items. (delete_calendar_cb): callbacks for new popup menuRodrigo Moya2003-11-041-10/+56
| | | | | | | | | | | | | | | | | | | | | | 2003-11-04 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-component.c (fill_popup_menu_callback): added more menu items. (delete_calendar_cb): callbacks for new popup menu items. (impl_createControls): add the source selector widget to the CalendarComponentPrivate structure. * gui/migration.[ch] (migrate_old_tasks): new function to migrate old tasks setups. (process_old_dir): renamed and added a "filename" argument, so that the same function can be used for tasks and calendar directories. (migrate_old_calendars): added new argument when calling process_old_dir(). * gui/tasks-component.c (tasks_component_init): call migrate_old_tasks() if there are no groups defined. svn path=/trunk/; revision=23181
* Add the webcal source group.Hans Petter Jansson2003-11-011-1/+5
| | | | | | | | | | | | | | | | | | | | 2003-10-31 Hans Petter Jansson <hpj@ximian.com> * gui/calendar-component.c (calendar_component_init): Add the webcal source group. * gui/dialogs/new-calendar.c (print_uri_noproto): Implement. (group_is_remote): Implement. (create_new_source_with_group): Implement webcal case. (new_calendar_dialog): Get optional location from dialog. * gui/dialogs/new-calendar.glade: Add location entry. * pcs/Makefile.am: Build http backend. * pcs/cal-backend-http.[ch]: Add skeleton based on cal-backend-file. svn path=/trunk/; revision=23153
* set an exception if we fail, so evo won't crash.Dan Winship2003-10-301-0/+6
| | | | | | | * gui/calendar-component.c (impl_createControls): set an exception if we fail, so evo won't crash. svn path=/trunk/; revision=23121
* no need to update config settings everywhere explicitlyJP Rosevear2003-10-291-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-10-29 JP Rosevear <jpr@ximian.com> * gui/dialogs/cal-prefs-dialog.c (update_config): no need to update config settings everywhere explicitly * gui/tasks-component.c (update_uris_for_selection): cast the widget * gui/gnome-cal.h: remove proto * gui/gnome-cal.c (setup_widgets): don't update config settings explicitly (gnome_calendar_update_config_settings): kill * gui/e-week-view.c: remove null chars * gui/e-tasks.h: remove proto * gui/e-tasks.c (set_timezone): set the timezone on the client (timezone_changed_cb): changed timezone callback (setup_config): setup config stuff (e_tasks_init): setup config and widgets here (e_tasks_new): construct is dead, no need to track all widgets (cal_opened_cb): set the timezone upon opening (e_tasks_update_all_config_settings): kill * gui/control-factory.c (control_factory_new_control): create the calendar ourselves * gui/calendar-config.c (on_timezone_set): don't update the settings everywhere here, we have config managers now * gui/calendar-component.c (impl_createControls): create the calendar ourselves * gui/calendar-commands.h: remove protos * gui/calendar-commands.c: remove dead functions svn path=/trunk/; revision=23117
* set the timezone for all clients (timezone_changed_cb): callback forJP Rosevear2003-10-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-10-29 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.c (set_timezone): set the timezone for all clients (timezone_changed_cb): callback for changes (setup_config): setup the configuration (setup_widgets): setup up configuration managers for the list view, task list and date navigator (gnome_calendar_init): setup config (gnome_calendar_destroy): destroy configuration managers and notifications (gnome_calendar_update_config_settings): remove dead bits * gui/e-mini-calendar-config.[hc]: manage configuration of an e-calendar * gui/e-day-view-config.h: remove extraneous comment, type the parent class correctly * gui/e-week-view-config.h: ditto * gui/e-day-view-config.c (e_day_view_config_class_init): type the class correctly (set_timezone): set timezone (timezone_changed_cb): timezone changed callback (e_day_view_config_set_view): track timezone changes * gui/e-week-view-config.c: ditto * gui/e-cell-date-edit-config.[hc]: manage configuration of a date edit cell * gui/e-calendar-table-config.[hc]: manage configuration of a e-calendar-table * gui/e-cal-list-view.c (get_current_time_cb): use the view timezone to compute * gui/e-cal-list-view-config.[hc]: manage configuration of a list view * gui/calendar-config.h: update protos * gui/calendar-config.c (calendar_config_add_notification_timezone): notify of timezone change (calendar_config_add_notification_dnav_show_week_no): notify of show week number setting change * gui/calendar-component.c (calendar_component_peek): remove bad comma * gui/Makefile.am: build new config classes svn path=/trunk/; revision=23114
* fixed typo in menu item label.Rodrigo Moya2003-10-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-10-29 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-component.c (fill_popup_menu_callback): fixed typo in menu item label. * gui/e-cal-model.[ch] (e_cal_model_get_use_24_hour_format): new function. * gui/e-cal-view.[ch]: no need to keep the 'use_24_hour' setting, it's already in the model. (e_cal_view_get_use_24_hour_format, e_cal_view_set_use_24_hour_format): new functions. * gui/e-day-view.[ch] (e_day_view_get_24_hour_format, (e_day_view_set_24_hour_format): removed. (e_day_view_convert_time_to_display, e_day_view_update_event_label, e_day_view_get_time_string_width): use the ECalView's function to get the 24 hour format. * gui/e-week-view.[ch] (e_week_view_get_24_hour_format, e_week_view_set_24_hour_format): removed. (e_week_view_convert_time_to_display, e_week_view_get_time_string_width): use the ECalView's function to get the 24 hour format. * gui/e-day-view-top-item.c (e_day_view_top_item_draw_long_event): * gui/e-day-view-time-item.c (e_day_view_time_item_draw): * gui/e-week-view-event-item.c (e_week_view_draw_time): don't use the view's use_24_hour_format, but the ECalView method. svn path=/trunk/; revision=23113
* connect to "fill_popup_menu" on the ESourceSelector.Rodrigo Moya2003-10-291-1/+8
| | | | | | | | | | | | | 2003-10-28 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-component.c (impl_createControls): connect to "fill_popup_menu" on the ESourceSelector. (fill_popup_menu_callback): add popup menu items here. (add_popup_menu_item): new function to add items to the popup menu. (new_calendar_cb): callbacks for the popup menu items. svn path=/trunk/; revision=23108
* connect to "fill_popup_menu" on the ESourceSelector.Rodrigo Moya2003-10-291-0/+36
| | | | | | | | | | | | 2003-10-28 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-component.c (impl_createControls): connect to "fill_popup_menu" on the ESourceSelector. (fill_popup_menu_callback): add popup menu items here. (add_popup_menu_item): new function to add items to the popup menu. svn path=/trunk/; revision=23107
* removed repeated initialization. (calendar_component_peek): use G_STRLOCRodrigo Moya2003-10-251-3/+1
| | | | | | | | | | | | | | | | | | | | | 2003-10-24 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-component.c (calendar_component_class_init): removed repeated initialization. (calendar_component_peek): use G_STRLOC for g_warning's. * gui/tsaks-control.[ch] (tasks_control_activate, tasks_control_deactivate): made these 2 functions public. * gui/tasks-component.[ch]: implementation of the tasks component. * gui/Makefile.am: * gui/GNOME_Evolution_Calendar.server.in.in: added tasks component. * gui/main.c: ditto. (factory): added code to create the tasks component when requested. svn path=/trunk/; revision=23065
* update protosJP Rosevear2003-10-241-30/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-10-24 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.h: update protos * gui/gnome-cal.c (gnome_calendar_set_default_uri): set the default client based on uri * gui/calendar-component.c (add_uri_for_source): rename from load_uri_for_source and take a calendar (remove_uri_for_source): utility routine to remove the source's uri from the calendar (is_in_selection): checks to see if the uid of the given source matches any of those in the given selection (update_uris_for_selection): remove any uris no longer in the selection, add those that still exist (source_selection_changed_callback): call above (primary_source_selection_changed_callback): we have the calendar easily now; set the default by uri (control_activate_cb): handle activation and de-activation (impl_createControls): create the calendar control ourselves so we have access to the calendar (impl_dispose): release the source selection svn path=/trunk/; revision=23057
* just uses the views array and the current view type (setup_widgets): dittoJP Rosevear2003-10-241-0/+5
| | | | | | | | | | | | | | 2003-10-23 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.c (gnome_calendar_get_current_view_widget): just uses the views array and the current view type (setup_widgets): ditto (set_view): ditto (backend_died_cb): ditto (gnome_calendar_get_calendar_model): ditto (gnome_calendar_update_config_settings): ditto svn path=/trunk/; revision=23054
* Make the scrolled window have a GTK_SHADOW_IN shadow. Likewise.Ettore Perazzoli2003-10-231-0/+2
| | | | | | | | * gui/calendar-component.c (impl_createControls): Make the scrolled window have a GTK_SHADOW_IN shadow. * gui/dialogs/meeting-page.c (meeting_page_construct): Likewise. svn path=/trunk/; revision=22994
* (impl_createControls): Set theEttore Perazzoli2003-10-231-0/+2
| | | | | | | scrollbar policy to "automatic" for both the horizontal and vertical scrollbars around the source selector. svn path=/trunk/; revision=22991
* Merge new-ui-branch to the trunk.Ettore Perazzoli2003-10-221-666/+183
| | | | svn path=/trunk/; revision=22965
* Fixes #35814Rodney Dawes2003-04-291-2/+2
| | | | | | | | | | | | | 2003-04-27 Rodney Dawes <dobey@ximian.com> Fixes #35814 * calendar/gui/calendar-component.c: Change mnemonic/keybinding for New Meeting to not conflict with other items in the File->New menu * ui/evolution.xml: Changed the New Folder keybinding to C-S-f svn path=/trunk/; revision=20984
* If we already have an evolution_dir, free the old one before setting itHans Petter Jansson2003-04-161-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-04-15 Hans Petter Jansson <hpj@ximian.com> * gui/calendar-component.c (owner_set_cb): If we already have an evolution_dir, free the old one before setting it anew. * gui/e-day-view-time-item.c (e_day_view_time_item_draw): Unref the metrics. * gui/e-day-view.c (e_day_view_style_set): Unref the metrics. (e_day_view_recalc_cell_sizes): We don't need font metrics here. (e_day_view_reshape_long_event): Ditto. * gui/e-meeting-model.c (init): Don't dup the string passed to e_table_without_hide(). * gui/e-meeting-time-sel.c (e_meeting_time_selector_style_set): Unref the metrics. (e_meeting_time_selector_recalc_date_form): Doesn't need metrics. * gui/e-week-view-main-item.c (e_week_view_main_item_draw_day): Unref the metrics. * gui/e-week-view.c (e_week_view_style_set): Unref metrics. (e_week_view_recalc_cell_sizes): Ditto. (e_week_view_reshape_event_span): Move Pango stuff to where it can't be leaked due to an early return. Unref metrics. * gui/weekday-picker.c (weekday_picker_style_set): Unref metrics. * gui/dialogs/meeting-page.c (meeting_page_finalize): Free default address. svn path=/trunk/; revision=20857
* Fixes #39740Rodrigo Moya2003-03-151-9/+0
| | | | | | | | | | | | | | | | | | | | 2003-03-14 Rodrigo Moya <rodrigo@ximian.com> Fixes #39740 * gui/e-meeting-model.c (is_cell_editable): check row number is valid before using it as index for the GPtrArray. 2003-03-14 Rodrigo Moya <rodrigo@ximian.com> Fixes #39356 * gui/Makefile.am: * gui/tasks-migrate.[ch]: removed tasks migration obsolete stuff. * gui/calendar-component.c (owner_set_cb): don't call tasks_migrate. svn path=/trunk/; revision=20301
* Remove cruft. Rename ICONSDIR to IMAGESDIR. (gladedir, etspecdir,Dan Winship2003-02-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/Makefile.am (INCLUDES): Remove cruft. Rename ICONSDIR to IMAGESDIR. (gladedir, etspecdir, serverdir): Remove definitions (libevolution_calendar_la_LDFLAGS): Remove -export-dynamic, add -module. * gui/calendar-config.c: #include <string.h> * gui/calendar-component.c (add_creatable_item): s/ICONSDIR/IMAGESDIR/ * gui/comp-util.c: #include <string.h> * gui/e-alarm-list.c: #include e-time-utils.h (row_deleted): Remove unused variable. (e_alarm_list_append): Likewise. * gui/e-date-time-list.c: #include e-time-utils.h, timeutil.h, calendar-config.h (row_deleted): Remove unused variable (e_date_time_list_append): Likewise. * gui/e-day-view.c (e_day_view_unrealize): Remove unused var (e_day_view_style_set): Likewise. (e_day_view_set_event_font_cb): Likewise. * gui/e-day-view-time-item.c: #include <string.h> (e_day_view_time_item_get_column_width): Remove unused variable. * gui/e-itip-control.c: #include <unistd.h> (url_requested_cb): s/ICONSDIR/IMAGESDIR/ * gui/e-week-view.c (e_week_view_unrealize): Remove unused variable (e_week_view_style_set): Likewise * gui/e-week-view-titles-item.c: #include string.h * gui/itip-bonobo-control.c: Likewise * gui/print.c: Likewise svn path=/trunk/; revision=19794
* Removed. Removed.Ettore Perazzoli2003-01-141-24/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/config-control-factory.h: Removed. * gui/config-control-factory.c: Removed. * gui/itip-bonobo-control.c: Renamed from itip-control-factory.c. (itip_bonobo_control_new): New. (itip_control_factory_init): Removed. * gui/itip-bonobo-control.h: Renamed from itip-control-factory.h. * gui/tasks-control-factory.c: Removed. * gui/tasks-control-factory.h: Removed. * gui/control-factory.c (control_factory_init): Removed. * gui/Makefile.am: Updated to build everything as libevolution-calendar.so and install in the COMPONENTDIR. * gui/GNOME_Evolution_Calendar.server.in.in: Updated to build the component as a shared library. * gui/main.c (main): Removed. * gui/calendar-component.c (calendar_component_get_object): New. (owner_set_cb): Do not store the shell pointer in shells. (owner_unset_cb): Do not remove the shell pointer from shells; instead, just set global_shell_client to NULL. * gui/calendar-component.h: Renamed from component-factory.h. * gui/calendar-component.c: Renamed from component-factory.c. svn path=/trunk/; revision=19430
* Pass the env argument to bonobo_control_set_property ().Hans Petter Jansson2002-12-071-2/+2
| | | | | | | | | | | | | | 2002-12-06 Hans Petter Jansson <hpj@ximian.com> * gui/component-factory.c (): Pass the env argument to bonobo_control_set_property (). * gui/e-meeting-model.c (class_init): We're no longer derived from GtkObject, so use GObject class methods instead. destroy->finalize. (destroy): Zapped. (finalize): Implement based on old destroy (). svn path=/trunk/; revision=19048
* pass type to bonobo_control_set_property.Not Zed2002-11-211-2/+2
| | | | | | | | | 2002-11-21 Not Zed <NotZed@Ximian.com> * gui/component-factory.c (create_view): pass type to bonobo_control_set_property. svn path=/trunk/; revision=18872
* Use bonobo_main_quit instead of gtkRodney Dawes2002-11-161-1/+1
| | | | | | * gui/component-factory.c: Use bonobo_main_quit instead of gtk svn path=/trunk/; revision=18787
* Use g_object_ref()/g_object_unref() instead ofEttore Perazzoli2002-11-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * calendar-commands.c: Use g_object_ref()/g_object_unref() instead of gtk_object_ref/gtk_object_unref(). * calendar-config.c: Likewise. * calendar-model.c: Likewise. * comp-editor-factory.c: Likewise. * comp-util.c: Likewise. * e-calendar-table.c: Likewise. * e-day-view.c: Likewise. * e-itip-control.c: Likewise. * e-meeting-model.c: Likewise. * e-meeting-time-sel.c: Likewise. * e-tasks.c: Likewise. * e-timezone-entry.c: Likewise. * e-week-view.c: Likewise. * gnome-cal.c: Likewise. * goto.c: Likewise. * itip-utils.c: Likewise. * print.c: Likewise. * tasks-control.c: Likewise. * tasks-migrate.c: Likewise. * gui/cal-search-bar.c: Use g_object_new() instead of gtk_type_new(). * gui/calendar-model.c: Likewise. * gui/calendar-view-factory.c: Likewise. * gui/calendar-view.c: Likewise. * gui/calendar-view.c: Likewise. * gui/comp-editor-factory.c: Likewise. * gui/e-calendar-table.c: Likewise. * gui/e-cell-date-edit-text.c: Likewise. * gui/e-comp-editor-registry.c: Likewise. * gui/e-day-view.c: Likewise. * gui/e-itip-control.c: Likewise. * gui/e-meeting-attendee.c: Likewise. * gui/e-meeting-attendee.c: Likewise. * gui/e-meeting-model.c: Likewise. * gui/e-meeting-time-sel.c: Likewise. * gui/e-tasks.c: Likewise. * gui/e-timezone-entry.c: Likewise. * gui/e-week-view.c: Likewise. * gui/gnome-cal.c: Likewise. * gui/weekday-picker.c: Likewise. * gui/e-itip-control.c (get_servers): g_object_unref the shell_client instead of using bonobo_object_unref(). * gui/component-factory.c (owner_set_cb): Use evolution_shell_client_corba_objref() instead of bonobo_object_corba_objref(). svn path=/trunk/; revision=18673
* Use g_signal_connect() instead of gtk_signal_connect(). Likewise.Ettore Perazzoli2002-11-091-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/calendar-commands.c: Use g_signal_connect() instead of gtk_signal_connect(). * calendar-commands.c: Likewise. * calendar-config.c: Likewise. * calendar-model.c: Likewise. * comp-editor-factory.c: Likewise. * component-factory.c: Likewise. * control-factory.c: Likewise. * e-calendar-table.c: Likewise. * e-comp-editor-registry.c: Likewise. * e-day-view-time-item.c: Likewise. * e-day-view.c: Likewise. * e-itip-control.c: Likewise. * e-meeting-model.c: Likewise. * e-meeting-time-sel.c: Likewise. * e-tasks.c: Likewise. * e-timezone-entry.c: Likewise. * e-week-view.c: Likewise. * gnome-cal.c: Likewise. * goto.c: Likewise. * tasks-control.c: Likewise. * tasks-migrate.c: Likewise. * weekday-picker.c: Likewise. svn path=/trunk/; revision=18672
* Initial port of gui/ subdir to GNOME 2JP Rosevear2002-11-081-7/+8
| | | | | | | | 2002-11-07 JP Rosevear <jpr@ximian.com> * Initial port of gui/ subdir to GNOME 2 svn path=/trunk/; revision=18648
* Fixes #32613Rodrigo Moya2002-10-231-10/+25
| | | | | | | | | | | | 2002-10-23 Rodrigo Moya <rodrigo@ximian.com> Fixes #32613 * gui/component-factory.c (sc_user_create_new_item_cb): use the default calendar/tasks folder to activate the component editor. (get_data_uri): deal correctly with the URIs being used. svn path=/trunk/; revision=18415
* Add "calendar/public" and "tasks/public". (type_is_calendar,Dan Winship2002-09-261-18/+44
| | | | | | | | | | | | | | | | | * gui/component-factory.c (folder_types): Add "calendar/public" and "tasks/public". (type_is_calendar, type_is_tasks): New utility functions (create_view, create_folder, remove_folder, xfer_folder, sc_user_create_new_item_cb): Use type_is_calendar/type_is_tasks * importers/icalendar-importer.c (get_uri_from_folder_path): allow importing into public calendar/task folders too. * gui/e-itip-control.c: Note that it's intentional that we use "calendar" and "tasks" here instead of "calendar/*" and "tasks/*". (31032) svn path=/trunk/; revision=18222
* Pass NULL as @unpopulate_folder_context_menu_fn toEttore Perazzoli2002-09-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (create_component): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * gui/component-factory.c (create_object): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * mail-account-gui.c (mail_account_gui_save): Remove unused variable. * component-factory.c (unpopulate_folder_context_menu): New. (create_component): Pass it to evolution_shell_component_new(). * component-factory.c (create_component): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * e-storage-set-view.c (popup_folder_menu): Remove the context menu items using evolution_shell_component_client_unpopulate_folder_context_menu() instead of doing it ourself, since BonoboUI sucks. * evolution-shell-component-client.c (evolution_shell_component_client_unpopulate_folder_context_menu): New. * evolution-test-component.c (register_component): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * evolution-shell-component.c: New member unpopulate_folder_context_menu_fn in EvolutionShellComponentPrivate. New member uic in EvolutionShellComponentPrivate. (init): Init new members to NULL. (destroy): bonobo_object_unref() priv->uic if not NULL. (evolution_shell_component_new): New arg @unpopulate_folder_context_menu_fn. (evolution_shell_component_construct): Likewise. (impl_populateFolderContextMenu): Set priv->uic to the newly created UIComponent. (impl_unpopulateFolderContextMenu): New, implementation for the ::unpopulateFolderContextMenu CORBA method. (class_init): Install. * Evolution-ShellComponent.idl (unpopulateFolderContextMenu): New method. (AlreadyPopulated): New exception. (populateFolderContextMenu): Can raise it. (NotPopulated): New exception. svn path=/trunk/; revision=17963
* Use meeting-request-16.png instead of meeting-request.png.Ettore Perazzoli2002-08-021-1/+1
| | | | | | | | | | * gui/component-factory.c (create_object): Use meeting-request-16.png instead of meeting-request.png. * gui/calendar-commands.c (pixmaps): Remove pixmaps in /menu/File/New/NewFirstItem/. svn path=/trunk/; revision=17676
* Change the order so that "New Contact" is first and "New Contact List" isEttore Perazzoli2002-08-011-5/+5
| | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (create_component): Change the order so that "New Contact" is first and "New Contact List" is next. * gui/component-factory.c (create_object): Change the order of the user creatable items a bit so that "New Appointment" and "New Meeting" are at the top when in a calendar folder. * component-factory.c (create_component): Put "New Mail Message" before "New Message Post" instead of vice versa. * evolution-mail-global.xml: Remove "New Mail Message" and "Post Message" items. svn path=/trunk/; revision=17661
* Pass "contacts" as the @folder_type toEttore Perazzoli2002-08-011-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (add_creatable_item): Pass "contacts" as the @folder_type to evolution_shell_component_add_user_creatable_item(). * gui/component-factory.c (add_creatable_item): New arg @folder_type, pass it to evolution_shell_component_add_user_creatable_item(). (create_object): Set the right folder types for the various user-creatable items. * component-factory.c (create_component): Pass "mail" as @folder_type to evolution_shell_component_add_user_creatable_item(). * evolution-test-component.c (register_component): Pass NULL for @folder_type to evolution_shell_component_add_user_creatable_item(). * e-shell-user-creatable-items-handler.c: New member folder_type in struct MenuItem. (ensure_menu_items): Initialize ->folder_type. (item_is_default): New helper function. (create_menu_xml): New arg @folder_type. Put the items on the top using item_is_default(). (shell_view_view_changed_callback): Pass the folder type to create_menu_xml(). * evolution-shell-component.c: New member folder_type in UserCreatableItemType. (user_creatable_item_type_new): New arg @folder_type. (user_creatable_item_type_free): Free ->folder_type. (evolution_shell_component_add_user_creatable_item): New arg @folder_type. (impl__get_userCreatableItemTypes): Set ->folderType in the returned CORBA structs. * Evolution-ShellComponent.idl: New member folderType in struct UserCreatableItemType. * e-shell-user-creatable-items-handler.c: New member component_id in struct MenuItem. Removed member menu_xml from EShellUserCreatableItemsHandlerPrivate. (init): No need to initialize menu_xml here anymore. (impl_destroy): ...And no need to free here, either. (setup_menu_xml): New, derived from ensure_menu_xml(). This orders the menu so that the items for the current component go at the top. (create_menu_xml): Removed. (e_shell_user_creatable_items_handler_attach_menus): Set up properly for the current component ID, using setup_menu_xml(). svn path=/trunk/; revision=17658
* New arg @tooltip; pass it toEttore Perazzoli2002-07-021-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (add_creatable_item): New arg @tooltip; pass it to evolution_shell_component_add_user_creatable_item() [which now has a @tooltip arg]. * gui/component-factory.c (add_creatable_item): New arg @tooltip. Pass it to evolution_shell_component_add_user_creatable_item(), which now has a @tooltip arg. (create_object): Added tooltips. * component-factory.c (create_component): Pass a tooltip to evolution_shell_component_add_user_creatable_item. * e-shell-user-creatable-items-handler.c: New member tooltip in struct MenuItem. (ensure_menu_items): Initialize the tooltip member. (shell_view_view_changed_callback): Set the tooltip for the "New" button. (ensure_menu_xml): Set up the tooltip here as well. * evolution-shell-component.c: Add tooltip member to struct UserCreatableItemType. (user_creatable_item_type_new): New arg @tooltip. (evolution_shell_component_add_user_creatable_item): New arg @tooltip. (impl__get_userCreatableItemTypes): Put the tooltip in the struct as well. * e-shell-user-creatable-items-handler.c (setup_toolbar_button): Create a GtkTooltips object and attach it to the combo_button using gtk_object_set_data(). (shell_view_view_changed_callback): Set up a tooltip for the button, according to the default. * Evolution-ShellComponent.idl: Add a tooltip member to struct UserCreatableItemType. svn path=/trunk/; revision=17343
* if there are remaining items, return false (foreach_close_cb): don'tJP Rosevear2002-05-271-3/+1
| | | | | | | | | | | | | | | | | | | | 2002-05-26 JP Rosevear <jpr@ximian.com> * gui/e-comp-editor-registry.c (e_comp_editor_registry_close_all): if there are remaining items, return false (foreach_close_cb): don't remove the item if it couldn't be closed * gui/e-comp-editor-registry.h: update proto * gui/component-factory.c (request_quit): return a boolean indicating if everything was closed * gui/dialogs/comp-editor.h: update proto * gui/dialogs/comp-editor.c (comp_editor_close): return true if the editor was closed, false otherwise svn path=/trunk/; revision=17019
* a registry of comp editors so we can close them all centrallyJP Rosevear2002-05-271-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-05-26 JP Rosevear <jpr@ximian.com> * gui/e-comp-editor-registry.[hc]: a registry of comp editors so we can close them all centrally * gui/gnome-cal.c (gnome_calendar_init): there is no editor hash now (gnome_calendar_destroy): ditto (gnome_calendar_edit_object): look for the event editor in the registry, if it isn't there, create it and add it to the registry * gui/e-calendar-table.c (open_task): look for the task editor in the registry, if it isn't there, create it and add it to the registry * gui/component-factory.c (request_quit): close all open editors (create_object): add a request_quit function to the shell component * gui/comp-editor-factory.c (free_client): there is no uid_comp_hash to free any more (editor_destroy_cb): we get an OpenClient as callback data now, reduce the editor count and destroy it if it is 0 (edit_existing): don't create the Component, add the new editor to the registry, increase the editor count (edit_new): ditto (open_client): set the editor count to 0 (impl_editExisting): look in the registry for the editor * gui/Makefile.am: Build new sources * gui/main.c (main): create the registry * gui/dialogs/comp-editor.c (comp_editor_close): prompt to save and then close dialog * gui/dialogs/comp-editor.h: new proto * gui/GNOME_Evolution_Calendar.oaf.in: remove dead summary stuff svn path=/trunk/; revision=17018
* Check with e_shell_prepare_for_quit() before quitting.Ettore Perazzoli2002-05-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-shell-view-menu.c (command_quit): Check with e_shell_prepare_for_quit() before quitting. * e-shell.c (e_shell_prepare_for_quit): New. * evolution-test-component.c (request_quit_fn): New function asking for confirmation to quit. * evolution-shell-component.c (evolution_shell_component_new): New arg @request_quit_fn. (impl_requestQuit): New, implementation for EvolutionShellComponent::requestQuit. (evolution_shell_component_result_to_string): Handle EVOLUTION_SHELL_COMPONENT_CANCEL. (evolution_shell_component_client_request_quit): New. * Evolution-ShellComponent.idl (requestQuit): New. * component-factory.c (create_component): Pass NULL as @request_quit_fn. * component-factory.c (create_component): Pass NULL as @request_quit_fn. * gui/component-factory.c (create_object): Pass NULL as @request_quit_fn. * gui/component/addressbook-component.c (create_component): Pass NULL as @request_quit_fn. svn path=/trunk/; revision=16925
* Use new-and-improved default folder URI config paths.Dan Winship2002-04-111-0/+2
| | | | | | | | | | | | | | * cal-client/cal-client.c (get_default_uri): Use new-and-improved default folder URI config paths. * gui/calendar-config.c (calendar_config_{get,set}_default_uri, calendar_config_{get,set}_default_tasks_uri): Remove these. The shell owns this information now. (Weren't being used anyway.) * gui/component-factory.c (get_data_uri): Fix another place that hardcoded tacking foo.ics on to the end of URLs. svn path=/trunk/; revision=16421
* Add view_info arg. If the view_info is non-empty and this is a calendarDan Winship2002-04-091-0/+3
| | | | | | | | | | | | | | | | | | | * gui/component-factory.c (create_view): Add view_info arg. If the view_info is non-empty and this is a calendar folder, set the "view" property on the control's propertybag. * gui/control-factory.c (calendar_properties_init): Set up the "view" property. (get_prop, set_prop): handle the "view" property by getting/setting the GnomeCalendar's view. Unfortunately, this doesn't actually work. See #23208. * gui/calendar-commands.c (calendar_control_activate): Set the UI component's container before calling gnome_calendar_set_ui_component so that the search bar initialization will work. svn path=/trunk/; revision=16400
* add all day event editor modeJP Rosevear2002-03-151-22/+30
| | | | | | | | | | | | | | | | | | | 2002-03-14 JP Rosevear <jpr@ximian.com> * idl/evolution-calendar.idl: add all day event editor mode * gui/component-factory.c: clean up exception handling (sc_user_create_new_item_cb): support the all day event id (create_object): add a user creatable all day appointment item * gui/comp-editor-factory.c (get_default_event): get a default event either all day or starting at the top of the hour (get_default_task): get a default task (edit_new): support the all day event mode * gui/calendar-commands.c: remove unused functions/verbs svn path=/trunk/; revision=16157
* Add <visible>False</visible> to cal-prefs-dialog so it doesn't get shownEttore Perazzoli2002-03-131-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/dialogs/cal-prefs-dialog.glade: Add <visible>False</visible> to cal-prefs-dialog so it doesn't get shown when we load the Glade file with libglade. * gui/component-factory.c (owner_set_cb): Register the ConfigControl factory. * gui/tasks-control.c: Removed verb "TaskSettings". (tasks_control_settings_cmd): Removed. * gui/calendar-commands.c: Removed verb "CalendarSettings". (settings_cmd): Removed. * gui/dialogs/cal-prefs-dialog.c: Renamed `CalPrefsDialogPrivate' to `DialogData'. Replace `dialog' member with a `page' member. Remove `toplevel_notebook' member. (init_widgets): Renamed from `cal_prefs_dialog_init_widgets'. Just get a DialogData. (get_widgets): Get a DialogData pointer. (cal_prefs_dialog_destroy): Removed. (config_control_destroy_callback): New, signal handler for ::destroy for ConfigControl. (cal_prefs_dialog_new): Create a new DialogData, connect all the signal handlers. (create_time_edit): Renamed from `cal_prefs_dialog_create_time_edit'. (cal_prefs_dialog_show): Removed. (cal_prefs_dialog_button_clicked): Removed. (show_task_list_config): Get a DialogData. (show_config): Renamed from `cal_prefs_dialog_show_config'. Likewise. (update_task_list_config): Likewise. (update_config): Renamed from `cal_prefs_dialog_update_config'. Likewise. (color_set_callback): New callback, makes the dialog report changes when the setting in any of the color widgets is changed. (widget_changed_callback): New callback, makes the dialog report changes when any of the widgets changes status. (connect_changed): New utility function to connect this callback to all the widgets. (setup_widgets): Connect all the widgets. (cal_prefs_dialog_new): Call `setup_widgets'. * gui/config-control-factory.c: New. * gui/config-control-factory.h: New. * gui/GNOME_Evolution_Calendar.oaf.in: Add OAFIID:GNOME_Evolution_Calendar_ConfigControl and OAFIID:GNOME_Evolution_Calendar_ConfigControlFactory. svn path=/trunk/; revision=16135
* New helper function. (create_object): Add icons for the various userEttore Perazzoli2002-02-221-15/+40
| | | | | | | | * gui/component-factory.c (add_creatable_item): New helper function. (create_object): Add icons for the various user creatable items. svn path=/trunk/; revision=15790
* pass meeting boolean for gnome_calendar_edit_object andJP Rosevear2002-02-081-20/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-07 JP Rosevear <jpr@ximian.com> * gui/e-day-view.c: pass meeting boolean for gnome_calendar_edit_object and gnome_calendar_new_appointment_for * gui/e-week-view-event-item.c: ditto * gui/e-week-view.c: ditto * gui/tasks-control.c (confirm_expunge): kill warning * gui/calendar-commands.c (new_meeting_cb): show a new meeting dialog (new_event_cb): pass new param * gui/gnome-cal.c (gnome_calendar_edit_object): take meeting boolean and show meeting page if true (gnome_calendar_new_appointment_for): takeing meeting param and pass to above (gnome_calendar_new_appointment): add new param * gui/gnome-cal.h: update proto * gui/component-factory.c (create_component): take a comp editor mode, determine vtype (sc_user_create_new_item_cb): check for meeting user creatable item (create_object): add meeting as user creatable item * gui/comp-editor-factory.c (edit_new): get a comp editor mode now, determine vtype and show meeting page if required (queue_edit_new): get comp editor mode (impl_editNew): ditto, plus queue the mode directly instead of determining the vtype * gui/dialogs/event-editor.c (show_meeting): new internal util function to show meeting page (event_editor_show_meeting): show the meeting (schedule_meeting_cmd): use show_meeting * gui/dialogs/event-editor.h: new proto * idl/evolution-calendar.idl: editNew takes a mode rather than a type now * cal-util/Makefile.am: fix includes svn path=/trunk/; revision=15595
* Pass a NULL @icon toEttore Perazzoli2002-01-241-4/+4
| | | | | | | * gui/component-factory.c (create_object): Pass a NULL @icon to `evolution_shell_component_add_user_creatable_item()'. svn path=/trunk/; revision=15440
* Fixing the license text.Ettore Perazzoli2001-10-281-1/+0
| | | | svn path=/trunk/; revision=14211
* Update the licensing information to require version 2 of the GPLEttore Perazzoli2001-10-271-2/+2
| | | | | | (instead of version 2 or any later version). svn path=/trunk/; revision=14190
* Handle tasks folders as well; was always using "calendar.ics" as theFederico Mena Quintero2001-10-251-2/+14
| | | | | | | | | 2001-10-25 Federico Mena Quintero <federico@ximian.com> * gui/component-factory.c (xfer_folder): Handle tasks folders as well; was always using "calendar.ics" as the filename. svn path=/trunk/; revision=14087
* Fixed to only copy the `calendar.ics' and `calendar.ics~' files.Ettore Perazzoli2001-10-251-99/+88
| | | | | | | * gui/component-factory.c (xfer_folder): Fixed to only copy the `calendar.ics' and `calendar.ics~' files. svn path=/trunk/; revision=14070
* keep a reference to the EvolutionShellClient componentRodrigo Moya2001-10-191-0/+3
| | | | | | | | | | | | | | | | | | | | | 2001-10-19 Rodrigo Moya <rodrigo@ximian.com> * gui/component-factory.c (owner_set_cb): keep a reference to the EvolutionShellClient component * gui/e-week-view.c (e_week_view_set_status_message): new function (update_query): call e_week_view_set_status_message (query_query_done_cb): (query_eval_error_cb): clean up status bar messages * gui/e-day-view.c (e_day_view_set_status_message): new function (update_query): call e_day_view_set_status_message (query_query_done_cb): (query_eval_error_cb): clean up status bar messages * gui/Makefile.am: added EVOLUTION_IMAGESDIR to CFLAGS svn path=/trunk/; revision=13793
* Adds session management for the alarm daemon. Also makes it store a listFederico Mena Quintero2001-10-191-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-18 Federico Mena Quintero <federico@ximian.com> Adds session management for the alarm daemon. Also makes it store a list of calendars to be monitored. Those calendars will all be loaded when the alarm daemon starts up. * idl/evolution-calendar.idl (AlarmNotify): Removed the ::die() method. The alarm daemon now handles termination via the session manager's commands. * gui/alarm-notify/notify-main.c (set_session_parameters): New function, sets some parameters so that the session manager can restart the daemon via the evolution-alarm-client program. Also, sets up the "die" signal so that the daemon can terminate when the session ends. (load_calendars): New function to load the calendars on startup. (main): Set the session parameters. Load the calendars on startup. * gui/alarm-notify/alarm-notify.c (alarm_notify_add_calendar): New function, moved over from the impl_ function. Added a load_afterwards argument to indicate whether the calendar should just be loaded or if it should also be added to the list of calendars to load on startup. (AlarmNotify_addCalendar): Use alarm_notify_add_calendar(). (AlarmNotify_removeCalendar): Remove the calendar from the list of calendars to load on startup. * gui/alarm-notify/save.c (save_calendars_to_load): New function, saves a sequence of the URIs to load. (get_calendars_to_load): New function, loads a sequence of calendars to load. * gui/alarm-notify/alarm.h: Removed stale prototype for alarm_init(). * gui/component-factory.c (remove_folder): Ask the alarm daemon to stop monitoring alarms for the folder that is being deleted. svn path=/trunk/; revision=13763
* use bonobo-exception stuff to clean codeJP Rosevear2001-09-261-20/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-25 JP Rosevear <jpr@ximian.com> * pcs/cal.c: use bonobo-exception stuff to clean code * pcs/cal-factory.c (add_uri): add uri to the list if the type matches (impl_CalFactory_uriList): implement uriList method * pcs/cal-backend.h: new virtual function member * pcs/cal-backend.c (cal_backend_is_remote): call virtual function * pcs/cal-backend-file.c (cal_backend_file_class_init): override virtual function (cal_backend_file_is_remote): new virtual function, always return FALSE * idl/evolution-calendar.idl: uriList factory call, with flags for types to get * gui/dialogs/comp-editor.c (comp_editor_destroy): cast to remove warning * gui/e-itip-control.c (write_label_piece): kill warnings by take const char * * gui/component-factory.c (create_object): aggregate offline interface * gui/Makefile.am: compile new files * calobj.[hc]: Remove obsolete files * cal-util/cal-util.h: enum URI types for uriList call * cal-client/cal-client.c (build_uri_list): build list from string sequence (cal_client_uri_list): factory call to get uri list * cal-client/cal-client.h: new proto * cal-client/cal-client.c: use bonobo exception stuff to clean code * gui/calendar-offline-handler.[hc]: Start some skeleton routines for online/offline handling * pcs/cal-factory.c (launch_backend_for_uri): use accessor and remove FIXME svn path=/trunk/; revision=13110
* don't use gnome_vfs_uri_new_private (fixes Ximian #10544)Rodrigo Moya2001-09-211-7/+6
| | | | | | | | | 2001-09-20 Rodrigo Moya <rodrigo@ximian.com> * gui/component-factory.c: don't use gnome_vfs_uri_new_private (fixes Ximian #10544) svn path=/trunk/; revision=13048
* #include a few files we were missing from libgnomevfs.Federico Mena Quintero2001-09-211-0/+2
| | | | | | | | | 2001-09-20 Federico Mena Quintero <federico@ximian.com> * gui/component-factory.c: #include a few files we were missing from libgnomevfs. svn path=/trunk/; revision=13031
* Fixes bug #6350.Federico Mena Quintero2001-09-191-71/+83
| | | | | | | | | | | | 2001-09-18 Federico Mena Quintero <federico@ximian.com> Fixes bug #6350. * gui/component-factory.c (remove_folder): Use a simplified method for removing our folder data; we just need to remove calendar.ics or tasks.ics and the corresponding backup files. svn path=/trunk/; revision=12966
* new class for managing multiple calendars, with an API very similar to theRodrigo Moya2001-09-191-131/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-18 Rodrigo Moya <rodrigo@ximian.com> * cal-client/cal-client-multi.[ch]: new class for managing multiple calendars, with an API very similar to the CalClient one, for ease of transition from one to the other * gui/component-factory.c (xfer_folder, remove_folder, create_folder): reworked to be able to manage folders for any calendar backend, and not only the file: one 2001-09-18 Rodrigo Moya <rodrigo@ximian.com> * idl/evolution-calendar.idl: changed signature for the getFreeBusy method, to return a sequence of CalObj's, and added sequence of users as a new parameter to that method * cal-client/cal-client.c (cal_client_get_free_busy): adapted to new IDL method signature, by adding a new "GList *users" parameter, for callers to be able to specify a list of users * pcs/cal-backend.[ch] (cal_backend_get_free_busy): * pcs/cal-backend-file.c (cal_backend_file_get_free_busy): add the "GList *users" parameter. In cal_backend_file_get_free_busy, call lookup_component to get the CalComponent for each uid, instead of calling cal_backend_get_object, which meant converting the component to a string and then parsing it again. * cal-client/client-test.c (cal_opened_cb): * gui/e-itip-control.c (send_freebusy): * gui/calendar-commands.c (publish_freebusy_cmd): adapted to new getFreeBusy method signature svn path=/trunk/; revision=12951
* Do not call calendar_config_init() here.Federico Mena Quintero2001-09-181-3/+0
| | | | | | | | | | | 2001-09-17 Federico Mena Quintero <federico@ximian.com> * gui/component-factory.c (owner_set_cb): Do not call calendar_config_init() here. * gui/main.c (main): Call calendar_config_init() here. svn path=/trunk/; revision=12916
* [Fix #958, ShellComponents should not be created by factories, forEttore Perazzoli2001-09-061-12/+11
| | | | | | | | | | | | | | | | the calendar.] * gui/GNOME_Evolution_Calendar.oaf.in: Remove the ShellComponentFactory. * gui/component-factory.c (create_object): Renamed from `component_fn'. Don't get any args. (component_factory_init): Create the component using `create_object()' and register it into OAF. (COMPONENT_FACTORY_ID): Removed. (COMPONENT_ID): New. svn path=/trunk/; revision=12645
* Implemented.Federico Mena Quintero2001-09-051-3/+113
| | | | | | | | | | | | | | | | | | | | 2001-09-04 Federico Mena Quintero <federico@ximian.com> * gui/component-factory.c (sc_user_create_new_item_cb): Implemented. * gui/main.c (component_editor_factory_init): New function to create the factory for the comp_editor_factory. * gui/comp-editor-factory.c: Finished implementation. * gui/alarm-notify/alarm-queue.c (edit_component): Implemented the Edit command. * gui/Makefile.am (evolution_calendar_SOURCES): Added comp-editor-factory.[ch] to the list of sources. svn path=/trunk/; revision=12619
* Added display_name and description to the type.Ettore Perazzoli2001-08-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * evolution-test-component.c: Added display_name and description to the type. * evolution-shell-component.c (impl__get_supported_types): Pass `display_name' and `description' here. (evolution_shell_component_construct): Likewise. * evolution-shell-component.h: New members `display_name', `description' in `EvolutionShellComponentFolderType'. * e-component-registry.c (register_type): New args @description and @display_name. Pass to `e_folder_type_registry_register_type()'. (register_component): Pass the values returned in the sequence from __get_supported_types. * e-folder-type-registry.c: New members `display_name' and `description' in `struct _FolderType'. (folder_type_new): New args @description and @display_name. Initialize the respective fields in the `FolderType' accordingly. (folder_type_free): Free `display_name' and `description'. (register_folder_type): New args @display_name, @description. (e_folder_type_registry_register_type): New args @display_name, @description. (e_folder_type_registry_get_description_for_type): New. (e_folder_type_registry_get_display_name_for_type): New. * Evolution-ShellComponent.idl: Added `display_name' and `description' fields to the `FolderType' struct. svn path=/trunk/; revision=12245
* Add the user creatable items. The callback is not actually implementedFederico Mena Quintero2001-08-151-0/+31
| | | | | | | | | | | | | | 2001-08-15 Federico Mena Quintero <federico@ximian.com> * gui/component-factory.c (factory_fn): Add the user creatable items. The callback is not actually implemented yet; this is just to finalize the GUI. * gui/dialogs/cal-prefs-dialog.glade: Added an option to ask for confirmation when deleting items. Added underlined shortcuts (they may not all work currently). svn path=/trunk/; revision=12047
* Handle an array of categories in the CalSearchBar instead of our own menuFederico Mena Quintero2001-08-151-1/+2
| | | | | | | | | | | | | | | | | 2001-08-14 Federico Mena Quintero <federico@ximian.com> * gui/cal-search-bar.c (get_current_category): Handle an array of categories in the CalSearchBar instead of our own menu items. (notify_query_contains): Fetch the text from the search bar here instead of in regen_query(). (regen_query): Handle category searches. (notify_category_is): New function. (cal_search_bar_construct): Do not create an option menu. (make_suboptions): New function to create the suboption items from the list of categories. (notify_query_contains): Do not include a category sexp here. svn path=/trunk/; revision=12016
* Add an extra @type arg to the xferFolder and removeFolder methods inEttore Perazzoli2001-07-231-1/+37
| | | | | | | | the ShellComponent interface. Updated the EvolutionShellComponent GTK+ wrapper and all the component accordingly. Get the calendar to use this so it can delete both tasks and calendar folders. svn path=/trunk/; revision=11300
* Add a `user_creatable' property to folder types and make componentsEttore Perazzoli2001-07-221-2/+2
| | | | | | | use it, so that e.g. you cannot create a folder of type "mailstorage" or "vtrash". svn path=/trunk/; revision=11298
* fix the calendar not exiting with a gross hack because i don't have timeJP Rosevear2001-07-121-0/+18
| | | | | | | | | | 2001-07-11 JP Rosevear <jpr@ximian.com> * gui/component-factory.c: fix the calendar not exiting with a gross hack because i don't have time to fix the ref counting right now svn path=/trunk/; revision=11022
* Re-added removed paramter in call to evolution_shell_component_newRodrigo Moya2001-06-281-0/+1
| | | | svn path=/trunk/; revision=10559
* removed not-uses-anymore parameter in call toRodrigo Moya2001-06-281-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | 2001-06-28 Rodrigo Moya <rodrigo@ximian.com> * gui/component-factory.c: removed not-uses-anymore parameter in call to evolution_shell_component_new * gui/gnome-cal.[ch] (gnome_calendar_cut_clipboard), (gnome_calendar_copy_clipboard), (gnome_calendar_paste_clipboard): new functions for allowing execution of clipboard-related commands * gui/e-day-view.[ch] (e_day_view_cut_clipboard), (e_day_view_copy_clipboard), (e_day_view_paste_clipboard): ditto * gui/e-week-view.[ch] (e_week_view_cut_clipboard), (e_week_view_copy_clipboard), (e_week_view_paste_clipboard): ditto 2001-06-27 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-commands.c (cut_event_cmd), (copy_event_cmd), (paste_event_cmd): added callbacks for the new clipboard-related menu entries svn path=/trunk/; revision=10557
* Add method `ShellComponent::handleExternalURI' and anEttore Perazzoli2001-06-281-0/+1
| | | | | | | | | `external_uri_schemas' attribute. Update the EvolutionShellComponent GTK+ wrapper accordingly. Update all the components to pass a NULL `external_uri_schemas' list when initializing themselves as EvolutionShellComponents. svn path=/trunk/; revision=10548
* Update the copyrights, replacing Helix Code with Ximian andEttore Perazzoli2001-06-231-1/+1
| | | | | | helixcode.com with ximian.com all over the place. svn path=/trunk/; revision=10440
* add auto exit unrefJP Rosevear2001-06-201-11/+15
| | | | | | | | | | | | 2001-06-19 JP Rosevear <jpr@ximian.com> * gui/control-factory.c (control_factory_init): add auto exit unref * gui/component-factory.c (destroy_cb): destroy our selves if we have no more shells (component_factory_init): add auto exit unref svn path=/trunk/; revision=10312
* Committing the new My Evolution.Iain Holmes2001-06-091-8/+2
| | | | svn path=/trunk/; revision=10163
* implemented the 'remove_folder' function for the calendar shell componentRodrigo Moya2001-05-281-2/+174
| | | | | | | | | | 2001-05-27 Rodrigo Moya <rodrigo@ximian.com> * gui/component-factory.c (remove_folder): implemented the 'remove_folder' function for the calendar shell component (xfer_folder): ditto for 'xfer_folder' svn path=/trunk/; revision=10027
* Replace includes of <gnome.h>, <bonobo.h> and <gtk/gtk.h> with the neededKjartan Maraas2001-03-261-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-03-26 Kjartan Maraas <kmaraas@gnome.org> * cal-client/client-test.c: Replace includes of <gnome.h>, <bonobo.h> and <gtk/gtk.h> with the needed headers to speed up compile. * cal-util/test-recur.c: Same here for <gtk/gtk.h> * gui/calendar-commands.c: Replace <bonobo.h> and remove <libgnorba/gnorba.h> * gui/calendar-summary.c: Replace <gnome.h> and <bonobo.h> * gui/calendar-summary.h: Added <bonobo/bonobo-generic-factory.h> * gui/component-factory.c: Remove <bonobo.h> * gui/control-factory.c: Replace <bonobo.h> * gui/e-calendar-table.c: Remove <gnome.h> * gui/e-itip-control.c: Replace <gnome.h> and <bonobo.h> * gui/e-meeting-edit.c: Replace <bonobo.h> * gui/e-tasks.c: Replace <gnome.h> * gui/e-tasks.h: Replace <bonobo.h> * gui/gnome-cal.h: Remove <bonobo.h> * gui/main.c: Replace <bonobo.h> and <glade/glade.h> * gui/tasks-control-factory.c: Replace <bonobo.h> * gui/tasks-control.c: Replace <gnome.h> and <bonobo.h> * gui/weekday-picker.c: Add <string.h> and <libgnome/gnome-defs.h> * gui/alarm-notify/client-main.c: Remove <gnome.h> and <bonobo.h> * gui/alarm-notify/notify-main.c: Replace <gnome.h> and <bonobo.h> * gui/dialogs/alarm-notify-dialog.c: Replace <gnome.h> * pcs/cal-backend.c: Replace <gtk/gtk.h> svn path=/trunk/; revision=8937
* Added a ShellComponent method to retrieve the selection for drag andEttore Perazzoli2001-03-081-0/+1
| | | | | | drop and support for it in the shell. Untested. svn path=/trunk/; revision=8594
* New files with a simple sequence to migrate the task components from theFederico Mena Quintero2001-01-191-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-01-18 Federico Mena Quintero <federico@ximian.com> * gui/tasks-migrate.[ch]: New files with a simple sequence to migrate the task components from the old calendar folder into the new tasks folder. * gui/component-factory.c (owner_set_cb): Call tasks_migrate() once evolution_dir is set. It sucks to have to do this here. * cal-client/cal-client.c (cal_client_get_uids): In the inline docs, indicate how to free the return value. (cal_opened_cb): Ahem, moved assertion to the right place. Also, ref() and unref() around our own signal emission because we are not inside a signal handler, rather a simple callback from the listener object; we want to have a chance to clean up even if the client is unrefed during the emission. * gui/Makefile.am (evolution_calendar_SOURCES): Added tasks-migrate.[ch] to the list of sources. 2001-01-17 Federico Mena Quintero <federico@ximian.com> * gui/event-editor.c (init_widgets): Use e_calendar_item_set_max_days_sel() instead of setting GTK+ object arguments. * gui/e-day-view.c (e_day_view_set_cal_client): Oops, we had a reversed test for the client being loaded. * gui/tag-calendar.c (tag_calendar_by_client): Fixed similarly reversed test. svn path=/trunk/; revision=7622
* Ximianified email addresses and copyrights.Federico Mena Quintero2001-01-171-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-01-17 Federico Mena Quintero <federico@ximian.com> * */*: Ximianified email addresses and copyrights. * idl/evolution-calendar.idl (CalFactory::open): Renamed from ::load(), and added an only_if_exists argument. (CalFactory::create): Removed method. (Listener::OpenStatus): Removed the IN_USE error and replaced it with a NOT_FOUND one; renamed the enum from LoadStatus. (Listener::notifyCalOpened): Renamed from notifyCalLoaded(). * pcs/cal-backend.h (CalBackend): Removed the uri field. (CalBackendOpenStatus): Renamed from CalBackendLoadStatus and added a NOT_FOUND value. (CalBackendClass::open): Put in a slot for the open method. * pcs/cal-backend.c (cal_backend_create): Removed function. * pcs/cal-backend-file.c (cal_backend_file_open): Return the appropriate value when only_if_exists is TRUE. (create_cal): We are Ximian now, so set the PRODID property to the appropriate foo. * pcs/cal-factory.c (CalFactory_open): implemented, replacing CalFactory_load() and CalFactory_create(). (CalFactory_open): Moved the queue_load_create_job() stuff to here, since we now only need to contemplate the open case instead of load/create ones. (open_backend): Do everything here; replaces load_backend() and create_backend(). * cal-client/cal-listener.h (CalListenerClass::cal_opened): Renamed from cal_loaded. (CalListenerClass): Replaced the silly signals, which are gratuitous abstraction, by a set of function pointers in the instance structure. * cal-client/cal-listener.c (cal_listener_get_calendar): Removed unused function. (cal_listener_construct): Added the listener notification functions. (cal_listener_new): Ditto. (Listener_notifyCalOpened): Renamed to our new naming convention for servant implementations. (Listener_notifyObjUpdated): Ditto. (Listener_notifyObjRemoved): Ditto. * cal-client/cal-client.h (CalClientOpenStatus): Renamed from CalClientLoadStatus. (CalClientClass::cal_opened): Renamed from ::cal_loaded(). (CalClientLoadState): New enum; basically make LoadState public so that users of this code do not have to maintain their own states. * cal-client/cal-client.c (cal_client_create_calendar): Removed function. (cal_client_open_calendar): Moved the functionality over from load_or_create(); now we do everything here. (*): Use the CalClientLoadState enum values instead of the old LoadState values. (cal_client_get_load_state): Renamed from cal_client_is_loaded(), and return the appropriate value. (CalClientPrivate): Added an uri field. (cal_client_init): Initialize priv->uri. (cal_client_destroy): Free the priv->uri. (cal_opened_cb): Maintain the priv->uri. (cal_client_open_calendar): Fill in the priv->uri. (cal_client_get_uri): New function. * gui/calendar-model.c (calendar_model_set_new_comp_vtype): New function to configure the type of calendar components to create when doing click-to-add. This makes the model usable for something other than task lists. (calendar_model_get_new_comp_vtype): New function. * gui/e-calendar-table.c (e_calendar_table_get_model): New function. (e_calendar_table_destroy): Unref the subset_model. * gui/gnome-cal.h (GnomeCalendarOpenMode): Removed enum. * gui/gnome-cal.c (LoadState): Removed enum; we now use the CalClientLoadState from the client objects. (GnomeCalendarPrivate): Removed the loading_uri and task_pad_loading_uri fields as well as the load_state and task_pad_load_state fields, as we can now query them directly from the CalClient. (open_error): Renamed from load_error(). (create_error): Removed function. (gnome_calendar_open): Do not take in the mode parameter. (cal_opened_cb): Get rid of our beautifully-crafted state machine and replace it with simple code; all the loading smarts are in the Wombat now. (setup_widgets): Set the new component vtype of the table model to CAL_COMPONENT_TODO. * gui/Makefile.am (evolution_calendar_SOURCES): Removed gnome-month-item.[ch] from the list of sources. * gui/calendar-summary.c (CalSummary): Removed unused cal_loaded field. (create_summary_view): Do not check if the file exists; this is the job of the Wombat. (generate_html_summary): Fixed prototype. (alarm_fn): Fixed prototype. (property_dialog): Fixed prototype. Wonder if/how this ever worked. (create_summary_view): Cast the component and view as appropriate. Removed unused html variable. [Iain dude, are you compiling with -Wall?] * gui/e-itip-control.c (cal_opened_cb): Sigh, this function signature was *very* wrong. It was using CalClientGetStatus instead of CalClientOpenStatus. * gui/e-tasks.h (ETasksOpenMode): Removed enum. * gui/e-tasks.c (setup_widgets): Set the new component vtype of the table model to CAL_COMPONENT_TODO. (LoadState): Removed the state machine foo. (e_tasks_open): Removed the mode parameter. (initial_load): Removed function. (create_error): Removed function. (ETasksPrivate): Removed folder_uri field. (cal_opened_cb): Remove the state machine. * gui/component-factory.c: #include "tasks-control.h" * conduits/calendar/calendar-conduit.h (ECalConduitContext): Removed calendar_load_tried field. * conduits/calendar/calendar-conduit.c (start_calendar_server_cb): Sigh, fixed function prototype. * conduits/todo/todo-conduit.h (EToDoConduitContext): Removed calendar_load_tried field. * conduits/todo/todo-conduit.c (start_calendar_server_cb): Fixed function prototype. svn path=/trunk/; revision=7571
* Add an ::asyncCopyFolder method to the ShellComponent interface. MoveEttore Perazzoli2001-01-131-1/+6
| | | | | | all the message hiding options to the View menu. svn path=/trunk/; revision=7456
* added new source files for the Tasks folders.Damon Chaplin2001-01-081-7/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-01-08 Damon Chaplin <damon@helixcode.com> * gui/Makefile.am: added new source files for the Tasks folders. * gui/e-tasks.[hc]: new widget to encapsulate the Tasks view. * gui/tasks-control.[hc]: new files to implement the Tasks control. * gui/tasks-control-factory.[hc]: new files to implement the factory for the Tasks controls. (I think the way I've split the code up is a lot cleaner than the GnomeCal implementation - the factory file just contains the factory functions and the control file contains all the control functions. Maybe we should make GnomeCal like this.) * gui/main.c: initialize the Tasks control factory. * gui/component-factory.c: added support for the Tasks control. Also added a "create_folder" function so we can now create new Tasks and Calendar folders within Evolution. I'm not a Bonobo expert so someone might want to check these over. * gui/calendar-config.[hc]: added convenience functions to configure the common settings of ECalendar and EDateEdit widgets. * gui/dialogs/task-editor.c (task_editor_create_date_edit): * gui/gnome-cal.c (gnome_calendar_update_config_settings): * gui/event-editor.c: used function to configure the ECalendars and EDateEdits. * gui/e-day-view-top-item.c (e_day_view_top_item_draw_long_event): fixed minor bug in format strings. svn path=/trunk/; revision=7297
* Handle the case where the calendar view cannot be created; present aFederico Mena Quintero2001-01-041-1/+6
| | | | | | | | | | | | | | | | | | | 2001-01-03 Federico Mena Quintero <federico@helixcode.com> * gui/calendar-commands.c (new_calendar): Handle the case where the calendar view cannot be created; present a warning dialog box. (new_calendar): Do not show the widget here, since we already show it in control-factory.c. * gui/control-factory.c (control_factory_new_control): Handle the case where the calendar view cannot be created. * gui/component-factory.c (create_view): Ditto. * gui/calendar-summary.h: Added prototype for calendar_summary_factory_init(). svn path=/trunk/; revision=7233
* Working Calendar summary.Iain Holmes2000-12-221-27/+3
| | | | | | Smile. svn path=/trunk/; revision=7123
* #if 0ed cal_obj_date_only_compare_func. (cal_object_get_rdate_end):Christopher James Lahey2000-12-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 2000-12-13 Christopher James Lahey <clahey@helixcode.com> * cal-util/cal-recur.c: #if 0ed cal_obj_date_only_compare_func. (cal_object_get_rdate_end): Changed this function to get rid of a possible uninitialized error on the rdate function. * gui/calendar-model.c: Fixed some warnings involving the #define _XOPEN_SOURCE lines here. * gui/component-factory.c: #ifdef WANT_THE_EXECUTIVE_SUMMARYed out the summary_factory object since it's unused if WANT_THE_EXCUTIVE_SUMMARY is not defined. * gui/e-day-view.c: #if 0ed out e_day_view_remove_event_cb. (obj_updated_cb): #ifndef NO_WARNINGSed out a #warning. * gui/e-week-view-event-item.c (e_week_view_event_item_draw): Made it so that * gui/e-week-view.c (obj_updated_cb): #ifndef NO_WARNINGSed out a #warning. svn path=/trunk/; revision=6982
* return NULL if we can't create a view.Michael Meeks2000-12-051-2/+2
| | | | | | | | | | | | | | 2000-12-04 Michael Meeks <michael@helixcode.com> * e-shell-view.c (get_control_for_uri): return NULL if we can't create a view. (setup_evolution_shell_view_interface): add precondition. + lots of cleans. svn path=/trunk/; revision=6778
* Disable stuffIain Holmes2000-10-121-1/+2
| | | | svn path=/trunk/; revision=5875
* Disable executive-summaryIain Holmes2000-10-121-1/+9
| | | | svn path=/trunk/; revision=5874
* don't free evolution_dir as we need it to save the config settings.Damon Chaplin2000-10-121-1/+0
| | | | | | | | | 2000-10-11 Damon Chaplin <damon@helixcode.com> * gui/component-factory.c (owner_unset_cb): don't free evolution_dir as we need it to save the config settings. svn path=/trunk/; revision=5858
* call calendar_config_write_on_exit() to write out some special configDamon Chaplin2000-10-121-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-10-11 Damon Chaplin <damon@helixcode.com> * gui/main.c (main): call calendar_config_write_on_exit() to write out some special config settings (as the mail component does). * gui/calendar-commands.c (properties_cmd): changed to use the new preferences dialog. (update_all_config_settings): new function to iterate over all the calendars and update the config settings. * gui/dialogs/cal-prefs-dialog.glade: preferences dialog. * gui/dialogs/cal-prefs-dialog.[hc]: new files for the preferences dialog. * gui/calendar-config.[hc]: new files to handle loading/saving config settings. * cal-util/cal-recur.c: fixed bug in YEARLY when no filters were set, plus minor changes. * cal-util/test-recur.c: updated. * gui/e-day-view-time-item.c: * gui/popup-menu.c: update to #include <gal/widgets/e-gui-utils.h> * gui/component-factory.c (owner_set_cb): called calendar_config_init. (owner_set_cb): (owner_unset_cb): updated the prototypes. * gui/main.c (main): added call to calendar_config_write_on_exit(). * gui/component-factory.h: * gui/component-factory.c (owner_set_cb): added global evolution_dir just like the mail component, so we know we to store config stuff. svn path=/trunk/; revision=5856
* Added the executive-summary library and cflagsIain Holmes2000-10-101-1/+25
| | | | | | | | | | | | | | | | | 2000-10-09 Iain Holmes <iain@helixcode.com> * Makefile.am: Added the executive-summary library and cflags * evolution-calendar.oafinfo: Added oaf servers for the executive summary and executive summary factory. * calendar-summary.[ch]: New files to create the summary. * component-factory.c (summary_fn): Create the executive summary component. (component_factory_init): Start the summary factory as well. svn path=/trunk/; revision=5807
* Remove gnorba stuffJP Rosevear2000-08-261-4/+0
| | | | | | | | | | | | | | | | 2000-08-26 JP Rosevear <jpr@helixcode.com> * gui/Makefile.am: Remove gnorba stuff * gui/main.c: ditto * gui/component-factory.c: ditto * gui/control-factory.c: ditto * gui/*.gnorba: ditto svn path=/trunk/; revision=5048
* Handle the PERCENT-COMPLETE property. (free_icalcomponent): Likewise.Federico Mena Quintero2000-08-121-3/+1
| | | | | | | | | | | | | | | | | | | | | 2000-08-11 Federico Mena Quintero <federico@helixcode.com> * cal-util/cal-component.c (scan_property): Handle the PERCENT-COMPLETE property. (free_icalcomponent): Likewise. (cal_component_get_percent): Likewise. (cal_component_set_percent): Likewise. (cal_component_free_percent): Likewise. (scan_property): Handle the PRIORITY property. (free_icalcomponent): Likewise. (cal_component_get_priority): Likewise. (cal_component_set_priority): Likewise. (cal_component_free_priority): Likewise. * cal-util/cal-component.h (CalComponentField): New enumeration with the list of fields we support for ETable. svn path=/trunk/; revision=4745
* Update prototype.Dan Winship2000-08-111-1/+2
| | | | | | * gui/component-factory.c (owner_set_cb): Update prototype. svn path=/trunk/; revision=4714
* Update the components to match the changes in the libeshell API.Ettore Perazzoli2000-07-211-1/+1
| | | | svn path=/trunk/; revision=4242
* One of these days, I need somebody to teach me how to program.Ettore Perazzoli2000-06-301-3/+3
| | | | svn path=/trunk/; revision=3824
* Make calendar die when evolution quits.Christopher James Lahey2000-06-301-1/+15
| | | | | | | | 2000-06-29 Christopher James Lahey <clahey@helixcode.com> * gui/component-factory.c: Make calendar die when evolution quits. svn path=/trunk/; revision=3822
* EvolutionShellClient.Ettore Perazzoli2000-06-301-1/+2
| | | | svn path=/trunk/; revision=3820
* Initial support for creating/removing folders. This implies some newEttore Perazzoli2000-06-101-3/+10
| | | | | | | | IDL methods and new functions to implement on the component side. I have also added a simple folder creation dialog in the shell. It's quite unfinished and untested. svn path=/trunk/; revision=3491
* Do not initialize libglade twice.Federico Mena Quintero2000-05-261-4/+6
| | | | | | | | | | | | 2000-05-25 Federico Mena Quintero <federico@helixcode.com> * gui/main.c (init_bonobo): Do not initialize libglade twice. * gui/component-factory.c (create_view): Set the folder_uri property, otherwise the calendar will not get loaded into the view. svn path=/trunk/; revision=3203
* Reorganized the shell to allow dynamic registration of storages andEttore Perazzoli2000-05-251-0/+96
folder types, and changed all the components to work with the new setup. svn path=/trunk/; revision=3199