diff options
author | Federico Mena Quintero <federico@helixcode.com> | 2000-04-26 09:08:06 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2000-04-26 09:08:06 +0800 |
commit | 555668c928408f0b27cb22a8225b9d3b55a5b57d (patch) | |
tree | f32db539856c6c0737da03e124b39f365b5dcb7f /calendar/pcs/cal-factory.h | |
parent | 23bcb0bbd8fefb952d751951b2bf3b19717e707d (diff) | |
download | gsoc2013-evolution-555668c928408f0b27cb22a8225b9d3b55a5b57d.tar.gz gsoc2013-evolution-555668c928408f0b27cb22a8225b9d3b55a5b57d.tar.zst gsoc2013-evolution-555668c928408f0b27cb22a8225b9d3b55a5b57d.zip |
Renamed from backend_destroy_cb. Now we use it for the "last_client_gone"
2000-04-25 Federico Mena Quintero <federico@helixcode.com>
* 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
Diffstat (limited to 'calendar/pcs/cal-factory.h')
-rw-r--r-- | calendar/pcs/cal-factory.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |