Commit Graph

712 Commits

Author SHA1 Message Date
c7b2533fef Fixed some warnings.
2000-08-09  Christopher James Lahey  <clahey@helixcode.com>

	* cal-client/cal-client.c, gui/e-calendar-table.c, pcs/cal.c:
	Fixed some warnings.

svn path=/trunk/; revision=4637
2000-08-09 05:47:32 +00:00
14e163207e Added a get_objects_in_range() method. Takes in a time range and the type
2000-08-08  Federico Mena Quintero  <federico@helixcode.com>

	* idl/evolution-calendar.idl (Cal): Added a get_objects_in_range()
	method.  Takes in a time range and the type of component we are
	interested in; returns a list of UIDs.  The idea is that
	ocurrences get computed in the client; we can have multiple
	recurrences in iCalendar and we cannot identify them trivially
	across the wire.
	(Cal): Removed the get_events_in_range() method.

	* pcs/cal-backend.c (cal_backend_free_uid_list): New function.
	(cal_backend_get_objects_in_range): New function.
	(cal_backend_get_events_in_range): Removed.

	* pcs/cal-backend-file.c (cal_backend_file_get_objects_in_range):
	Implemented new method.
	(cal_backend_file_get_events_in_range): Removed.

	* pcs/cal.c (Cal_get_events_in_range): Removed.
	(uncorba_obj_type): New function.
	(Cal_get_uids): Use uncorba_obj_type().
	(Cal_get_n_objects): Likewise.
	(Cal_get_objects_in_range): Implemented new method.

	* cal-client/cal-client.c (cal_client_get_events_in_range): Removed.
	(cal_client_get_objects_in_range): Implemented.
	(corba_obj_type): New function.
	(cal_client_get_n_objects): Use corba_obj_type().
	(cal_client_get_uids): Likewise.

svn path=/trunk/; revision=4613
2000-08-08 22:39:13 +00:00
aae247db3d Removing old cruft - Federico
svn path=/trunk/; revision=4603
2000-08-08 19:14:19 +00:00
ac94f697a5 New function. (cal_component_get_icalcomponent): Ensure that the SEQUENCE
2000-08-07  Federico Mena Quintero  <federico@helixcode.com>

	* cal-util/cal-component.c (cal_component_clone): New function.
	(cal_component_get_icalcomponent): Ensure that the SEQUENCE
	property does not need incrementing.

	* gui/dialogs/alarm-notify-dialog.c (alarm_notify_dialog): Use
	CalComponent.  Deal with an empty summary property.

svn path=/trunk/; revision=4589
2000-08-08 02:55:29 +00:00
4de1f796a4 Big sync. Disable calendar compilation for a few hours - Federico
2000-08-07  Federico Mena Quintero  <federico@helixcode.com>

	* cal-util/cal-component.c (cal_component_get_as_string): Doh,
	libical owns the string's memory, so do not free it.

	* cal-client/client-test.c (create_client): Connect to the destroy
	signal of the client here.

	* cal-client/test.ics: New test file, modified from Eric Busboom's
	test file from RFC 2445.

2000-08-05  Federico Mena Quintero  <federico@helixcode.com>

	* cal-client/client-test.c (dump_component): This was gone for
	some reason.
	(main): Load a new test file.

2000-08-04  Federico Mena Quintero  <federico@helixcode.com>

	* cal-util/cal-component.c (cal_component_commit_sequence): New
	function to commit changes to the SEQUENCE property.
	(cal_component_get_as_string): Ensure that the sequence has been
	committed.

	* cal-client/cal-client.c (cal_client_get_object): Use
	CalComponent instead of the old iCalObject.
	(cal_client_update_object): Use iCalObject.  Commit the SEQUENCE
	property before stringifying the object and piping it over to the
	Wombat.

svn path=/trunk/; revision=4585
2000-08-07 21:38:28 +00:00
ef752b08c0 *** empty log message ***
svn path=/trunk/; revision=4540
2000-08-04 23:38:11 +00:00
83bf2090ac if oaf isn't initialized by the time the conduit starts, start it up. we
* conduits/todo/todo-conduit.c (conduit_get_gpilot_conduit): if
	oaf isn't initialized by the time the conduit starts, start it
	up.  we do this because we need to start wombat with oaf, and
	gpilotd doesn't currently start oaf.

svn path=/trunk/; revision=4539
2000-08-04 23:37:17 +00:00
08f484c660 tlauche is now called wombat
svn path=/trunk/; revision=4538
2000-08-04 23:35:02 +00:00
623b1de43d Everywhere unref the remote_uih having done a set_container.
svn path=/trunk/; revision=4524
2000-08-04 03:09:01 +00:00
cc3f47a93b *** empty log message ***
svn path=/trunk/; revision=4503
2000-08-03 02:43:59 +00:00
f25cc16f18 Fixed a g_return_if_fail that had two parameters and thus wouldn't build.
2000-08-02  Joe Shaw  <joe@helixcode.com>

        * pcs/cal-backend-file.c (cal_backend_file_update_pilot_id):
        Fixed a g_return_if_fail that had two parameters and thus
        wouldn't build.

svn path=/trunk/; revision=4502
2000-08-03 02:39:49 +00:00
baa5d86837 fixed a bunch of bugs, added a lot of debug spew.
svn path=/trunk/; revision=4501
2000-08-03 02:35:15 +00:00
7dd58960fe call save (cbimc) after setting the pilot id and status.
* pcs/cal-backend-imc.c (cal_backend_imc_update_pilot_id): call
	save (cbimc) after setting the pilot id and status.

svn path=/trunk/; revision=4500
2000-08-03 02:34:01 +00:00
6cdd5bd58e updated to match the new ETableModel append_row. This meant we could also
2000-08-03  Damon Chaplin  <damon@helixcode.com>

	* gui/calendar-model.c (calendar_model_append_row): updated to match
	the new ETableModel append_row. This meant we could also get rid of
	the row_being_added and idle_id hack.

svn path=/trunk/; revision=4499
2000-08-03 01:31:50 +00:00
83dbcbadc2 Dum dum dum - Federico
svn path=/trunk/; revision=4494
2000-08-02 22:55:49 +00:00
f2dc2d3fb6 Emit "model_pre_change" signals as appropriate.
2000-08-02  Christopher James Lahey  <clahey@helixcode.com>

	* gui/calendar-model.c: Emit "model_pre_change" signals as
	appropriate.

svn path=/trunk/; revision=4493
2000-08-02 22:53:05 +00:00
83cbc862e6 New files for the iCalendar file backend.
2000-08-02  Federico Mena Quintero  <federico@helixcode.com>

	* pcs/cal-backend-file.[ch]: New files for the iCalendar file
	backend.

	* pcs/Makefile.am (libpcs_a_SOURCES): Added cal-backend-file.[ch].

	* cal-util/cal-component.c (cal_component_set_icalcomponent):
	Return an operation success code for if we are passed a component
	of a type we don't support.

svn path=/trunk/; revision=4479
2000-08-02 22:15:22 +00:00
68d89989b1 Ahem, these files will be back in a second - Federico
svn path=/trunk/; revision=4476
2000-08-02 18:29:53 +00:00
4e5b1da82e Use CalComponent and the new property types instead of the old iCalObject
2000-07-31  Federico Mena Quintero  <federico@helixcode.com>

	* cal-util/cal-recur.c (*): Use CalComponent and the new property
	types instead of the old iCalObject stuff.
	(cal_recur_generate_instances): Renamed from
	cal_object_generate_events().  Ensure that the component has the
	DTSTART property.
	(generate_instances_for_year): Renamed from
	cal_object_generate_events_for_year().
	(cal_obj_expand_recurrence): Made static.
	(cal_recur_from_icalrecurrencetype): New function.  We should
	really convert this whole file to use struct icalrecurrencetype
	instead.
	(cal_recur_free): New function.

	* cal-util/cal-recur.h (CalRecurType): Renamed from CalObjRecurType.
	(CalRecurrence): Renamed from CalObjRecurrence.

	* cal-util/timeutil.c (time_from_icaltimetype): New function.

	* cal-util/Makefile.am: Commented out the test-recur program.

svn path=/trunk/; revision=4464
2000-08-02 01:08:52 +00:00
de528ac073 Removed doc directory, since it is the old gnome-pim docs which aren't
2000-08-01  Damon Chaplin  <damon@helixcode.com>

	* Removed doc directory, since it is the old gnome-pim docs which
	aren't used any more.

	* Makefile.am (SUBDIRS): removed doc.

svn path=/trunk/; revision=4460
2000-08-01 22:45:28 +00:00
1ca36a2a0c Solaris compile fix. OK on Linux too.
svn path=/trunk/; revision=4368
2000-07-26 21:13:04 +00:00
582e76a02e OK, it seems that we have all the interesting properties for single-user
2000-07-26  Federico Mena Quintero  <federico@helixcode.com>

	OK, it seems that we have all the interesting properties for
	single-user calendars now.  RFC 2445 can bite me.

	* cal-util/cal-component.c (scan_property): Handle the RRULE
	property.  Yay!.
	(scan_recur): Likewise, yow!
	(get_recur_list): Likewise, yeehaw!
	(get_recur_list): Likewise, honk honk!
	(set_recur_list): Likewise, booooga booooga!
	(cal_component_get_rrule_list): Likewise, squeek squeek!
	(cal_component_set_rrule_list): That's it, I ran out of sounds.
	(cal_component_free_recur_list): Likewise.
	(scan_property): Handle the EXRULE property.
	(free_icalcomponent): Likewise.
	(cal_component_get_exrule_list): Likewise.
	(cal_component_set_exrule_list): Likewise.
	(set_period_list): Oops, free the old properties as well as
	removing them.
	(set_text_list): Ditto.
	(cal_component_set_exdate_list): Ditto.

svn path=/trunk/; revision=4361
2000-07-26 19:52:50 +00:00
06415e37e2 Ahem, be consistent with parameter names - Federico
svn path=/trunk/; revision=4354
2000-07-26 18:17:33 +00:00
04122bc68e Put all the functions used to free returned values all together.
2000-07-26  Federico Mena Quintero  <federico@helixcode.com>

	* cal-util/cal-component.c: Put all the functions used to free
	returned values all together.
	(cal_component_set_rdate_list): Oops, mark SEQUENCE property to be
	incremented since the RFC requires it.
	(scan_property): Handle the EXDATE property.
	(scan_exdate): Likewise.
	(free_icalcomponent): Likewise.
	(cal_component_get_exdate_list): Likewise.
	(cal_component_set_exdate_list): Likewise.
	(cal_component_free_exdate_list): Likewise.

svn path=/trunk/; revision=4353
2000-07-26 18:12:29 +00:00
9a02c84d3a gui/Makefile.am: Fixed a typo.
svn path=/trunk/; revision=4352
2000-07-26 17:48:19 +00:00
be13ce4070 Added a few xpm files to the EXTRA DIST section
2000-07-26  Jeffrey Stedfast  <fejj@helixcode.com>

	* gui/Makefile.am: Added a few xpm files to the EXTRA DIST section

svn path=/trunk/; revision=4351
2000-07-26 17:37:49 +00:00
38168a2e40 New function. (scan_property): Handle the RDATE property. (scan_period):
2000-07-25  Federico Mena Quintero  <federico@helixcode.com>

	* cal-util/cal-component.c (cal_component_free_period_list): New function.
	(scan_property): Handle the RDATE property.
	(scan_period): Likewise.
	(free_icalcomponent): Likewise.
	(get_period_list): Likewise.
	(set_period_list): Likewise.
	(cal_component_get_rdate_list): Likewise.
	(cal_component_set_rdate_list): Likewise.
	(scan_text): Simplify a bit since we only handle the ALTREP
	parameter; there is no need to iterate over all parameters.
	(scan_datetime): Simplify; just handle the TZID parameter.
	(scan_summary): Simplify; just handle the ALTREP parameter.
	(cal_component_get_as_string): New function.

	* idl/evolution-calendar.idl (CalObjType): Removed the TYPE_OTHER;
	now we only expose the types of objects we know about.

	* cal-util/cal-util.h (CalObjType): Likewise.

	* cal-client/cal-client.c (cal_client_get_n_objects): Likewise.
	(cal_client_get_uids): Likewise.

	* conduits/calendar/calendar-conduit.c (get_calendar_objects): Likewise.
	(check_for_slow_setting): Likewise.

	* pcs/cal-backend-imc.c (count_objects): Likewise.
	(build_uids_list): Likewise.

	* pcs/cal.c (Cal_get_uids): Likewise.
	(Cal_get_n_objects): Likewise.

svn path=/trunk/; revision=4336
2000-07-25 22:01:22 +00:00
cd27c67fbc new ECalendarTable to show an ETable view for Todo/Event items.
2000-07-25  Damon Chaplin  <damon@helixcode.com>

	* gui/e-calendar-table.[hc]: new ECalendarTable to show an ETable view
	for Todo/Event items.

	* gui/task-assigned-to.xpm:
	* gui/task-recurring.xpm:
	* gui/task-assigned.xpm:
	* gui/task.xpm: new pixmaps (all the same at present) to go in the
	icon column of the ETable.

	* gui/event-editor.c: hid the silly 'Calendar' labels on the
	GnomeDateEdits and hid the times when you select 'All day event'.
	Also adjusted the time_t's so that when an all day event finishes on
	say midnight 13th May, we show 12th May in the dialog, since it
	implicitly includes all of that day up to midnight.

	* gui/dialogs/task-editor-dialog.glade:
	* gui/dialogs/task-editor.[hc]: unfinished dialog to edit tasks.

	* gui/gncal-todo.c: temporary hack so that we can use the simple dialog
	with our new ETable.

svn path=/trunk/; revision=4323
2000-07-25 19:49:15 +00:00
a774d6fe7b *** empty log message ***
svn path=/trunk/; revision=4281
2000-07-23 11:07:09 +00:00
96b11a7e66 fixed it so it doesn't crash when a URL is loaded.
2000-07-23  Damon Chaplin  <damon@helixcode.com>

	* cal-util/calobj.c (ical_object_create_from_vobject): fixed it so
	it doesn't crash when a URL is loaded.

	* cal-util/calobj.h: added a few more fields.

svn path=/trunk/; revision=4280
2000-07-23 11:05:52 +00:00
d97ccb4427 Szabolcs BAN <shooby@gnome.hu>
* Small typo fix in calendar/gui/event-editor.c

svn path=/trunk/; revision=4254
2000-07-21 09:51:28 +00:00
782d8a198c Update the components to match the changes in the libeshell API.
svn path=/trunk/; revision=4242
2000-07-20 17:26:19 +00:00
cb1c400a50 Finish filling the trigger. What a pain, again.
2000-07-19  Federico Mena Quintero  <federico@helixcode.com>

	* cal-util/cal-component.c (cal_component_alarm_set_trigger):
	Finish filling the trigger.  What a pain, again.
	(cal_component_alarm_free_trigger): Implemented.

svn path=/trunk/; revision=4232
2000-07-20 01:06:52 +00:00
a3ba8ebd3b Added the Turkish desktop entries
svn path=/trunk/; revision=4227
2000-07-19 21:57:39 +00:00
0557f19467 Free the icalcomponent if this is an unattached alarm.
2000-07-18  Federico Mena Quintero  <federico@helixcode.com>

	* cal-util/cal-component.c (cal_component_alarm_free): Free the
	icalcomponent if this is an unattached alarm.
	(scan_alarm_property): Handle the TRIGGER property.
	(cal_component_alarm_get_trigger): Ditto.  Royal pain.
	(cal_component_alarm_set_trigger): Ditto.  Less pain.

svn path=/trunk/; revision=4216
2000-07-19 00:26:37 +00:00
86ec303a21 Docs docs docs - Federico
svn path=/trunk/; revision=4206
2000-07-17 23:57:22 +00:00
fab3b8e23e Fixed inline docs. (cal_client_new): Ditto.
2000-07-17  Federico Mena Quintero  <federico@helixcode.com>

	* cal-client/cal-client.c (cal_client_get_object): Fixed inline
	docs.
	(cal_client_new): Ditto.

svn path=/trunk/; revision=4190
2000-07-17 18:52:02 +00:00
fa82ca2af9 New internal represntation for alarm components. We really don't map them
2000-07-14  Federico Mena Quintero  <federico@helixcode.com>

	* cal-util/cal-component.c (CalComponentAlarm): New internal
	represntation for alarm components.  We really don't map them to a
	CalComponent because it is more convenient to handle them as
	"child" structures.
	(make_alarm): New function to create a CalComponentAlarm from an
	icalcomponent representing a VALARM.
	(scan_alarm_property): New function to scan a property from an
	alarm component.  We support ACTION.
	(cal_component_get_first_alarm): New function to start an iterator
	over the alarms in a calendar component.
	(cal_component_alarm_get_action): New function.
	(cal_component_alarm_set_action): New function.

svn path=/trunk/; revision=4173
2000-07-15 00:56:01 +00:00
0a508d6db8 oops
svn path=/trunk/; revision=4164
2000-07-14 00:51:33 +00:00
085e18d437 conduit based on the calendar conduit. this conduit syncs a pilot's ToDoDB
* conduits/todo/todo-conduit.c: conduit based on the calendar conduit.
	this conduit syncs a pilot's ToDoDB database to wombat's list of "todo"
	events.

	* gui/gncal-todo.c (simple_todo_editor): set todo's priority control
	based on value from ical object during edit.

svn path=/trunk/; revision=4156
2000-07-13 21:35:57 +00:00
9729426da1 small cleanups, quiet compiler
svn path=/trunk/; revision=4145
2000-07-13 15:05:41 +00:00
d75a6c0b38 todo conduit builds and plays nice but does nothing
svn path=/trunk/; revision=4130
2000-07-12 23:34:10 +00:00
f9eb656383 Make gnome-print-0.20 mandatory. We will bail out with CVS HEAD versions
2000-07-12  Federico Mena Quintero  <federico@helixcode.com>

	* configure.in: Make gnome-print-0.20 mandatory.  We will bail out
	with CVS HEAD versions to avoid breakage.

svn path=/trunk/; revision=4129
2000-07-12 23:10:48 +00:00
eb33e78eeb GnomeFont update.
2000-07-12  Michael Meeks  <michael@helixcode.com>

	* gui/print.c (titled_box, print_text, print_month_small),
	(bound_text): GnomeFont update.

svn path=/trunk/; revision=4123
2000-07-12 21:32:02 +00:00
ed332931e1 fixed various problems
* conduits/calendar/calendar-conduit.c: fixed various problems

	* cal-client/Makefile.am: build a static version of the library
	to link with the conduits

	* cal-util/Makefile.am: same

svn path=/trunk/; revision=4116
2000-07-12 18:26:16 +00:00
71cd8403b2 Handle the COMPLETED property. (free_icalcomponent): Ditto.
2000-07-11  Federico Mena Quintero  <federico@helixcode.com>

	* cal-util/cal-component.c (scan_property): Handle the COMPLETED
	property.
	(free_icalcomponent): Ditto.
	(cal_component_get_completed): Ditto.
	(cal_component_set_completed): Ditto.
	(scan_property): Handle the TRANSPARENCY property.
	(free_icalcomponent): Ditto.
	(cal_component_get_transparency): Ditto.
	(cal_component_set_transparency): Ditto.
	(scan_property): Handle the URL property.
	(free_icalcomponent): Ditto.
	(cal_component_get_url): Ditto.
	(cal_component_set_url): Ditto.

svn path=/trunk/; revision=4101
2000-07-12 01:02:36 +00:00
a389093a50 Removed unneeded check for the URI. (load_fn): Be more paranoid about the
2000-07-11  Federico Mena Quintero  <federico@helixcode.com>

	* pcs/cal-factory.c (queue_load_create_job): Removed unneeded
	check for the URI.
	(load_fn): Be more paranoid about the URI and notify the listener
	if we got passed a bad URI.  Simplify the termination code a bit.
	(create_fn): Likewise.
	(queue_load_create_job): Be more paranoid about the URI.

svn path=/trunk/; revision=4089
2000-07-11 19:11:48 +00:00
a5edbcbd01 ignore binaries
svn path=/trunk/; revision=4073
2000-07-10 23:47:21 +00:00
c02069a5f1 Disable Pilot conduit stuff for now. It's not quite ready yet and it
depends on CVS gnome-pilot.

svn path=/trunk/; revision=4072
2000-07-10 23:43:59 +00:00
6f15b362cc remove gnomecal.conduit
* gui/Makefile.am (EXTRA_DIST): remove gnomecal.conduit

	* conduits/calendar/Makefile.am (EXTRA_DIST): We want
	calendar.conduit.in, not calendar.conduit.

svn path=/trunk/; revision=4070
2000-07-10 23:27:18 +00:00