Commit Graph

98 Commits

Author SHA1 Message Date
64977cb1bc Massive code cleanup (bug #429422)
svn path=/trunk/; revision=33432
2007-04-19 18:53:33 +00:00
cba3097cad ** Fixes bug #419524
2007-03-20  Matthew Barnes  <mbarnes@redhat.com>

	** Fixes bug #419524

	* Include <glib/gi18n.h> instead of <libgnome/gnome-i18n.h>.

	* e-util/e-xml-utils.c (e_xml_get_child_by_name_by_lang_list):
	* mail/em-migrate.c (emm_setup_initial):
	* shell/e-component-registry.c (query_components):
	* shell/e-shell-settings-dialog.c (load_pages):
	* shell/e-shell-window-commands.c (command_quick_reference):
	* tools/killev.c (main):
	Use g_get_language_names() instead of gnome_i18n_get_language_list().

	* e-util/e-util.c: Remove e_gettext().

	* e-util/Makefile.am: Remove e-i18n.h.


svn path=/trunk/; revision=33319
2007-03-20 17:23:58 +00:00
d7e017d1bf Fixes shared memos for File system.
svn path=/trunk/; revision=32520
2006-08-10 07:34:30 +00:00
25b83f59cc Remove redundant files meeting-page.[ch], cal-attachment.glade and
2006-06-01  Harish Krishnaswamy  <kharish@novell.com>

	* gui/dialogs/Makefile.am, gui/dialogs/event-editor.c,
	gui/dialogs/task-editor.c: Remove redundant files
	meeting-page.[ch], cal-attachment.glade and references
	in includes.

svn path=/trunk/; revision=32063
2006-06-01 10:24:36 +00:00
afb9d6b1ab Construct the pathname to the xml file at run-time to avoid using
2006-02-08  Tor Lillqvist  <tml@novell.com>

	* gui/dialogs/task-editor.c (task_editor_init): Construct the
	pathname to the xml file at run-time to avoid using compile-time
	paths on Windows.

svn path=/trunk/; revision=31456
2006-02-09 04:02:49 +00:00
d21d923423 broken pipes are soo fun
svn path=/trunk/; revision=31452
2006-02-08 13:06:24 +00:00
aa223e9dec Committing Ozwald's and Johnny's patch.
svn path=/trunk/; revision=31424
2006-02-06 10:37:50 +00:00
a9ee877c33 Committing Rajeev's patch.
svn path=/trunk/; revision=31332
2006-01-27 19:39:45 +00:00
977171ff51 committing patch from pavithran
svn path=/trunk/; revision=31271
2006-01-23 08:09:45 +00:00
58cb09d4cc show the details page in task editor.
svn path=/trunk/; revision=30628
2005-11-16 14:14:23 +00:00
ee804aafe1 UI changes for task editor.
svn path=/trunk/; revision=30626
2005-11-16 13:53:47 +00:00
79efc40b19 UI changes for the event editor.
svn path=/trunk/; revision=30613
2005-11-14 18:19:13 +00:00
1e5c74f855 Several bug fixes under calendar. Use common shortcut for preview pane.
2005-10-06 Srinivasa Ragavan <sragavan@novell.com>

	* calendar/: Several bug fixes under calendar.
	* ui/: Use common shortcut for preview pane.

svn path=/trunk/; revision=30497
2005-10-06 18:21:52 +00:00
d097ac6883 Fixes #317014
svn path=/trunk/; revision=30418
2005-09-29 13:02:56 +00:00
4f56bd0a43 Show the attachment bar menu items when needed.
svn path=/trunk/; revision=30157
2005-08-18 11:20:23 +00:00
113a8f574a Fixes #73879 Added a function to sensitize/desensitize the attachment bar.
2005-03-31  Chenthill Palanisamy  <pchenthill@novell.com>

	Fixes #73879
	* gui/dialogs/comp-editor.[ch]:
	(comp_editor_sensitize_attachment_bar): Added a function
	to sensitize/desensitize the attachment bar.
	(comp_editor_notify_client_changed): When client changes
	sensitize the attachment bar.
	* gui/dialogs/event-editor.c: (event_editor_construct):
	* gui/dialogs/task-editor.c: (task_editor_construct): Sensitize
	the attachment bar.

svn path=/trunk/; revision=29146
2005-04-01 08:44:56 +00:00
f867fb4644 Fixes #73031
2005-03-21  Chenthill Palanisamy  <pchenthill@novell.com>

	Fixes #73031
	* gui/dialogs/event-editor.c: (event_editor_finalize):
	* gui/dialogs/task-editor.c: (task_editor_finalize): Added
	a check for the presence of the object before unreffing it.

svn path=/trunk/; revision=29076
2005-03-21 15:34:37 +00:00
1555ba44f9 Fixes #72006
2005-02-23  Chenthill Palanisamy  <pchenthill@novell.com>

	Fixes #72006
	* gui/dialogs/comp-editor.c: (real_edit_comp):
	* gui/dialogs/event-editor.c: (show_meeting):
	* gui/dialogs/task-editor.c: (show_assignment): Reset
	the changed state, to suppress the promt_to_changes
	dialog when the fields are not changed.

svn path=/trunk/; revision=28868
2005-02-23 12:42:44 +00:00
ede8a75435 added a boolean variable is_meeting. added a boolean variable
2005-02-18  Chenthill Palanisamy  <pchenthill@novell.com>

	* _EventPagePrivate: added a boolean variable is_meeting.
	* _TaskPagePrivate: added a boolean variable is_assignment.
	* gui/dialogs/task-page.h:
	* gui/dialogs/event-page.h: Added a function to set
	the is_meeting boolean variable.
	* gui/dialogs/event-editor.c: (show_meeting):
	* gui/dialogs/task-editor.c: (show_assignment): Called
	the function to set the boolean variable.
	* gui/dialogs/event-page.c: (event_page_init),
	(event_page_set_meeting), (source_changed_cb):
	* gui/dialogs/task-page.c: (task_page_init),
	(task_page_set_assignment), (source_changed_cb):
	If the source is changed and only if its a group
	event show the send options frame.
	* gui/gnome-cal.c: (client_cal_opened_cb): Do not
	popup the offline error dialog for tasks.

svn path=/trunk/; revision=28809
2005-02-18 05:41:06 +00:00
afbb1fd44d Add a string to CompEditorPrivate to store the name of the help section we
2005-02-04  Rodney Dawes  <dobey@novell.com>

	* gui/dialogs/comp-editor.[ch]: Add a string to CompEditorPrivate to
	store the name of the help section we need to refer for derived dialogs
	(response_cb): Handle the GTK_RESPONSE_HELP response and show help
	(setup_widgets): Add a button to the dialog for Help
	(comp_editor_init): Default to the "usage-calendar" help section
	(comp_editor_finalize): Free the help_section variable
	(comp_editor_show_help): Add a new method to actually open the help
	(comp_editor_set_help_section): Add a method for derivatives to set the
	help section they want to open

	* gui/dialogs/event-editor.c (event_editor_init): Set the help section
	we want to open for the event editor to "usage-calendar-apts"

	* gui/dialogs/task-editor.c (task_editor_init): Set the help section
	we want to open for the event editor to "usage-calendar-todo"

svn path=/trunk/; revision=28710
2005-02-04 15:49:15 +00:00
eac831f58e Added support for attachments support to calendar items.
2005-01-08  Harish Krishnaswamy  <kharish@novell.com>
Added support for attachments support to calendar items.

svn path=/trunk/; revision=28287
2005-01-08 10:53:53 +00:00
b7c7fa51d6 Commiting send options
2005-01-06  Chenthill Palanisamy <pchenthill@novell.com>

	Commiting send options

svn path=/trunk/; revision=28252
2005-01-06 09:25:21 +00:00
300ec3f74d Add a boolean variable to denote assigned task and construct the meeting
2004-12-02  Chenthill Palanisamy  <pchenthill@novell.com>

	* gui/dialogs/task-editor.[ch] (task_editor_new), (task_editor_construct),
	(show_assignment):
	Add a boolean variable to denote assigned task and construct the
	meeting page only for the assigned task. Set it as a group item
	in component editor.
	(_TaskEditorPrivate): added the boolean variable (is_assigned).
	(task_editor_init): initialized the variable.
	* gui/dialogs/comp-editor.[ch]: Added functions to set and get whether comp
	 is a group item or individual item.
 	* gui/comp-editor.c (make_title_from_string), (make_title_from_comp):
	Set the Title for the appointment editor window as "Meeting" or "Assigned
	Task" if its a group calendar/task item.
	(_CompEditorPrivate): added a boolean variable (is_group_item).
	(comp_editor_init): initialized the same.
	* gui/dialogs/event-editor.c (event_editor_construct), (show_meeting): Set whether
	the component is a group item or not in comp editor.
	* gui/e-calendar-table.c (e_calendar_table_open_task), (e_calendar_table_open_selected),
	(open_task_by_row): Check whether the component being opened is an assigned task by
	checking for attendees and call open_task with proper value for boolean variable assign.
	* gui/comp-editor-factory.c (edit_existing):
	* gui/e-calendar-table.c (open_task):
	* gui/e-tasks.c (e_tasks_new_task):
	* gui/gnome-cal.c (gnome_calendar_new_task):
	* gui/tasks-component.c (create_new_todo):
	Called the function task_editor_new with a added argument.

svn path=/trunk/; revision=28044
2004-12-02 14:05:50 +00:00
4d0c841a03 conver to G_DEFINE_TYPE
2004-10-14  JP Rosevear  <jpr@novell.com>

	* gui/dialogs/comp-editor.c: conver to G_DEFINE_TYPE

	* gui/dialogs/meeting-page.c: ditto

	* gui/dialogs/recurrence-page.c: ditto

	* gui/dialogs/schedule-page.c: ditto

	* gui/dialogs/e-delegate-dialog.c: ditto

	* gui/dialogs/event-editor.c: ditto

	* gui/dialogs/task-editor.c: ditto

	* gui/dialogs/task-details-page.c: ditto

	* gui/dialogs/select-source-dialog.c
	(primary_selection_changed_cb): fix warning

svn path=/trunk/; revision=27576
2004-10-14 14:22:12 +00:00
05dc817ea1 use "Task" instead of "Basic"
2004-06-25  JP Rosevear  <jpr@novell.com>

	* gui/dialogs/task-editor.c (task_editor_construct): use "Task"
	instead of "Basic"

	* gui/dialogs/event-editor.c (event_editor_construct): use
	"Invitations" instead of "Meeting"

svn path=/trunk/; revision=26518
2004-06-25 17:37:35 +00:00
2e266d5ae5 HIGify and newer design; alarm page is gone, Cancel/OK buttons for the
2004-06-22  JP Rosevear  <jpr@novell.com>

	 * gui/dialogs/Makefile.am, gui/dialogs/alarm-dialog.c,
	 gui/dialogs/alarm-dialog.glade, gui/dialogs/alarm-dialog.h,
	 gui/dialogs/alarm-list-dialog.c,
	 gui/dialogs/alarm-list-dialog.glade,
	 gui/dialogs/alarm-list-dialog.h, gui/dialogs/alarm-options.c,
	 gui/dialogs/alarm-options.h, gui/dialogs/alarm-page.c,
	 gui/dialogs/alarm-page.glade, gui/dialogs/alarm-page.h,
	 gui/dialogs/comp-editor.c, gui/dialogs/comp-editor.h,
	 gui/dialogs/event-editor.c, gui/dialogs/event-page.c,
	 gui/dialogs/event-page.glade, gui/dialogs/meeting-page.c,
	 gui/dialogs/meeting-page.glade, gui/dialogs/recurrence-page.c,
	 gui/dialogs/recurrence-page.glade,
	 gui/dialogs/task-details-page.c,
	 gui/dialogs/task-details-page.glade, gui/dialogs/task-editor.c,
	 gui/dialogs/task-page.c, gui/dialogs/task-page.glade: HIGify and
	 newer design; alarm page is gone, Cancel/OK buttons for the
	 dialog, no more menus; slightly improve read-only workings for
	 entry areas

svn path=/trunk/; revision=26463
2004-06-22 22:35:41 +00:00
75be12445f Fixes #56875
2004-06-03  Rodrigo Moya <rodrigo@novell.com>

	Fixes #56875

	* gui/dialogs/event-editor.c (event_editor_construct): connect to
	"client_changed" signal on the EventPage.
	(client_changed_cb): set menu sensibility when the client changes.

	* gui/dialogs/task-editor.c (task_editor_construct): connect to
	"client_changed signal on the TaskPage.
	(client_changed_cb): set menu sensibility when the client changes.

svn path=/trunk/; revision=26173
2004-06-03 16:11:18 +00:00
0a13b57295 Remove a bunch of gal includes that are no longer needed
2003-11-20  JP Rosevear <jpr@ximian.com>

	* Remove a bunch of gal includes that are no longer needed

svn path=/trunk/; revision=23457
2003-11-20 15:11:40 +00:00
0931299f23 Cleanup some ref/unref calls
2003-11-17  JP Rosevear <jpr@ximian.com>

	* Cleanup some ref/unref calls

svn path=/trunk/; revision=23412
2003-11-18 04:24:25 +00:00
200606f928 Various changes to merge in evolution-data-server reliance.
svn path=/trunk/; revision=23206
2003-11-07 05:52:24 +00:00
21743ac2cf Merge new-ui-branch into the trunk.
svn path=/trunk/; revision=22966
2003-10-21 18:51:30 +00:00
54869d90bd new VOID:STRING,STRING,STRING build the new view/store/renderer/editable
2003-09-30  Mike Kestner <mkestner@ximian.com>

	* cal-util/cal-util-marshal.list : new VOID:STRING,STRING,STRING
	* gui/Makefile.am : build the new view/store/renderer/editable
	* gui/e-select-names-renderer.* : new completion cell renderer
	* gui/e-select-names-editable.* : new completion cell editable
	* gui/e-meeting-model.* : killed. code reused in list-view/store
	* gui/e-meeting-store.* : port of EMeetingModel to GtkTreeModel
	* gui/e-meeting-list-view.* : GtkTreeView subclass for attendee lists
	* gui/e-meeting-time-sel.c : Use the new store/view
	* gui/e-meeting-time-sel-item.c : Use the new store/view
	* gui/dialogs/Makefile.am : don't install the etspec anymore.
	* gui/dialogs/event-editor.c : Use the new store/view.
	* gui/dialogs/meeting-page.c : Use the new store/view.
	* gui/dialogs/shedule-page.c : Use the new store/view.
	* gui/dialogs/task-editor.c : Use the new store/view.

svn path=/trunk/; revision=22774
2003-09-30 22:39:04 +00:00
742a5252c8 Fixes #45910
2003-07-07  Rodrigo Moya <rodrigo@ximian.com>

	Fixes #45910

	* gui/dialogs/task-editor.c (task_editor_class_init): set up the
	handler for the set_cal_client virtual method.
	(task_editor_set_cal_client): added missing virtual method.

2003-07-07  Jack Jia <jack.jia@sun.com>

	* cal-client/cal-client.c (cal_client_get_static_capability): add
	g_return_val_if_fail to check the input param.

svn path=/trunk/; revision=21743
2003-07-07 09:51:35 +00:00
43d436a36e Don't leak exceptions (load_static_capabilities): free the capability
* cal-client/cal-client.c (real_open_calendar): Don't leak
	exceptions
	(load_static_capabilities): free the capability string

	* gui/dialogs/task-page.c (task_page_fill_component): Free the
	description text if it *was* set, rather than if it wasn't.

	* gui/dialogs/task-editor.c (task_editor_finalize): Free the priv
	struct.

svn path=/trunk/; revision=21722
2003-07-02 13:29:55 +00:00
64ee2a607b added a GtkWindow argument for callers to specify the parent window.
2003-06-27  Rodrigo Moya <rodrigo@ximian.com>

	* gui/dialogs/send-comp.[ch] (send_component_dialog):
	* gui/dialogs/cancel-comp.[ch] (cancel_component_dialog): added a
	GtkWindow argument for callers to specify the parent window.

	* gui/dialogs/changed-comp.[ch] (changed_component_dialog): added
	'parent' argument and use GtkMessageDialog instead of
	gnome_question_dialog.

	* gui/e-calendar-table.c (e_calendar_table_delete_selected):
	* gui/e-day-view.c (e_day_view_delete_event_internal,
	  e_day_view_on_cut, e_day_view_finish_long_event_resize,
	  e_day_view_finish_resize, e_day_view_on_editting_stopped,
	  e_day_view_on_top_canvas_drag_data_received, selection_received):
	* gui/e-week-view.c (e_week_view_delete_event_internal,
	  e_week_view_on_cut, e_week_view_on_editing_stopped,
	  selection_received):
	* gui/dialogs/event-editor.c (cancel_meeting_cmd):
	* gui/dialogs/task-editor.c (cancel_task_cmd):
	* gui/dialogs/comp-editor.c (delete_cmd, obj_removed_cb): pass the parent window to
	the *_component_dialog() functions.

	* gui/dialogs/delete-comp.c (delete_component_dialog): use the 'widget'
	argument to get the parent window for the dialog.

svn path=/trunk/; revision=21684
2003-06-29 19:33:42 +00:00
cde584d348 unref the model again (task_editor_edit_comp): don't allow editing if the
2003-05-01  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/task-editor.c (task_editor_finalize): unref the
	model again
	(task_editor_edit_comp): don't allow editing if the assignee has
	delegated

	* gui/dialogs/meeting-page.c (popup_delete_cb): set the new
	non-delegator to be editable

	* gui/dialogs/event-editor.c (event_editor_edit_comp): don't allow
	editing if the attendee has delegated
	(event_editor_finalize): unref the model again

	* gui/e-meeting-model.c: remove e-table-without related functions
	(finalize): don't create without table
	(e_meeting_model_etable_from_model): build the table with this as
	model
	(e_meeting_model_etable_model_to_view_row): directly use the
	model_to_view call
	(e_meeting_model_etable_view_to_model_row): as above
	(attendee_changed_cb): make sure pre change is alwasy called

	* gui/e-meeting-model.h: use DECLS, remove protos for long dead
	functions, don't include config.h

svn path=/trunk/; revision=21045
2003-05-02 12:37:17 +00:00
63d47beb22 ditto
2003-04-29  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/task-editor.c (task_editor_finalize): ditto

	* gui/dialogs/event-editor.c (event_editor_finalize): don't unref
	the model here

	* gui/e-meeting-time-sel.c (e_meeting_time_selector_destroy): null
	up the display_top and display_main for re-entrancy purposes

svn path=/trunk/; revision=21018
2003-04-29 18:51:51 +00:00
fff54e1198 added missing capabilities.
2003-04-11  Rodrigo Moya <rodrigo@ximian.com>

	* cal-util/cal-util.h: added missing capabilities.

	* cal-client/cal-client.c (cal_client_get_one_alarm_only,
	  cal_client_get_organizer_must_attend,
	  cal_client_get_save_schedules):
	* gui/itip-utils.c (itip_organizer_is_user):
	* gui/e-calendar-table.c (e_calendar_table_on_right_click):
	* gui/dialogs/task-editor.c (set_menu_sens):
	* gui/dialogs/event-page.c (event_page_fill_widgets):
	* gui/dialogs/meeting-page.c (meeting_page_fill_widgets):
	* gui/dialogs/alarm-page.c (button_options_clicked_cb): use the macros
	defined in cal-util.h for static capabilities.

svn path=/trunk/; revision=20815
2003-04-11 10:41:37 +00:00
6b4c3984d5 If only the pipe wouldn't break.
svn path=/trunk/; revision=20143
2003-03-04 19:52:37 +00:00
ee568bb74f gconf settings upgrades
svn path=/trunk/; revision=20018
2003-02-24 02:59:24 +00:00
1d89cb7a9b Appease the compiler. (gnome_calendar_update_paned_quanta): Don't actually
2003-02-23  Hans Petter Jansson  <hpj@ximan.com>

	* gui/gnome-cal.c (backend_died_cb): Appease the compiler.
	(gnome_calendar_update_paned_quanta): Don't actually try to set
	the quantum properties. The quantum code should probably go away
	entirely now that the panes update during resize, but let's keep
	it around for a bit more.

	* gui/dialogs/event-editor.c (event_editor_construct): Ref & sink
	the pages.

	* gui/dialogs/task-editor.c (task_editor_construct): Ref & sink
	the pages.

svn path=/trunk/; revision=20011
2003-02-24 00:57:57 +00:00
8a30fde1e5 Replace gtk_signal_disconnect_by_data() with
2002-12-19  Hans Petter Jansson  <hpj@ximian.com>

        * gui/calendar-commands.c (calendar_control_deactivate):
        Replace gtk_signal_disconnect_by_data() with
        g_signal_handlers_disconnect_matched(). Former takes GtkObject,
        latter takes GObject.

        * gui/calendar-model.c (calendar_model_destroy): Ditto.
        (update_query): Ditto.
        (calendar_model_set_cal_client): Ditto.

        * gui/e-day-view.c (e_day_view_destroy): Ditto.
        (update_query): Ditto.
        (e_day_view_set_cal_client): Ditto.

        * gui/e-tasks.c (query_eval_error_cb): Ditto.
        (query_query_done_cb): Ditto.

        * gui/e-week-view.c (e_week_view_destroy): Ditto.
        (update_query): Ditto.
        (e_week_view_set_cal_client): Ditto.

        * gui/gnome-cal.c (update_query): Ditto.
        (gnome_calendar_destroy): Ditto.

        * gui/tasks-control.c (tasks_control_deactivate): Ditto.

        * gui/e-comp-editor-registry.c (foreach_close_cb): Replace
        gtk_signal_handler_(un)block_by_data() with
        g_signal_handlers_(un)block_matched(). Former takes GtkObject, latter
        takes GObject.

        * gui/dialogs/alarm-page.c (alarm_page_get_type): Replace with
        E_MAKE_TYPE().
        (alarm_page_class_init): Use GObject as base class instead of
        GtkObject, and set up finalization instead of destroy handler.
        (alarm_page_destroy): Change to alarm_page_finalize() and assume
        parent is GObject, not GtkObject.
        (alarm_page_new): Use g_object_new(), not gtk_type_new().

        * gui/dialogs/event-page.c: Same general changes as above file.
        (update_time): Replace gtk_signal_handler_(un)block_by_data()
        with g_signal_handlers_(un)block_matched().
        (clear_widgets): Ditto.
        (times_updated): Ditto.

        * gui/dialogs/recurrence-page.c: Same general changes as above file.
        (clear_widgets): Replace gtk_signal_handler_(un)block_by_data()
        with g_signal_handlers_(un)block_matched().
        (append_exception): Ditto.
        (fill_ending_date): Ditto.
        (recurrence_page_fill_widgets): Ditto.

        * gui/dialogs/comp-editor.c: Same general changes as above file.
        (comp_editor_finalize): Replace gtk_signal_disconnect_by_data()
        with g_signal_handlers_disconnect_matched().
        (comp_editor_remove_page): Ditto.

        * gui/dialogs/event-editor.c: Same general changes as above file.
        * gui/dialogs/meeting-page.c: Same general changes as above file.
        * gui/dialogs/schedule-page.c: Same general changes as above file.
        * gui/dialogs/task-details-page.c: Same general changes.
        * gui/dialogs/task-editor.c: Same general changes as above file.
        * gui/dialogs/task-page.c: Same general changes as above file.
        * gui/dialogs/e-delegate-dialog.c: Same general changes.

svn path=/trunk/; revision=19167
2002-12-19 13:09:14 +00:00
3041d1943a run fix.sh over this.
2002-11-27  Not Zed  <NotZed@Ximian.com>

        * gui/itip-utils.[ch]: run fix.sh over this.

        * gui/dialogs/*.[ch]: run fix.sh over all of this.

2002-11-26  Richard Li <Richard.Li@Sun.COM>

        * cal-client/cal-client.c (cal_client_construct): removed extra call
        to CORBA_exception_init.

2002-11-22  Not Zed  <NotZed@Ximian.com>

        * gui/dialogs/delete-comp.c (delete_component_dialog): Changed
        e_messagebox -> gtk_messagedialog.

svn path=/trunk/; revision=18972
2002-12-02 03:06:02 +00:00
5a20dc84bb Fixes #30057
2002-10-02  Rodrigo Moya <rodrigo@ximian.com>

	Fixes #30057

	* cal-client/cal-client.c (cal_client_is_read_only): added check
	of the status of the client before trying to make CORBA calls.

	* gui/calendar-commands.c (sensitize_calendar_commands,
	  sensitize_taskpad_commands):
	* gui/tasks-control.c (sensitize_commands):
	* gui/dialogs/event-editor.c (set_menu_sens):
	* gui/dialogs/task-editor.c (set_menu_sens):
	* gui/e-calendar-table.c (e_calendar_table_on_right_click):
	* gui/e-day-view.c (e_day_view_on_event_right_click):
	* gui/e-week-view.c (e_week_view_show_popup_menu): take into account
	the read-onlyness of clients to disable/enable menu items.

svn path=/trunk/; revision=18316
2002-10-03 10:57:22 +00:00
fc2c499f8b Non-Connector part of #29334 (meeting created by a delegate in the
delegator's calendar should have the delegator as Organizer).

	* idl/evolution-calendar.idl: add Cal_getEmailAddress, to return
	the email address associated with a backend (if any).

	* pcs/cal-backend.c (cal_backend_get_email_address): New.

	* pcs/cal-backend-file.c (cal_backend_file_get_email_address):
	Return NULL (for now).

	* pcs/cal.c (impl_Cal_get_email_address): Implement this by
	calling cal_backend_get_email_address and returning a NotFound
	exception if it returns NULL.

	* cal-client/cal-client.c (cal_client_get_email_address): New.
	(cal_client_init, cal_client_destroy, etc): initialize/free
	email_address

	* gui/dialogs/event-editor.c (event_editor_construct): Split this
	out of event_editor_init. Take and set a CalClient.
	(event_editor_new): Take a CalClient.

	* gui/dialogs/task-editor.c (task_editor_construct,
	task_editor_new): Likewise.

	* gui/dialogs/meeting-page.c (meeting_page_new,
	meeting_page_construct): Take a CalClient and call
	cal_client_get_email_address to find the default organizer
	address. (Also fix a bug if the default account's name has
	non-ASCII characters.)

	* gui/itip-utils.c (comp_from): New. When sending a REQUEST or
	CANCEL, use the Organizer as the From address.
	(itip_send_comp): Call comp_from and pass the result to
	Composer_setHeaders.

	* gui/comp-editor-factory.c (edit_existing, edit_new): Pass the
	CalClient to event_editor_new/task_editor_new

	* gui/e-calendar-table.c (open_task): Likewise.

	* gui/e-tasks.c (e_tasks_new_task): Likewise.

	* gui/gnome-cal.c (gnome_calendar_edit_object,
	gnome_calendar_new_task): Likewise.

svn path=/trunk/; revision=18253
2002-09-27 20:23:20 +00:00
2fe0e9f18f bail out if we couldn't send the cancel
2002-09-04  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/event-editor.c (event_editor_send_comp): bail out if
	we couldn't send the cancel

	* gui/dialogs/task-editor.c (task_editor_send_comp): ditto

	* gui/dialogs/comp-editor.c (save_comp_with_send): indicate send
	status
	(real_send_comp): return success/fail, only resave the component a
	if we successfully sent
	(comp_editor_send_comp): return success/fail

	* gui/itip-utils.h: update proto

	* gui/itip-utils.c (itip_send_comp): return true if we sent the
	message

svn path=/trunk/; revision=17966
2002-09-04 18:12:28 +00:00
7
1ea6884e82 use util function to see if the user is the organizer
2002-07-17    <jpr@ximian.com>

	* gui/calendar-model.c (calendar_model_value_at): use util
	function to see if the user is the organizer

	* gui/dialogs/cancel-comp.c (cancel_component_dialog): add
	deleting proto to indicate whether cancelling or deleting is the
	primary operation

	* gui/dialogs/cancel-comp.h: update proto

	* gui/dialogs/comp-editor.c (delete_cmd): offer to cancel

	* gui/dialogs/task-editor.c (cancel_task_cmd): call
	cancel_component_dialog with new param

	* gui/dialogs/event-editor.c (cancel_meeting_cmd): ditto

	* gui/e-week-view.c (e_week_view_on_editing_stopped): only update
	request if user is organizer
	(e_week_view_show_popup_menu): disable the meeting and meeting
	organizer mask if appropriate
	(e_week_view_delete_event_internal): offer to cancel the meeting
	(e_week_view_on_cut): ditto
	(selection_received): send request if its a meeting

	* gui/e-day-view.h: add meeting icon/mask

	* gui/e-day-view.c (e_day_view_on_event_right_click): disable the
	meeting and meeting organizer mask if appropriate
	(e_day_view_delete_event_internal): offer to cancel meeting
	(e_day_view_on_cut): ditto
	(e_day_view_finish_long_event_resize): only update request if user
	is organizer
	(e_day_view_reshape_long_event): add meeting icon to count
	(e_day_view_reshape_day_event): ditto
	(e_day_view_on_top_canvas_drag_data_received): only update request
	if user is organizer
	(e_day_view_on_main_canvas_drag_data_received): ditto
	(selection_received): offer to send meeting info

	* gui/e-day-view-main-item.c
	(e_day_view_main_item_draw_day_event): draw meeting icon if
	appropriate (using dummy icon atm)

svn path=/trunk/; revision=17491
2002-07-17 17:23:49 +00:00
5ab2df3c08 add back proto
2002-06-25  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/comp-editor-page.h: add back proto

	* gui/dialogs/comp-editor-page.c
	(comp_editor_page_notify_needs_send): add page needs_send signal

	* gui/e-meeting-time-sel.c
	(e_meeting_time_selector_on_invite_others_button_draw): check to
	see if the button should be sensitive when drawing
	(e_meeting_time_selector_construct): listen for the button draw
	signal

	* cal-util/cal-component.c (cal_component_strip_errors): remove
	X-LIC-ERROR x properties

	* cal-util/cal-component.h: new proto

	* gui/dialogs/meeting-page.c (change_clicked_cb): set needs_send
	to true
	(meeting_page_fill_widgets): set up gui based on if the user or
	someone else is the organizer
	(meeting_page_construct): read the addresses here for the combo
	box
	(get_widgets): explicitly set the value in list values

	* gui/dialogs/event-editor.c (set_menu_sens): base this on the
	exist org and user org values of the comp editor
	(event_editor_edit_comp): set up editable row restrictions on the
	meeting model if the user is not an organizer, and don't set needs
	send if we aren't the organizer initially
	(model_row_changed_cb): set needs_send to true
	(row_count_changed_cb): ditto

	* gui/dialogs/meeting-page.glade: update gui

	* gui/dialogs/comp-editor.c (save_comp_with_send): if the user is
	not the organizer, REPLY rather than REQUEST
	(comp_editor_set_existing_org): accessor
	(comp_editor_get_existing_org): ditto
	(comp_editor_set_user_org): ditto
	(comp_editor_get_user_org): ditto
	(real_edit_comp): determine if there is an existing organizer and
	if the organizers is a user
	(page_changed_cb): warn the user that changes may be discarded
	(page_summary_changed_cb): ditto
	(page_dates_changed_cb): ditto

	* gui/dialogs/comp-editor.h: new protos

	* gui/itip-utils.c (itip_organizer_is_user): determine if the
	organizer of a component is a user
	(itip_sentby_is_user): same for sentby field of organizer
	(comp_sentby): use above routines instead
	(comp_compliant): strip all X-LIC-ERROR fields generated by
	libical

	* gui/e-meeting-model.c (is_cell_editable): if there is a list of
	editable rows, allow only the status column of those rows to be
	edited
	(init): init edit_rows
	(e_meeting_model_restricted_add): add an editable row to the model
	(e_meeting_model_restricted_remove): remove an editable row
	(e_meeting_model_restricted_clear): clear all editable rows
	(e_meeting_model_etable_click_to_add): set the click to add arg on
	all tables
	(e_meeting_model_etable_from_model): track the tables
	(table_destroy_list_cb): remove the table being destroyed from the
	list
	(table_destroy_state_cb): remove the table being destroyed from
	the list

	* gui/e-meeting-model.h: new protos

	* gui/e-itip-control.c (update_attendee_status): kill warning

svn path=/trunk/; revision=17274
2002-06-25 13:11:47 +00:00
9e052c1a09 Pass the @component_pixmaps in so we give the new "Meeting" button an
* gui/dialogs/event-editor.c (event_editor_init): Pass the
@component_pixmaps in so we give the new "Meeting" button an icon.

* gui/dialogs/comp-editor.c (comp_editor_merge_ui): New arg
@component_pixmaps to pass in custom pixmaps.

svn path=/trunk/; revision=16955
2002-05-20 21:28:00 +00:00
a3aae682ce implement new pop up menu items for "Save as", "Print", "Assign Task",
2002-03-29  JP Rosevear  <jpr@ximian.com>

	* gui/e-calendar-table.c: implement new pop up menu items for
	"Save as", "Print", "Assign Task", "Forward as iCalendar"

	* gui/e-day-view.c: similarly, also "Publish Free/Busy
	Information" and "New Meeting" and "New Task"

	* gui/e-week-view.c: ditto

	* gui/dialogs/task-editor.c (show_assignment): move the assignment
	page stuff here
	(task_editor_show_assignment): use it
	(assign_task_cmd): ditto

	* gui/dialogs/task-editor.h: new proto

	* gui/dialogs/comp-editor.c (save_as_cmd): use new e-util file
	selector function

svn path=/trunk/; revision=16287
2002-03-29 21:45:33 +00:00