diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-05-08 04:49:26 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-05-08 04:49:26 +0800 |
commit | 2faf6f059b79d069e25717819d676dfa2d5bf64f (patch) | |
tree | a80b37a17f91b96c823208fb12ac9227b801883e /addressbook | |
parent | 994667f2fe90e00983675f1559fb341ab6d3cf87 (diff) | |
download | gsoc2013-evolution-2faf6f059b79d069e25717819d676dfa2d5bf64f.tar.gz gsoc2013-evolution-2faf6f059b79d069e25717819d676dfa2d5bf64f.tar.zst gsoc2013-evolution-2faf6f059b79d069e25717819d676dfa2d5bf64f.zip |
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
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 5 | ||||
-rw-r--r-- | addressbook/gui/component/e-addressbook-model.c | 4 | ||||
-rw-r--r-- | addressbook/gui/widgets/e-addressbook-model.c | 4 |
3 files changed, 9 insertions, 4 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 7a74427110..8a69767720 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,5 +1,10 @@ 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: Removed some code that was notifying too many clients at the wrong times. diff --git a/addressbook/gui/component/e-addressbook-model.c b/addressbook/gui/component/e-addressbook-model.c index 7bbdcaa5bd..367e067687 100644 --- a/addressbook/gui/component/e-addressbook-model.c +++ b/addressbook/gui/component/e-addressbook-model.c @@ -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 diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c index 7bbdcaa5bd..367e067687 100644 --- a/addressbook/gui/widgets/e-addressbook-model.c +++ b/addressbook/gui/widgets/e-addressbook-model.c @@ -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 |