aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Kestner <mkestner@ximian.com>2002-08-29 11:20:28 +0800
committerMike Kestner <mkestner@src.gnome.org>2002-08-29 11:20:28 +0800
commit7e0ae5059b00da3905fc3a9edb4fd9eac2897613 (patch)
treea4b9c04f15a0be2a5ffa5e2d23465816e7e08e30
parent45c535bd488e01e74141575c3225476691953b94 (diff)
downloadgsoc2013-evolution-7e0ae5059b00da3905fc3a9edb4fd9eac2897613.tar
gsoc2013-evolution-7e0ae5059b00da3905fc3a9edb4fd9eac2897613.tar.gz
gsoc2013-evolution-7e0ae5059b00da3905fc3a9edb4fd9eac2897613.tar.bz2
gsoc2013-evolution-7e0ae5059b00da3905fc3a9edb4fd9eac2897613.tar.lz
gsoc2013-evolution-7e0ae5059b00da3905fc3a9edb4fd9eac2897613.tar.xz
gsoc2013-evolution-7e0ae5059b00da3905fc3a9edb4fd9eac2897613.tar.zst
gsoc2013-evolution-7e0ae5059b00da3905fc3a9edb4fd9eac2897613.zip
stop the EBookViews before unreffing.
2002-08-28 Mike Kestner <mkestner@ximian.com> * gui/component/select-names/e-select-names-completion.c : stop the EBookViews before unreffing. svn path=/trunk/; revision=17910
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/component/select-names/e-select-names-completion.c10
2 files changed, 13 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 304db5d626..18bc2e562c 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,8 @@
+2002-08-28 Mike Kestner <mkestner@ximian.com>
+
+ * gui/component/select-names/e-select-names-completion.c : stop the
+ EBookViews before unreffing.
+
2002-08-28 Dan Winship <danw@ximian.com>
* gui/component/GNOME_Evolution_Addressbook.oaf.in: Add an
diff --git a/addressbook/gui/component/select-names/e-select-names-completion.c b/addressbook/gui/component/select-names/e-select-names-completion.c
index ae27a8c675..9a95bafbe8 100644
--- a/addressbook/gui/component/select-names/e-select-names-completion.c
+++ b/addressbook/gui/component/select-names/e-select-names-completion.c
@@ -753,8 +753,10 @@ e_select_names_completion_clear_book_data (ESelectNamesCompletion *comp)
gtk_object_unref (GTK_OBJECT (book_data->book));
- if (book_data->book_view)
+ if (book_data->book_view) {
+ e_book_view_stop (book_data->book_view);
gtk_object_unref (GTK_OBJECT (book_data->book_view));
+ }
g_free (book_data);
}
@@ -847,8 +849,10 @@ e_select_names_completion_got_book_view_cb (EBook *book, EBookStatus status, EBo
}
gtk_object_ref (GTK_OBJECT (view));
- if (book_data->book_view)
+ if (book_data->book_view) {
+ e_book_view_stop (book_data->book_view);
gtk_object_unref (GTK_OBJECT (book_data->book_view));
+ }
book_data->book_view = view;
book_data->card_added_tag =
@@ -971,6 +975,8 @@ e_select_names_completion_stop_query (ESelectNamesCompletion *comp)
if (out)
fprintf (out, "unrefed book view\n");
+
+ e_book_view_stop (book_data->book_view);
gtk_object_unref (GTK_OBJECT (book_data->book_view));
book_data->book_view = NULL;
}