Commit Graph

6 Commits

Author SHA1 Message Date
8a1a0ba450 use a weak ref instead of connecting to backend's "destroy" signal.
2003-03-13  Rodrigo Moya <rodrigo@ximian.com>

	* pcs/query-backend.c (query_backend_new): use a weak ref instead
	of connecting to backend's "destroy" signal.
	(backend_destroyed_cb, query_destroyed_cb): changed to be weak
	reference callbacks.

svn path=/trunk/; revision=20271
2003-03-13 14:26:04 +00:00
e25263409d converted to BonoboObject. (impl_Cal_get_query): bonobo_object_unref the
2002-11-07  Rodrigo Moya <rodrigo@ximian.com>

	* pcs/cal.[ch]: converted to BonoboObject.
	(impl_Cal_get_query): bonobo_object_unref the query returned by
	cal_backend_get_query if we can't duplicate it.

	* pcs/query.[ch]:
	* pcs/cal-factory.[ch]: converted to BonoboObject.

	* pcs/query-backend.[ch]:
	* pcs/cal-backend-file.[ch]:
	* pcs/cal-backend.[ch]: GObjectify.

svn path=/trunk/; revision=18630
2002-11-07 13:07:37 +00:00
b87002d697 cal-client/cal-listener.h
2002-10-31  Rodrigo Moya <rodrigo@ximian.com>

	* cal-util/cal-component.[ch]:
	* cal-util/cal-recur.h:
	* cal-util/cal-util.[ch]:
	* cal-client/cal-client.h:
	* cal-client/cal-client-multi.h:
	* cal-client/cal-client-types.[ch]:
	* cal-client/cal-listener.h
	* cal-client/cal-query.[ch]:
	* cal-client/query-listener.h:
	* pcs/cal.h:
	* pcs/cal-backend.[ch]:
	* pcs/cal-backend-file.h:
	* pcs/cal-backend-util.h:
	* pcs/cal-common.h:
	* pcs/cal-factory.h:
	* pcs/query.[ch]:
	* pcs/query-backend.[ch]: started GNOME 2 porting.
	cal-util, cal-client and pcs compiled ok.

	* cal-client/cal-client.c (cal_client_construct):
	* pcs/cal-factory.c: use b-a instead of OAF and bonobo-config
	instead of bonobo-conf.

svn path=/trunk/; revision=18496
2002-11-02 00:26:06 +00:00
aab9b5cce1 Initialize loaded_backends before using it. (Just kills off a harmless
* pcs/query-backend.c (query_backend_new): Initialize
	loaded_backends before using it. (Just kills off a harmless
	g_warning.)

svn path=/trunk/; revision=17745
2002-08-08 17:14:02 +00:00
8f6536de28 new function. (query_backend_get_uids): new function. (query_backend_new):
2002-08-05  Rodrigo Moya <rodrigo@ximian.com>

	* pcs/query-backend.[ch] (query_backend_get_object_component): new
	function.
	(query_backend_get_uids): new function.
	(query_backend_new): create the static GHashTable if it hasn't been
	created yet.
	(query_backend_destroy): destroy the static GHashTable if empty.
	(foreach_uid_cb): call object_updated_cb, which does everything.

	* pcs/query.c: make use of the new QueryBackend class.
	(query_init): initialize new private structure member.
	(query_destroy): clean up new member, without freeing it, since it is
	managed internally in query-backend.c.
	(query_construct): create a QueryBackend for the query.

svn path=/trunk/; revision=17713
2002-08-06 14:09:18 +00:00
1a8f31eb03 new class for implementing a backend cache for the calendar queries.
2002-07-31  Rodrigo Moya <rodrigo@ximian.com>

	* pcs/query-backend.[ch]: new class for implementing a backend cache
	for the calendar queries.

	* pcs/Makefile.am: added new files.

svn path=/trunk/; revision=17668
2002-08-01 15:14:46 +00:00