diff options
author | Hans Petter Jansson <hpj@ximian.com> | 2004-01-30 04:04:38 +0800 |
---|---|---|
committer | Hans Petter <hansp@src.gnome.org> | 2004-01-30 04:04:38 +0800 |
commit | e02f8da905a348d58484660455038555043d09c8 (patch) | |
tree | fffc2661b67d557d7332fe3dfe2e153fa77e568b /addressbook/gui | |
parent | 508cff9c057a40f40d882d58dc165645825f4204 (diff) | |
download | gsoc2013-evolution-e02f8da905a348d58484660455038555043d09c8.tar.gz gsoc2013-evolution-e02f8da905a348d58484660455038555043d09c8.tar.zst gsoc2013-evolution-e02f8da905a348d58484660455038555043d09c8.zip |
Sync the modified source list.
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.
svn path=/trunk/; revision=24525
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/component/addressbook-component.c | 2 | ||||
-rw-r--r-- | addressbook/gui/component/addressbook-config.c | 9 |
2 files changed, 9 insertions, 2 deletions
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 * |