From 0593e3b9d27c80f72c33df97e38f96bc1cc8256a Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Thu, 19 Feb 2004 21:43:44 +0000 Subject: Fixes #45308 and duplicates. 2004-02-19 Hans Petter Jansson Fixes #45308 and duplicates. * gui/widgets/e-addressbook-model.c (eab_model_set_property): Store the IDs of book signals connected to, so we can disconnect from them later. svn path=/trunk/; revision=24799 --- addressbook/gui/widgets/e-addressbook-model.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'addressbook/gui/widgets') diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c index 69a612234e..ed698e3340 100644 --- a/addressbook/gui/widgets/e-addressbook-model.c +++ b/addressbook/gui/widgets/e-addressbook-model.c @@ -559,12 +559,14 @@ eab_model_set_property (GObject *object, guint prop_id, const GValue *value, GPa model->first_get_view = TRUE; g_object_ref (model->book); get_view (model); - g_signal_connect (model->book, - "writable_status", - G_CALLBACK (writable_status), model); - g_signal_connect (model->book, - "backend_died", - G_CALLBACK (backend_died), model); + model->writable_status_id = + g_signal_connect (model->book, + "writable_status", + G_CALLBACK (writable_status), model); + model->backend_died_id = + g_signal_connect (model->book, + "backend_died", + G_CALLBACK (backend_died), model); } break; case PROP_QUERY: -- cgit v1.2.3