From bc9dd9dde3006943171a80489c0af850da21d293 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Tue, 6 May 2003 19:20:31 +0000 Subject: i2003-05-06 Chris Toshok [ really commit this, fixes bug #41910 ] * gui/contact-list-editor/e-contact-list-model.c (e_contact_list_model_remove_row): change from model_changed to row_deleted here. model_changed causes the table to free its ETableSelection, which is what we iterate over when deleting contacts. (e_contact_list_model_add_destination): no need to be calling model_changed here either. svn path=/trunk/; revision=21117 --- addressbook/ChangeLog | 23 +++++++++++----------- .../gui/contact-list-editor/e-contact-list-model.c | 4 ++-- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 548497b26b..c3dc185d75 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,14 @@ +2003-05-06 Chris Toshok + + [ really commit this, fixes bug #41910 ] + * gui/contact-list-editor/e-contact-list-model.c + (e_contact_list_model_remove_row): change from model_changed to + row_deleted here. model_changed causes the table to free its + ETableSelection, which is what we iterate over when deleting + contacts. + (e_contact_list_model_add_destination): no need to be calling + model_changed here either. + 2003-04-29 Chris Toshok [ fixes bug #41255 ] @@ -24,18 +35,6 @@ * tools/evolution-addressbook-export-list-cards.c (set_pre_defined_field): remove duplicate HOME_COUNTRY field add. -2003-04-28 Chris Toshok - - [ fixes bug #41910 ] - * gui/contact-list-editor/e-contact-list-model.c - (e_contact_list_model_remove_row): change from model_changed to - row_deleted here. model_changed causes the table to free its - ETableSelection, which is what we iterate over when deleting - contacts. - (e_contact_list_model_add_destination): no need to be calling - model_changed here either. - - 2003-04-28 Chris Toshok [ fixes bug #41843] diff --git a/addressbook/gui/contact-list-editor/e-contact-list-model.c b/addressbook/gui/contact-list-editor/e-contact-list-model.c index 6e8357d93c..6cad1bd9bf 100644 --- a/addressbook/gui/contact-list-editor/e-contact-list-model.c +++ b/addressbook/gui/contact-list-editor/e-contact-list-model.c @@ -182,7 +182,7 @@ e_contact_list_model_add_destination (EContactListModel *model, EDestination *de model->data[model->data_count ++] = dest; g_object_ref (dest); - e_table_model_changed (E_TABLE_MODEL (model)); + e_table_model_row_inserted (E_TABLE_MODEL (model), model->data_count - 1); } void @@ -227,7 +227,7 @@ e_contact_list_model_remove_row (EContactListModel *model, int row) memmove (model->data + row, model->data + row + 1, sizeof (EDestination*) * (model->data_count - row - 1)); model->data_count --; - e_table_model_changed (E_TABLE_MODEL (model)); + e_table_model_row_deleted (E_TABLE_MODEL (model), row); } void -- cgit v1.2.3