diff options
-rw-r--r-- | addressbook/ChangeLog | 5 | ||||
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names-completion.c | 10 |
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; } |