aboutsummaryrefslogtreecommitdiffstats
path: root/modules/addressbook/addressbook-config.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-08-11 03:58:39 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-09-14 20:08:48 +0800
commit911d9f8c6b947d8ac922489fc03b1d063b377973 (patch)
tree9d5a080bed88e0601e2eec57f9e2073a6f231c26 /modules/addressbook/addressbook-config.c
parentbae19960b300c3f39ca093f51576621aacbbc84f (diff)
downloadgsoc2013-evolution-911d9f8c6b947d8ac922489fc03b1d063b377973.tar
gsoc2013-evolution-911d9f8c6b947d8ac922489fc03b1d063b377973.tar.gz
gsoc2013-evolution-911d9f8c6b947d8ac922489fc03b1d063b377973.tar.bz2
gsoc2013-evolution-911d9f8c6b947d8ac922489fc03b1d063b377973.tar.lz
gsoc2013-evolution-911d9f8c6b947d8ac922489fc03b1d063b377973.tar.xz
gsoc2013-evolution-911d9f8c6b947d8ac922489fc03b1d063b377973.tar.zst
gsoc2013-evolution-911d9f8c6b947d8ac922489fc03b1d063b377973.zip
EConfig: Broadcast abort/commit events by way of signals.
Remove the clumsy abortfunc and commitfunc callback arguments from e_config_add_items().
Diffstat (limited to 'modules/addressbook/addressbook-config.c')
-rw-r--r--modules/addressbook/addressbook-config.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/addressbook/addressbook-config.c b/modules/addressbook/addressbook-config.c
index 3686fa60bd..a41651459a 100644
--- a/modules/addressbook/addressbook-config.c
+++ b/modules/addressbook/addressbook-config.c
@@ -1076,9 +1076,9 @@ static EConfigItem eabc_new_items[] = {
};
static void
-eabc_commit (EConfig *ec, GSList *items, gpointer data)
+eabc_commit (EConfig *ec,
+ AddressbookSourceDialog *sdialog)
{
- AddressbookSourceDialog *sdialog = data;
xmlNodePtr xml;
#if d(!)0
gchar *txt;
@@ -1262,8 +1262,11 @@ addressbook_config_edit_source (GtkWidget *parent, ESource *source)
items = g_slist_prepend (items, &eabc_items[i]);
}
- e_config_add_items ((EConfig *) ec, items, eabc_commit, NULL, eabc_free, sdialog);
+ e_config_add_items ((EConfig *) ec, items, eabc_free, sdialog);
e_config_add_page_check ((EConfig *) ec, NULL, eabc_check_complete, sdialog);
+ g_signal_connect (
+ ec, "commit",
+ G_CALLBACK (eabc_commit), sdialog);
target = eab_config_target_new_source (ec, sdialog->source);
e_config_set_target ((EConfig *) ec, (EConfigTarget *) target);