aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/tasks-component.c
Commit message (Collapse)AuthorAgeFilesLines
* 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 #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-0/+2
| | | | | | | | | | | | | 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
* remove extraneous ;JP Rosevear2004-01-301-2/+2
| | | | | | | | | | 2004-01-30 JP Rosevear <jpr@ximian.com> * gui/tasks-component.c (create_new_todo): remove extraneous ; Fixes #53418 svn path=/trunk/; revision=24536
* 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
* use e_source_list_peek_source_any (setup_create_ecal): dittoJP Rosevear2004-01-251-50/+5
| | | | | | | | | | | | | 2004-01-24 JP Rosevear <jpr@ximian.com> * gui/tasks-component.c (update_primary_selection): use e_source_list_peek_source_any (setup_create_ecal): ditto (create_new_todo): just use the default call directly (update_uris_for_selection): just use e-tasks remove/add todo source directly svn path=/trunk/; revision=24416
* listen for the correct notificationJP Rosevear2004-01-251-2/+2
| | | | | | | | | 2004-01-24 JP Rosevear <jpr@ximian.com> * gui/tasks-component.c (setup_create_ecal): listen for the correct notification svn path=/trunk/; revision=24412
* sync the source list after the source removalJP Rosevear2004-01-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
* renamed to _source and made them work with ESource's.Rodrigo Moya2004-01-221-12/+3
| | | | | | | | | | | | | | | 2004-01-21 Rodrigo Moya <rodrigo@ximian.com> * gui/e-tasks.[ch] (e_tasks_add_todo_uri, e_tasks_remove_todo_uri, e_tasks_get_default_uri): renamed to _source and made them work with ESource's. * gui/tasks-component.c (update_uri_for_primary_selection, add_uri_for_source, remove_uri_for_source): * gui/tasks-control.c (tasks_control_set_property): updated for changes in e-tasks.[ch]. svn path=/trunk/; revision=24354
* call e_cal_remove_calendar to actually remove the task list via theRodrigo Moya2004-01-211-8/+19
| | | | | | | | | | 2004-01-21 Rodrigo Moya <rodrigo@ximian.com> * gui/tasks-component.c (delete_task_list_cb): call e_cal_remove_calendar to actually remove the task list via the backend. svn path=/trunk/; revision=24350
* handle the case where we have a bogus uidJP Rosevear2004-01-201-1/+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
* unref the activity handler.Rodrigo Moya2004-01-161-0/+5
| | | | | | | | | 2004-01-16 Rodrigo Moya <rodrigo@ximian.com> * gui/tasks-component.c (impl_dispose): unref the activity handler. svn path=/trunk/; revision=24263
* new function. (impl_createControls): create a task bar also for the tasksRodrigo Moya2004-01-161-11/+18
| | | | | | | | | | | | | | | | | | | 2004-01-16 Rodrigo Moya <rodrigo@ximian.com> * gui/tasks-component.[ch] (tasks_component_peek_activity_handler): new function. (impl_createControls): create a task bar also for the tasks component. We can't rely on the calendar component's one. (tasks_component_init): create the private activity handler. * gui/e-calendar-table.c (e_calendar_table_set_status_message): use the tasks component's activity handler. * gui/e-tasks.c (on_url_cb): new callback to display status bar messages when mousing over links. (setup_widgets): connect to "on_url" signal on the HTML widget. svn path=/trunk/; revision=24262
* update protosJP Rosevear2004-01-161-42/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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
* new utility routine to create new tasks (create_new_todo): use above so weJP Rosevear2004-01-151-15/+28
| | | | | | | | | | | | | | | | 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
* don't try to set up the creation ecal unless we are actually creating aJP Rosevear2004-01-141-8/+9
| | | | | | | | | 2004-01-14 JP Rosevear <jpr@ximian.com> * gui/tasks-component.c (impl_requestCreateItem): don't try to set up the creation ecal unless we are actually creating a new item svn path=/trunk/; revision=24218
* 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
* calendar_config -> calendar_setup. (edit_calendar_cb): Ditto.Hans Petter Jansson2004-01-101-23/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-0/+3
| | | | | | | | | | | 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
* 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-10/+16
| | | | | | | | | | | 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-30/+44
| | | | | | | | | | | | | | | | | | | 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
* 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-6/+6
| | | | | | | | | | | | | | | | 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-191-4/+7
| | | | | | | | | | | | | 2003-12-18 Rodrigo Moya <rodrigo@ximian.com> * gui/tasks-component.c (impl_createControls): * 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=23981
* 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-8/+18
| | | | | | | | | | | | | | | | 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
* made it public.Rodrigo Moya2003-12-171-1/+7
| | | | | | | | | | | | | 2003-12-17 Rodrigo Moya <rodrigo@ximian.com> * gui/tasks-control.[ch] (tasks_control_sensitize_commands): made it public. * gui/tasks-component.c (update_uri_for_primary_selection): call tasks_control_sensitize_commands() when the primary selection changes. svn path=/trunk/; revision=23963
* call calendar_control_sensitize_calendar_commands when the primaryRodrigo Moya2003-12-171-26/+8
| | | | | | | | | | | | | | | | | 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
* free the notification listJP Rosevear2003-12-041-0/+1
| | | | | | | | | | | | | 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
* free up the notifications and the ecal (config_create_ecal_changed_cb):JP Rosevear2003-12-041-11/+108
| | | | | | | | | | | | | 2003-12-03 JP Rosevear <jpr@ximian.com> * gui/tasks-component.c (impl_dispose): free up the notifications and the ecal (config_create_ecal_changed_cb): clear the create_ecal if the primary selection changes (setup_create_ecal): find a default ecal to do creation with (impl_requestCreateItem): use above svn path=/trunk/; revision=23607
* cast the parent (impl_createControls): add notification for primary tasksJP Rosevear2003-12-041-7/+19
| | | | | | | | | | | | | 2003-12-03 JP Rosevear <jpr@ximian.com> * gui/tasks-component.c (rename_task_list_cb): cast the parent (impl_createControls): add notification for primary tasks (config_primary_selection_changed_cb): handle primary selection changing in gconf * gui/calendar-config-keys.h: fix config key for primary tasks svn path=/trunk/; revision=23605
* Do not depend on e-folder-list.Ettore Perazzoli2003-12-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-config.c: Do not depend on e-folder-list. * gui/component/select-names/e-select-names.c: Remove dependency on evolution-folder-selector-button. (e_addressbook_create_folder_selector): Just return a FIXME label for now. (folder_selected): #if 0 out. (e_select_names_init): Do not connect. * gui/component/select-names/e-select-names-manager.c (e_select_names_manager_activate_dialog): Don't get a shell_client arg anymore. (load_completion_books): Stub out. * gui/component/select-names/e-select-names.c (e_select_names_new): Don't get an EvolutionShellClient anymore. Don't create the folder selector button for now. * gui/component/select-names/e-select-names.h: Remove dependency on evolution-shell-client. * gui/component/select-names/e-select-names-bonobo.c: Remove dependency on evolution-shell-client. (impl_SelectNames_activate_dialog): Stub out. * gui/widgets/eab-gui-util.c: Remove dependency on evolution-shell-client. (eab_transfer_contacts): Stub out. * gui/main.c: Do not #include <evolution-shell-client.h>. * gui/e-itip-control.c: Do not #include <e-folder-selector-button.h> nor <evolution-shell-client.h>. (start_default_server): Return FALSE. (default_server_started_cb): Do not connect the "selected" signal on the button since it's now NULL. (button_selected_cb): #if 0 out. * gui/e-cal-list-view.h: Do not #include "evolution-activity-client.h". * gui/tasks-component.c (impl_createControls): Give an empty label for the status bar. * gui/e-day-view.h: Remove all deps on evolution-activity-client. svn path=/trunk/; revision=23596
* 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
* new files containing the implementation of the 'New Task List' dialog.Rodrigo Moya2003-11-241-0/+2
| | | | | | | | | | | | | | | | | 2003-11-24 Rodrigo Moya <rodrigo@ximian.com> * gui/dialogs/new-task-list.glade: * gui/dialogs/new-task-list.[ch]: new files containing the implementation of the 'New Task List' dialog. * gui/dialogs/Makefile.am: added new files. * gui/dialogs/new-calendar.c (new_calendar_dialog): use G_STRLOC for g_warning messages. * gui/tasks-component.c (new_task_list_cb): implemented. svn path=/trunk/; revision=23478
* fixed compilation errors.Rodrigo Moya2003-11-241-1/+1
| | | | | | | | | 2003-11-23 Rodrigo Moya <rodrigo@ximian.com> * gui/tasks-component.c: * gui/dialogs/copy-dialog-source.[ch]: fixed compilation errors. svn path=/trunk/; revision=23473
* fixed copyright notices.Rodrigo Moya2003-11-241-2/+19
| | | | | | | | | | | | | | | | | | | 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-21/+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
* 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/+18
| | | | | | | | | | | | | | 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-35/+24
| | | | | | | | | | 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
* added 'Delete' and 'Rename' menu items. (delete_task_list_cb,Rodrigo Moya2003-11-171-1/+79
| | | | | | | | | | | 2003-11-17 Rodrigo Moya <rodrigo@ximian.com> * gui/tasks-component.c (fill_popup_menu_cb): added 'Delete' and 'Rename' menu items. (delete_task_list_cb, rename_task_list_cb): callbacks for new menu items. svn path=/trunk/; revision=23389
* try first to create the icon from the stock, and then from a file.Rodrigo Moya2003-11-171-0/+41
| | | | | | | | | | | | | | | | 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
* copy in here (update_uris_for_selection): save the selectionJP Rosevear2003-11-171-13/+85
| | | | | | | | | | | | | | | | | | | | | | 2003-11-16 JP Rosevear <jpr@ximian.com> * gui/tasks-component.c (is_in_uids): copy in here (update_uris_for_selection): save the selection (update_selection): update the selection when its changed somewhere else (config_selection_changed_cb): update the selection if the configuration changes (impl_createControls): store the source selector * gui/calendar-config.h: add protos * gui/calendar-config.c (calendar_config_get_tasks_selected): get the list of task lists selected (calendar_config_set_tasks_selected): save it (calendar_config_add_notification_tasks_selected): get notified about it svn path=/trunk/; revision=23374
* add it via e-tasks (remove_uri_for_source): remove it via e-tasksJP Rosevear2003-11-171-28/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* New. (impl_requestCreateItem): New. (tasks_component_class_init): Install.Ettore Perazzoli2003-11-131-1/+39
| | | | | | | | | | | | * 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
* Various changes to merge in evolution-data-server reliance.JP Rosevear2003-11-071-6/+6
| | | | svn path=/trunk/; revision=23206
* added more menu items. (delete_calendar_cb): callbacks for new popup menuRodrigo Moya2003-11-041-6/+10
| | | | | | | | | | | | | | | | | | | | | | 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=23182
* no need to update config settings everywhere explicitlyJP Rosevear2003-10-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* pass FALSE as the 'only_if_exists' parameter, so that the calendar getsRodrigo Moya2003-10-271-1/+1
| | | | | | | | | | 2003-10-27 Rodrigo Moya <rodrigo@ximian.com> * gui/tasks-component.c (add_uri_for_source): pass FALSE as the 'only_if_exists' parameter, so that the calendar gets created when it still does not exist. svn path=/trunk/; revision=23080
* initialize private structure on TasksComponent.Rodrigo Moya2003-10-251-0/+2
| | | | | | | | | 2003-10-24 Rodrigo Moya <rodrigo@ximian.com> * gui/tasks-component.c (tasks_component_init): initialize private structure on TasksComponent. svn path=/trunk/; revision=23078
* removed repeated initialization. (calendar_component_peek): use G_STRLOCRodrigo Moya2003-10-251-0/+347
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