From 555668c928408f0b27cb22a8225b9d3b55a5b57d Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 26 Apr 2000 01:08:06 +0000 Subject: Renamed from backend_destroy_cb. Now we use it for the "last_client_gone" 2000-04-25 Federico Mena Quintero * pcs/cal-factory.c (backend_last_client_gone_cb): Renamed from backend_destroy_cb. Now we use it for the "last_client_gone" signal from the backend. Also, unref the backend to destroy it. (add_backend): Connect to the "last_client_gone" signal of the backend. (cal_factory_get_n_backends): New function to query the number of running backends. * pcs/cal-backend.c (cal_backend_class_init): Register the new "last_client_gone" signal. It is emitted when the last Cal client goes away. It is used to notify the factory when a backend may be safely destroyed. (cal_destroy_cb): Emit the "last_client_gone" signal when the last client disconnects from the backend. svn path=/trunk/; revision=2619 --- calendar/pcs/cal-factory.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'calendar/pcs/cal-factory.h') diff --git a/calendar/pcs/cal-factory.h b/calendar/pcs/cal-factory.h index 7100a35d69..85435e45ae 100644 --- a/calendar/pcs/cal-factory.h +++ b/calendar/pcs/cal-factory.h @@ -50,6 +50,7 @@ struct _CalFactory { struct _CalFactoryClass { BonoboObjectClass parent_class; + /* Notification signals */ void (* last_calendar_gone) (CalFactory *factory); }; @@ -63,6 +64,8 @@ CalFactory *cal_factory_new (void); void cal_factory_load (CalFactory *factory, const char *uri, Evolution_Calendar_Listener listener); void cal_factory_create (CalFactory *factory, const char *uri, Evolution_Calendar_Listener listener); +int cal_factory_get_n_backends (CalFactory *factory); + POA_Evolution_Calendar_CalFactory__epv *cal_factory_get_epv (void); -- cgit v1.2.3