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-backend.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-backend.h')
-rw-r--r-- | calendar/pcs/cal-backend.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/calendar/pcs/cal-backend.h b/calendar/pcs/cal-backend.h index af487f7551..e5102bf8bc 100644 --- a/calendar/pcs/cal-backend.h +++ b/calendar/pcs/cal-backend.h @@ -55,6 +55,9 @@ struct _CalBackend { struct _CalBackendClass { GtkObjectClass parent_class; + + /* Notification signals */ + void (* last_client_gone) (CalBackend *backend); }; typedef enum { |