aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2004-02-20 05:43:44 +0800
committerHans Petter <hansp@src.gnome.org>2004-02-20 05:43:44 +0800
commit0593e3b9d27c80f72c33df97e38f96bc1cc8256a (patch)
treedad61db422e0dba5d368c590d20da91ca0964d2e
parent0f8ef94df505311954002fd868a800fcb0c38dfc (diff)
downloadgsoc2013-evolution-0593e3b9d27c80f72c33df97e38f96bc1cc8256a.tar.gz
gsoc2013-evolution-0593e3b9d27c80f72c33df97e38f96bc1cc8256a.tar.zst
gsoc2013-evolution-0593e3b9d27c80f72c33df97e38f96bc1cc8256a.zip
Fixes #45308 and duplicates.
2004-02-19 Hans Petter Jansson <hpj@ximian.com> 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
-rw-r--r--addressbook/ChangeLog8
-rw-r--r--addressbook/gui/widgets/e-addressbook-model.c14
2 files changed, 16 insertions, 6 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 71f20a54fc..b9bd0c8da8 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,11 @@
+2004-02-19 Hans Petter Jansson <hpj@ximian.com>
+
+ 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.
+
2004-02-18 Hao Sheng <hao.sheng@sun.com>
[ fixes bug #52765 ]
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: