Replaced some model_changed calls with row_inserted calls.

2000-05-07  Christopher James Lahey  <clahey@helixcode.com>

	* gui/component/e-addressbook-model.c: Replaced some model_changed
	calls with row_inserted calls.

svn path=/trunk/; revision=2881
This commit is contained in:
Christopher James Lahey
2000-05-07 20:49:26 +00:00
committed by Chris Lahey
parent 994667f2fe
commit 2faf6f059b
3 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2000-05-07 Christopher James Lahey <clahey@helixcode.com>
* gui/component/e-addressbook-model.c: Replaced some model_changed
calls with row_inserted calls.
2000-05-07 Christopher James Lahey <clahey@helixcode.com>
* backend/pas/pas-backend-file.c, backend/pas/pas-backend-ldap.c:

View File

@ -142,8 +142,8 @@ create_card(EBookView *book_view,
for ( ; cards; cards = cards->next) {
gtk_object_ref(GTK_OBJECT(cards->data));
model->data[model->data_count++] = e_card_simple_new (E_CARD(cards->data));
e_table_model_row_inserted(E_TABLE_MODEL(model), model->data_count - 1);
}
e_table_model_changed(E_TABLE_MODEL(model));
}
static void
@ -156,9 +156,9 @@ remove_card(EBookView *book_view,
if ( !strcmp(e_card_simple_get_id(model->data[i]), id) ) {
gtk_object_unref(GTK_OBJECT(model->data[i]));
memmove(model->data + i, model->data + i + 1, (model->data_count - i - 1) * sizeof (ECard *));
e_table_model_row_deleted(E_TABLE_MODEL(model), i);
}
}
e_table_model_changed(E_TABLE_MODEL(model));
}
static void

View File

@ -142,8 +142,8 @@ create_card(EBookView *book_view,
for ( ; cards; cards = cards->next) {
gtk_object_ref(GTK_OBJECT(cards->data));
model->data[model->data_count++] = e_card_simple_new (E_CARD(cards->data));
e_table_model_row_inserted(E_TABLE_MODEL(model), model->data_count - 1);
}
e_table_model_changed(E_TABLE_MODEL(model));
}
static void
@ -156,9 +156,9 @@ remove_card(EBookView *book_view,
if ( !strcmp(e_card_simple_get_id(model->data[i]), id) ) {
gtk_object_unref(GTK_OBJECT(model->data[i]));
memmove(model->data + i, model->data + i + 1, (model->data_count - i - 1) * sizeof (ECard *));
e_table_model_row_deleted(E_TABLE_MODEL(model), i);
}
}
e_table_model_changed(E_TABLE_MODEL(model));
}
static void