From c1634ed107aabff1cd2b71a1e5550f446ab7cb23 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 2 Aug 2000 16:58:20 +0000 Subject: Emit "model_pre_change" signal as appropriate. 2000-08-02 Christopher James Lahey * contact-editor/e-contact-editor-categories.c, gui/component/e-addressbook-model.c: Emit "model_pre_change" signal as appropriate. svn path=/trunk/; revision=4473 --- addressbook/ChangeLog | 6 ++++++ addressbook/contact-editor/e-contact-editor-categories.c | 2 ++ addressbook/gui/component/e-addressbook-model.c | 2 ++ addressbook/gui/contact-editor/e-contact-editor-categories.c | 2 ++ addressbook/gui/widgets/e-addressbook-model.c | 2 ++ 5 files changed, 14 insertions(+) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 72b783b727..f0d9f72438 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2000-08-02 Christopher James Lahey + + * contact-editor/e-contact-editor-categories.c, + gui/component/e-addressbook-model.c: Emit "model_pre_change" + signal as appropriate. + 2000-08-02 Christopher James Lahey * gui/component/e-addressbook-model.c: Adapted this to supply the diff --git a/addressbook/contact-editor/e-contact-editor-categories.c b/addressbook/contact-editor/e-contact-editor-categories.c index 02ea452c1d..9251a86948 100644 --- a/addressbook/contact-editor/e-contact-editor-categories.c +++ b/addressbook/contact-editor/e-contact-editor-categories.c @@ -157,6 +157,8 @@ do_parse_categories(EContactEditorCategories *categories) char **list; int count = 1; + e_table_model_pre_change(categories->model); + for (i = 0; i < categories->list_length; i++) g_free(categories->category_list[i]); g_free(categories->category_list); diff --git a/addressbook/gui/component/e-addressbook-model.c b/addressbook/gui/component/e-addressbook-model.c index 4eb4a0f937..87b872784c 100644 --- a/addressbook/gui/component/e-addressbook-model.c +++ b/addressbook/gui/component/e-addressbook-model.c @@ -300,6 +300,8 @@ book_view_loaded (EBook *book, EBookStatus status, EBookView *book_view, gpointe for ( i = 0; i < model->data_count; i++ ) { gtk_object_unref(GTK_OBJECT(model->data[i])); } + + e_table_model_pre_change(E_TABLE_MODEL(model)); g_free(model->data); model->data = NULL; model->data_count = 0; diff --git a/addressbook/gui/contact-editor/e-contact-editor-categories.c b/addressbook/gui/contact-editor/e-contact-editor-categories.c index 02ea452c1d..9251a86948 100644 --- a/addressbook/gui/contact-editor/e-contact-editor-categories.c +++ b/addressbook/gui/contact-editor/e-contact-editor-categories.c @@ -157,6 +157,8 @@ do_parse_categories(EContactEditorCategories *categories) char **list; int count = 1; + e_table_model_pre_change(categories->model); + for (i = 0; i < categories->list_length; i++) g_free(categories->category_list[i]); g_free(categories->category_list); diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c index 4eb4a0f937..87b872784c 100644 --- a/addressbook/gui/widgets/e-addressbook-model.c +++ b/addressbook/gui/widgets/e-addressbook-model.c @@ -300,6 +300,8 @@ book_view_loaded (EBook *book, EBookStatus status, EBookView *book_view, gpointe for ( i = 0; i < model->data_count; i++ ) { gtk_object_unref(GTK_OBJECT(model->data[i])); } + + e_table_model_pre_change(E_TABLE_MODEL(model)); g_free(model->data); model->data = NULL; model->data_count = 0; -- cgit v1.2.3