diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-05-09 15:09:28 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-05-09 15:09:28 +0800 |
commit | 6692c3b3d49dbf23caeb6f4f8adecc8508a6d23c (patch) | |
tree | 24987a939bc1a06b840662e42a0cf4caecf095ad /addressbook/gui/component | |
parent | 3f6ddb02e81fcd90987bc19b5e495686443617f9 (diff) | |
download | gsoc2013-evolution-6692c3b3d49dbf23caeb6f4f8adecc8508a6d23c.tar gsoc2013-evolution-6692c3b3d49dbf23caeb6f4f8adecc8508a6d23c.tar.gz gsoc2013-evolution-6692c3b3d49dbf23caeb6f4f8adecc8508a6d23c.tar.bz2 gsoc2013-evolution-6692c3b3d49dbf23caeb6f4f8adecc8508a6d23c.tar.lz gsoc2013-evolution-6692c3b3d49dbf23caeb6f4f8adecc8508a6d23c.tar.xz gsoc2013-evolution-6692c3b3d49dbf23caeb6f4f8adecc8508a6d23c.tar.zst gsoc2013-evolution-6692c3b3d49dbf23caeb6f4f8adecc8508a6d23c.zip |
Rearranged order of things getting destroyed.
2000-05-09 Christopher James Lahey <clahey@helixcode.com>
* gui/component/e-addressbook-model.c: Rearranged order of things
getting destroyed.
* gui/minicard/e-minicard-view.c: Rearranged order of things
getting destroyed. Don't set attributes of non-null or destroyed
items. Destroy parent object when destroyed. Maintain ref_count
of items in list.
* gui/minicard/e-minicard.c: Don't set attributes of non-null
items.
* gui/minicard/e-reflow-sorted.c: Maintain ref_count of items in
list.
* gui/minicard/e-reflow.c: Maintain ref_count of items in list.
Destroy parent object when destroyed.
svn path=/trunk/; revision=2935
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r-- | addressbook/gui/component/e-addressbook-model.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addressbook/gui/component/e-addressbook-model.c b/addressbook/gui/component/e-addressbook-model.c index 367e067687..b2f7332c52 100644 --- a/addressbook/gui/component/e-addressbook-model.c +++ b/addressbook/gui/component/e-addressbook-model.c @@ -37,8 +37,6 @@ addressbook_destroy(GtkObject *object) if (model->get_view_idle) g_source_remove(model->get_view_idle); - if (model->book) - gtk_object_unref(GTK_OBJECT(model->book)); if (model->book_view && model->create_card_id) gtk_signal_disconnect(GTK_OBJECT (model->book_view), model->create_card_id); @@ -48,6 +46,8 @@ addressbook_destroy(GtkObject *object) if (model->book_view && model->modify_card_id) gtk_signal_disconnect(GTK_OBJECT (model->book_view), model->modify_card_id); + if (model->book) + gtk_object_unref(GTK_OBJECT(model->book)); if (model->book_view) gtk_object_unref(GTK_OBJECT(model->book_view)); |