diff options
author | Hans Petter Jansson <hpj@ximian.com> | 2004-02-20 05:43:44 +0800 |
---|---|---|
committer | Hans Petter <hansp@src.gnome.org> | 2004-02-20 05:43:44 +0800 |
commit | 0593e3b9d27c80f72c33df97e38f96bc1cc8256a (patch) | |
tree | dad61db422e0dba5d368c590d20da91ca0964d2e /addressbook/gui/widgets/e-addressbook-model.c | |
parent | 0f8ef94df505311954002fd868a800fcb0c38dfc (diff) | |
download | gsoc2013-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
Diffstat (limited to 'addressbook/gui/widgets/e-addressbook-model.c')
-rw-r--r-- | addressbook/gui/widgets/e-addressbook-model.c | 14 |
1 files changed, 8 insertions, 6 deletions
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: |