diff options
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 8 | ||||
-rw-r--r-- | addressbook/gui/component/addressbook-component.c | 2 | ||||
-rw-r--r-- | addressbook/gui/component/addressbook-config.c | 9 |
3 files changed, 17 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 7a44793d8e..9aefb5ffb2 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,11 @@ +2004-01-29 Hans Petter Jansson <hpj@ximian.com> + + * gui/component/addressbook-config.c (dialog_to_source): Sync the + modified source list. + + * gui/component/addressbook-component.c (delete_addressbook_cb): Sync + the modified source list. + 2004-01-29 Chris Toshok <toshok@m198-139.dsl.rawbw.com> * gui/component/addressbook-migrate.c (setup_progress_dialog): use diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c index 1fa8c67f53..44076bfceb 100644 --- a/addressbook/gui/component/addressbook-component.c +++ b/addressbook/gui/component/addressbook-component.c @@ -220,6 +220,8 @@ delete_addressbook_cb (GtkWidget *widget, AddressbookComponent *comp) e_source_group_remove_source (e_source_peek_group (selected_source), selected_source); + e_source_list_sync (priv->source_list, NULL); + /* FIXME: Remove local data */ } diff --git a/addressbook/gui/component/addressbook-config.c b/addressbook/gui/component/addressbook-config.c index e77273f0e5..71f768c5eb 100644 --- a/addressbook/gui/component/addressbook-config.c +++ b/addressbook/gui/component/addressbook-config.c @@ -260,8 +260,13 @@ dialog_to_source (AddressbookSourceDialog *dialog, ESource *source, gboolean tem e_source_set_relative_uri (source, e_source_peek_uid (source)); } - if (!temporary && !e_source_peek_group (source)) - e_source_group_add_source (dialog->source_group, source, -1); + if (!temporary) { + if (!e_source_peek_group (source)) + e_source_group_add_source (dialog->source_group, source, -1); + + e_source_list_sync (addressbook_component_peek_source_list ( + addressbook_component_peek ()), NULL); + } } static ESource * |