Commit Graph

109 Commits

Author SHA1 Message Date
faea9f4360 Fix for bug #61673. The function takes two arguments now, instead of one.
2004-08-05  Parthasarathi S A   <sparthasarathi@novell.com>

	Fix for bug #61673.
	* calendar/gui/dialogs/save_comp.c(save_component_dialog):
	  The function takes two arguments now, instead of one. The second
	  argument is the pointer to the ECalComponent from which the component
	  type can be determined. Based on the component type the corresponding
	  error message is displayed.
	* calendar/gui/dialogs/save_comp.h:
	  Function definition updated for save_component_dialog.
	* calendar/gui/dialogs/comp_editor.c(prompt_to_save_changes):
	  passing the ECalComponent pointer to the 'save_component_dialog' function
	* calendar/calendar-errors.xml: New error message string for task included
	* calendar/calendar-errors.xml.h

svn path=/trunk/; revision=26839
2004-08-06 10:05:23 +00:00
f47e957ba9 Fixes #61572
2004-07-14  JP Rosevear  <jpr@novell.com>

 	Fixes #61572

 	* gui/dialogs/schedule-page.c (times_changed_cb): call notify
 	changed

 	* gui/dialogs/comp-editor.c (page_summary_changed_cb): no need to
 	mark the editor changed here, it doesn't do the right thing anyhow
 	(page_dates_changed_cb): ditto

svn path=/trunk/; revision=26659
2004-07-16 02:28:21 +00:00
a2dfc8a5c8 set the window type hint to normal so it can go below the shell window
2004-06-23  JP Rosevear  <jpr@novell.com>

	* gui/dialogs/comp-editor.c (comp_editor_init): set the window
	type hint to normal so it can go below the shell window

svn path=/trunk/; revision=26480
2004-06-23 17:38:39 +00:00
e659218812 fixed gtk-doc comments and made it enable/disable the dialog's OK button
2004-06-23  Rodrigo Moya <rodrigo@novell.com>

	* gui/dialogs/comp-editor.c (comp_editor_notify_client_changed):
	fixed gtk-doc comments and made it enable/disable the dialog's
	OK button depending on the selected source.

svn path=/trunk/; revision=26479
2004-06-23 17:17:07 +00:00
ef8840da7b kill warnings
2004-06-22  JP Rosevear  <jpr@novell.com>

	* gui/dialogs/comp-editor.c: kill warnings

svn path=/trunk/; revision=26467
2004-06-23 00:16:06 +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
4abd3bdeb5 Fixes #58747
2004-06-18  Rodrigo Moya <rodrigo@novell.com>

	Fixes #58747

	* gui/dialogs/comp-editor.c (prompt_to_save_changes): if the source
	is read only, don't prompt the user.

svn path=/trunk/; revision=26420
2004-06-18 16:10:52 +00:00
bab3dc622a new function for notifying all pages of the client change.
2004-06-08  Rodrigo Moya <rodrigo@novell.com>

	* gui/dialogs/comp-editor.[ch] (comp_editor_notify_client_changed):
	new function for notifying all pages of the client change.
	(page_client_changed_cb): no need for this callback.
	(comp_editor_append_page): no need to connect to "client_changed"
	signal on the pages.

	* gui/dialogs/comp-editor-page.c
	(comp_editor_page_notify_client_changed): re-added the call to
	comp_editor_page_set_e_cal(), the client was not being set anywhere.

	* gui/dialogs/event-page.c (source_changed_cb): use
	comp_editor_notify_client_changed() so that all pages get informed
	of the client change.

	* gui/dialogs/task-page.c (source_changed_cb): ditto.

svn path=/trunk/; revision=26255
2004-06-08 16:44:46 +00:00
756eadbdf3 fix the name of "stock_save-as" everywhere
svn path=/trunk/; revision=26237
2004-06-07 15:36:39 +00:00
5a2b990b92 Same.
2004-05-17  Jeffrey Stedfast  <fejj@novell.com>

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

	* gui/dialogs/comp-editor.c: Change E_PIXMAP size args
	over to E_ICON_SIZE_* values.

svn path=/trunk/; revision=25942
2004-05-17 20:59:01 +00:00
68a179bc70 ditto
2004-04-29  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/comp-editor.c (send_timezone): ditto

	* gui/dialogs/task-page.c (task_page_fill_component): kill warning

svn path=/trunk/; revision=25693
2004-04-29 19:14:47 +00:00
8172d77c91 Update the calendar to use the icon theme through the EIconFactory object
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
2004-04-19 15:19:32 +00:00
c692eb0612 Fixes #53903
2004-04-15  JP Rosevear  <jpr@ximian.com>

	Fixes #53903

	* gui/dialogs/meeting-page.c (meeting_page_fill_widgets):
	show/hide add button properly
	(change_clicked_cb): ditto

	* gui/dialogs/comp-editor.c (needs_send_cb): call back when "needs_send"
	(page_changed_cb): use accessor

svn path=/trunk/; revision=25482
2004-04-15 15:45:27 +00:00
ba90e141e1 stop listening to changes since we are just going to save and close
2004-04-15  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/comp-editor.c (save_comp): stop listening to changes
	since we are just going to save and close
	(save_cmd): remove, its ok since we are toasting menus shortly
	anyhow
	(obj_modified_cb): no need to look at update flag
	(obj_removed_cb): ditto

svn path=/trunk/; revision=25481
2004-04-15 15:11:36 +00:00
4909b5ff6d Fixes #56316
2004-04-05  Rodrigo Moya <rodrigo@ximian.com>

	Fixes #56316

	* gui/dialogs/comp-editor-page.[ch]: added "fill_timezones" virtual
	method to CompEditorPage class.
	(comp_editor_page_fill_timezones): new function.
	(comp_editor_page_class_init): initialize new virtual method.

	* gui/dialogs/event-page.c (event_page_fill_timezones,
	event_page_class_init):
	* gui/dialogs/task-page.c (task_page_fill_timezones,
	task_page_class_init):
	* gui/dialogs/task-details-page.c (task_details_page_fill_timezones,
	task_details_page_class_init): implemented new virtual method for pages
	dealing with timezones.

	* gui/dialogs/comp-editor.c (save_comp): call the "fill_timezones"
	method on all pages, and call...
	(send_timezone): ...this function for each hash table item.

svn path=/trunk/; revision=25314
2004-04-05 11:17:43 +00:00
40a30cb188 always add the page.
2004-03-04  Rodrigo Moya <rodrigo@ximian.com>

	* gui/dialogs/comp-editor.c (comp_editor_append_page): always add
	the page.

	* gui/dialogs/event-page.c (event_page_fill_widgets): continue filling
	up all other fields even if there are missing ones, and return the
	validation result.

svn path=/trunk/; revision=24965
2004-03-04 15:49:36 +00:00
8e8fcea05d Fixes #53137
2004-03-04  Rodrigo Moya <rodrigo@ximian.com>

	Fixes #53137

	* gui/dialogs/comp-editor-page.[ch]: made fill_widgets virtual
	method return a gboolean.
	(comp_editor_page_fill_widgets): return value from virtual method
	implementation.

	* gui/dialogs/event-page.c (event_page_fill_widgets):
	* gui/dialogs/meeting-page.c (meeting_page_fill_widgets):
	* gui/dialogs/recurrence-page.c (recurrence_page_fill_widgets):
	* gui/dialogs/schedule-page.c (schedule_page_fill_widgets):
	* gui/dialogs/task-details-page.c (task_details_page_fill_widgets):
	* gui/dialogs/task-page.c (task_page_fill_widgets):
	* gui/dialogs/alarm-page.c (alarm_page_fill_widgets): return value,
	as expected from the virtual method signature.

	* gui/dialogs/comp-editor.c (comp_editor_append_page): dont add the
	page if there was an error calling the fill_widgets method.

svn path=/trunk/; revision=24960
2004-03-04 11:17:56 +00:00
9b9570bd65 convert to GObject
2004-01-16  JP Rosevear <jpr@ximian.com>

	* gui/e-comp-editor-registry.h: convert to GObject

	* gui/e-comp-editor-registry.c (registry_data_free): routine to
	free the registry data
	(dispose): destroy the registry data
	(finalize): finalize it
	(class_init): setup above
	(init): create full hash table
	(e_comp_editor_registry_add): weak ref the editor and strdup the
	hash table key
	(editor_destroy_cb): we get the registry data now, just remove it

	* gui/dialogs/comp-editor.c (close_dialog): disconnect the signal
	handlers, its a bit of a hack but it is a simple fix

svn path=/trunk/; revision=24277
2004-01-16 16:29:21 +00:00
6a22658a68 reverted my changes made on Jan 8th.
2004-01-15  Rodrigo Moya <rodrigo@ximian.com>

	* gui/dialogs/comp-editor.c: reverted my changes made on Jan 8th.

svn path=/trunk/; revision=24256
2004-01-15 21:53:38 +00:00
6c03fe5e10 moved the line that sets priv->updating to FALSE up some lines, to avoid
2004-01-08  Rodrigo Moya <rodrigo@ximian.com>

	* gui/dialogs/comp-editor.c (save_comp): moved the line that sets
	priv->updating to FALSE up some lines, to avoid getting callbacks
	with an incorrect value on it.
	(obj_modified_cb): check the UIDs of the objects we get passed to
	see if the one being edited is amongst them.

svn path=/trunk/; revision=24108
2004-01-08 13:40:02 +00:00
3694d1b23b we don't put any signal handlers on the client or source client now, but
2004-01-06  JP Rosevear <jpr@ximian.com>

	* gui/dialogs/comp-editor.c (comp_editor_finalize): we don't put
	any signal handlers on the client or source client now, but we do
	on the view
	(real_set_e_cal): no signal handlers on the client
	(obj_modified_cb): we are guaranteed this is a signal for our
	component
	(obj_removed_cb): ditto
	(listen_for_changes): listen for changes on the object
	(save_comp): use above since the source_client changed
	(real_edit_comp): use above since the comp changed

svn path=/trunk/; revision=24067
2004-01-06 16:12:31 +00:00
e4a68478f7 Add the concept of a source client, where the object lives currently. The
2003-12-17  Hans Petter Jansson  <hpj@ximian.com>

	* gui/dialogs/comp-editor.c: Add the concept of a source client, where
	the object lives currently. The plain client is where it will be
	stored.
	(comp_editor_finalize): If we have a source client, disconnect from
	and unref it.
	(save_comp): Check if the object is being moved, and if so, remove it
	from the source client, and make the target client the new source.
	(comp_editor_append_page): Connect to client_changed signal.
	(real_set_e_cal): Change an old gtk_signal_disconnect_by_data() to
	the GLib equivalent, and don't cast ECal to GtkObject. If the source
	client is not set, make it equivalent to the target client.
	(page_client_changed_cb): Implement. Handles a client change.

	* gui/dialogs/comp-editor-page.c (comp_editor_page_class_init): Add
	a new signal, "client_changed", that notifies that the ECal client
	was changed from one of the editor pages.
	(comp_editor_page_set_e_cal): Fix two bugs in this function; if the
	same client is set twice, its ref count could drop to 0. Additionally,
	it was unreffing the new client instead of the old one.
	(comp_editor_page_notify_client_changed): Implement.

	* gui/dialogs/event-page.c (event_page_fill_widgets): Fill in the
	source menu.
	(get_widgets): Get the source menu.
	(source_changed_cb): Implement. Try to open a client for the new
	source, and if successful, notify of the change. Show a dialog on
	failure, and revert to last selected source.
	(init_widgets): Connect to source menu.
	(event_page_create_source_option_menu): Implement Glade helper.

	* gui/dialogs/task-page.c (task_page_fill_widgets): Fill in the source
	menu.
	(get_widgets): Get the source menu.
	(source_changed_cb): Implement, similar to the event page, but for
	tasks.
	(init_widgets): Connect to source menu.
	(task_page_construct): Fix a message booboo.
	(task_page_create_source_option_menu): Implement Glade helper.

	* gui/dialogs/event-page.glade: Add source menu widget.

	* gui/dialogs/task-page.glade: Add source menu widget.

svn path=/trunk/; revision=23974
2003-12-18 02:41:53 +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
a7ac69cdc6 Add CAL_STATIC_CAPABILITY_NO_THISANDFUTURE and
* cal-util/cal-util.h: Add CAL_STATIC_CAPABILITY_NO_THISANDFUTURE
	and CAL_STATIC_CAPABILITY_NO_THISANDPRIOR

	* gui/dialogs/recur-comp.c (recur_component_dialog): Add a
	CalClient argument. Use cal_client_get_static_capability to decide
	whether or not to offer THISANDFUTURE and THISANDPRIOR options

	* gui/dialogs/comp-editor.c (prompt_to_save_changes, save_cmd,
	save_close_cmd): Pass a CalClient to recur_component_dialog.

	* gui/e-day-view.c (e_day_view_finish_long_event_resize,
	e_day_view_finish_resize, e_day_view_on_editing_stopped,
	e_day_view_on_top_canvas_drag_data_received,
	e_day_view_on_main_canvas_drag_data_received): Likewise

	* gui/e-week-view.c (e_week_view_on_editing_stopped): Likewise

	* gui/calendar-component.c (impl_createControls): set an exception
	if we fail, so evo won't crash.

svn path=/trunk/; revision=23152
2003-10-31 16:49:30 +00:00
21743ac2cf Merge new-ui-branch into the trunk.
svn path=/trunk/; revision=22966
2003-10-21 18:51:30 +00:00
fa0a110592 Merged ECalendarTable changes from new-calendar-branch
svn path=/trunk/; revision=22143
2003-08-08 14:58:02 +00:00
dc84df9871 Merge new-calendar-branch into HEAD
svn path=/trunk/; revision=22129
2003-08-07 16:38:20 +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
0c1f55e5e6 new functions. (page_summary_changed_cb): change the window title when the
2003-06-23  Rodrigo Moya <rodrigo@ximian.com>

	* gui/dialogs/comp-editor.c (make_title_from_string, set_title_from_string):
	new functions.
	(page_summary_changed_cb): change the window title when the object's
	summary changes.

svn path=/trunk/; revision=21523
2003-06-24 11:37:12 +00:00
f663802fcf removed unused variable.
2003-06-16  Rodrigo Moya <rodrigo@ximian.com>

	* gui/dialogs/comp-editor.c (make_title_from_comp): removed unused
	variable.

svn path=/trunk/; revision=21494
2003-06-20 12:50:26 +00:00
dda5c3a270 the title is already in UTF-8
2003-05-16  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/comp-editor.c (make_title_from_comp): the title is
	already in UTF-8

svn path=/trunk/; revision=21235
2003-05-18 13:46:44 +00:00
4870933205 unref the client and the ui component
2003-05-15  JP Rosevear  <jpr@ximian.com>

 	* gui/dialogs/comp-editor.c (comp_editor_finalize): unref the
 	client and the ui component

svn path=/trunk/; revision=21211
2003-05-16 14:57:15 +00:00
f58154d28e Fixes part of #41148, #41216 and #41235
2003-04-22  Rodrigo Moya <rodrigo@ximian.com>

	Fixes part of #41148, #41216 and #41235

	* gui/e-itip-control.c (init):
	* gui/e-meeting-time-sel.c (e_meeting_time_selector_construct,
	  e_meeting_time_selector_add_key_color):
	* gui/e-timezone-entry.c (e_timezone_entry_init):
	* gui/gnome-cal.c (setup_widgets):
	* gui/tasks-control.c (confirm_expunge):
	* gui/dialogs/comp-editor.c (setup_widgets):
	* gui/dialogs/e-delegate-dialog.c (e_delegate_dialog_construct):
	* gui/dialogs/meeting-page.c (meeting_page_construct):
	* gui/dialogs/recurrence-page.c (make_weekly_special,
	  make_monthly_special, make_ending_count_special):
	* gui/dialogs/schedule-page.c (schedule_page_construct):
	use HIG-suggested spacing.

svn path=/trunk/; revision=20927
2003-04-22 21:15:41 +00:00
1bd3678dbe [ fixes #21499 ]
2003-04-18  Rodney Dawes  <dobey@ximian.com>

	[ fixes #21499 ]
	* gui/component/Makefile.am:
	* gui/component/addressbook.c:
	* gui/component/select-names/e-select-names-bonobo.c:
	* gui/contact-editor/Makefile.am:
	* gui/contact-editor/e-contact-editor.c:
	* gui/contact-list-editor/Makefile.am:
	* gui/contact-list-editor/e-contact-list-editor.c:
	Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui ()

	* gui/Makefile.am:
	* gui/calendar-commands.c:
	* gui/tasks-control.c:
	* gui/dialogs/Makefile.am:
	* gui/dialogs/comp-editor.c:
	Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui ()

	* Makefile.am:
	* e-msg-composer.c:
	Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui ().
	Fixes bug #21499.

	* Makefile.am:
	* folder-browser-ui.c:
	* mail-signature-editor.c:
	* message-browser.c:
	Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui ().
	Fixes bug #21499.

	* Makefile.am:
	* e-summary-factory.c:
	Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui ()

	* e-shell-view.c: Use PREFIX instead of EVOLUTION_DATADIR for
	bonobo_ui_util_set_ui () [#21499]

svn path=/trunk/; revision=20888
2003-04-18 17:46:26 +00:00
d8cac9eeaf Update for e_notice move
* gui/itip-utils.c: Update for e_notice move

	* gui/tasks-control.c (confirm_expunge): Move the code that used
	to be e_gnome_dialog_set_parent here, since it was marked
	deprecated and this was the only place using it.

	* gui/dialogs/comp-editor.c: Update for e_notice move
	(page_changed_cb, page_summary_changed_cb, page_dates_changed_cb):
	Pass a parent_window to e_notice.

	* gui/dialogs/meeting-page.c: Update for e_notice move.
	(meeting_page_fill_component, meeting_page_fill_component,
	popup_delegate_cb): Pass a parent_window to e_notice

svn path=/trunk/; revision=20503
2003-03-25 15:49:44 +00:00
460a3fb010 corrected button ordering and changed the return type to be a
2003-03-12  Rodrigo Moya <rodrigo@ximian.com>

	* gui/dialogs/save-comp.[ch] (save_component_dialog): corrected
	button ordering and changed the return type to be a GtkResponseType.

	* gui/dialogs/comp-editor.c (prompt_to_save_changes): adapted to
	changes in save_component_dialog.

svn path=/trunk/; revision=20261
2003-03-12 16:04:50 +00:00
6b4c3984d5 If only the pipe wouldn't break.
svn path=/trunk/; revision=20143
2003-03-04 19:52:37 +00:00
84d3e4130f Remove cruft. Rename ICONSDIR to IMAGESDIR. (gladedir, etspecdir): Remove
* gui/dialogs/Makefile.am (INCLUDES): Remove cruft. Rename
	ICONSDIR to IMAGESDIR.
	(gladedir, etspecdir): Remove definitions

	* gui/dialogs/alarm-page.c: #include gtktreeselection.h and
	gtkcellrenderertext.h
	(append_reminder): Remove unused variable.
	(alarm_page_fill_component): Likewise.
	(alarm_page_set_summary): Likewise.
	(delete_clicked_cb): Likewise.

	* gui/dialogs/comp-editor.c (make_icon_from_comp):
	s/ICONSDIR/IMAGESDIR/

	* gui/dialogs/event-page.c: #include <string.h>

	* gui/dialogs/meeting-page.c (meeting_page_construct): Remove
	unused variable.
	(meeting_page_fill_widgets): Likewise

	* gui/dialogs/recurrence-page.c: #include gtktreeselection.h and
	gtkcellrenderertext.h
	(append_exception): Remove unused variable
	(fill_component): Likewise
	(recurrence_page_set_summary): Likewise.
	(exception_delete_cb): Likewise

svn path=/trunk/; revision=19792
2003-02-06 01:58:04 +00:00
3cf26e43e2 Mainly making all views use PangoLayouts for text. When drawing a
2003-01-25  Hans Petter Jansson  <hpj@ximian.com>

	Mainly making all views use PangoLayouts for text. When drawing a
	PangoLayout, the draw offset is the top left corner of the layout,
	not the text's baseline. Keep this in mind when viewing the
	changes. I'll be brief about the exact changes, since they speak
	better for themselves.

	* gui/e-day-view-time-item.c (e_day_view_time_item_get_column_width):
	Use Pango.
	(e_day_view_time_item_draw): Use Pango.

	* gui/e-day-view-top-item.c (e_day_view_top_item_draw): Use Pango.
	(e_day_view_top_item_draw_long_event): Add some FIXME text so we can
	see when this is being used. Is it in use at all?

	* gui/e-day-view.c: No longer specify an explicit X font string for
	the large font. Use the main font, and change the point size.
	(e_day_view_init): Use Pango.
	(e_day_view_style_set): Use Pango. Comment out the gdk_font setting
	for the drag text items for now.

	* gui/e-day-view.h: Use Pango.

	* gui/e-week-view-event-item.c (e_week_view_draw_time): Use Pango.

	* gui/e-week-view-main-item.c (e_week_view_main_item_draw_day):
	Use Pango.

	* gui/e-week-view-titles-item.c (e_week_view_titles_item_draw):
	Use Pango.

	* gui/e-week-view.c: No longer specify an explicit X font string for
	the small font. Use the main font, and change the point size.
	(e_week_view_init): Use Pango.
	(e_week_view_destroy): Use Pango.
	(get_string_width): Implemented for convenience.
	(get_digit_width): Implemented for convenience.
	(e_week_view_style_set): Use Pango.
	(e_week_view_recalc_cell_sizes): Use Pango.
	(e_week_view_get_time_string_width): Use Pango.

	* gui/e-week-view.h: Use Pango.

	Following are some random UTF-8 fixes and a crash fix.

	* gui/itip-utils.c (comp_description): Use g_locale_to_utf8 ().

	* gui/dialogs/comp-editor.c (make_title_from_comp): Return a
	UTF-8 string.

	* gui/dialogs/alarm-page.c (alarm_page_set_summary): Pass UTF-8
	directly to GTK.

	* gui/dialogs/delete-comp.c (delete_component_dialog): Ditto.

	* gui/dialogs/meeting-page.c (meeting_page_fill_widgets): Ditto.
	(meeting_page_construct): Ditto.

	* gui/dialogs/recurrence-page.c (recurrence_page_set_summary): Ditto.

	* gui/dialogs/event-editor.c (event_editor_finalize): Fix crash caused
	by gtk_object_destroy()-ing a non-GtkObject.

svn path=/trunk/; revision=19628
2003-01-26 01:42:05 +00:00
2c11fe24f2 Add a terminating NULL to the concatenation.
2003-01-23  Hans Petter Jansson  <hpj@ximian.com>

	* gui/dialogs/comp-editor.c (comp_editor_merge_ui): Add a terminating
	NULL to the concatenation.

svn path=/trunk/; revision=19612
2003-01-24 05:03:54 +00:00
bc61f8e11c Use EVOLUTION_GALVIEWSDIR.
* gui/gnome-cal.c (gnome_calendar_setup_view_menus): Use
EVOLUTION_GALVIEWSDIR.

* gui/e-tasks.c (e_tasks_setup_view_menus): Use
EVOLUTION_GALVIEWSDIR.

* cal-util/Makefile.am: Install libcal-util.la in $(privlibdir)
instead of $(libdir).

* gui/dialogs/comp-editor.c (setup_widgets): Get
evolution-comp-editor.xml from EVOLUTION_UIDIR.
(comp_editor_merge_ui): Get the file in EVOLUTION_UIDIR.

* gui/tasks-control.c (tasks_control_activate): Get
evolution-tasks.xml from EVOLUTION_UI_DIRECTORY.

* gui/calendar-commands.c (calendar_control_activate): Get
evolution-calendar.xml from EVOLUTION_UI_DIRECTORY.

* pcs/Makefile.am (pcsincludedir): Version using $(BASE_VERSION).

* importers/Makefile.am: Install evolution-calendar-importer in
$(libexecdir)/evolution/$(BASE_VERSION).
(sounddir): Remove.

* gui/dialogs/Makefile.am (iconsdir): Version using
$(BASE_VERSION).
(gladedir): Likewise.
(etspecdir): Likewise.

* gui/Makefile.am (help_base): Remove.
(install-data-local): Do not make the $(help_base)/C directory.
(etspecdir): Version using $(BASE_VERSION).
(gladedir): Likewise.
(iconsdir): Likewise.
(INCLUDES): Update the EVOLUTION_IMAGESDIR define to be versioned,
and add a -DEVOLUTION_GALVIEWSDIR.

* cal-util/Makefile.am: Install evolution-alarm-notify in
$(libexecdir)/evolution/$(BASE_VERSION).

* cal-util/Makefile.am (libcal_utilincludedir): Version using
$(BASE_VERSION).
* gui/alarm-notify/Makefile.am (iconsdir): Likewise.
(gladedir): Likewise.

* cal-client/Makefile.am: Install libcal-client.la in privlibdir
instead of libdir.
(libcal_clientincludedir): Version using $(BASE_VERSION).

svn path=/trunk/; revision=19553
2003-01-22 20:07:51 +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
4dec64f373 #include gtkoptionmenu.h. (cal_prefs_dialog_new): adapted to changes in
2002-11-06  Rodrigo Moya <rodrigo@ximian.com>

	* gui/cal-prefs-dialog.c: #include gtkoptionmenu.h.
	(cal_prefs_dialog_new): adapted to changes in glade_xml_new.

	* gui/dialogs/event-page.h:
	* gui/dialogs/meeting-page.h:
	* gui/dialogs/recurrence-page.h:
	* gui/dialogs/schedule-page.h:
	* gui/dialogs/task-details-page.h:
	* gui/dialogs/task-page.h:
	* gui/cal-prefs-dialog.h: use correctly the macros.

	* gui/dialogs/cancel-comp.c:
	* gui/dialogs/changed-comp.c:
	* gui/dialogs/comp-editor-page.c:
	* gui/gnome-cal.h: removed non-existent headers.

	* gui/dialogs/comp-editor.c: remove non-existent headers.
	(close_dialog): gtk_widget_destroy the widget.
	(setup_widgets, comp_editor_merge_ui): use BonoboWindow correctly.
	(comp_editor_set_cal_client, comp_editor_send_comp,
	 comp_editor_edit_comp): use G_OBJECT_GET_CLASS for
	getting the class of an object.

	* gui/dialogs/comp-editor-page.c (comp_editor_page_class_init):
	use g_signal_* functions.

	* gui/dialogs/comp-editor-util.c: converted to BonoboActivation.

	* gui/dialogs/comp-editor.h: #include bonobo-window.h, not
	bonobo-win.h.

svn path=/trunk/; revision=18622
2002-11-07 02:00:56 +00:00
155223435b Fixes #11434
2002-10-08  Rodrigo Moya <rodrigo@ximian.com>

	Fixes #11434

	* gui/dialogs/comp-editor-page.[ch]
	(comp_editor_page_display_validation_error): new function.

	* gui/dialogs/event-page.c (event_page_fill_component):
	* gui/dialogs/recurrence-page.c (fill_component):
	* gui/dialogs/task-details-page.c (task_details_page_fill_component):
	* gui/dialogs/task-page.c (task_page_fill_component): added
	checks for all date values, and return FALSE if we find
	some invalid date/times.

	* gui/dialogs/comp-editor.c (save_comp): activate the page that
	returns error in fill_component.

svn path=/trunk/; revision=18352
2002-10-08 17:58:08 +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
6bea7d339a set the editor to changed so the item actually gets saved
2002-08-09  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/comp-editor.c (real_send_comp): set the editor to
	changed so the item actually gets saved

svn path=/trunk/; revision=17753
2002-08-09 17:22:45 +00:00
a599d0dd76 check for an attendee in the list (comp_to_list): only add the user if
2002-08-08  JP Rosevear  <jpr@ximian.com>

	* gui/itip-utils.c (users_has_attendee): check for an attendee in
	the list
	(comp_to_list): only add the user if they aren't on the list
	(comp_server_send): don't remove the users, pass back the list
	(itip_send_comp): send to server before doing comp_minimal

	* gui/dialogs/comp-editor.c (real_send_comp): edit and save the
	updated comp

	* pcs/cal.c (impl_Cal_send_object): copy the correct item to pass
	back

svn path=/trunk/; revision=17747
2002-08-08 19:47:45 +00:00