aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-08-16 23:34:08 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-09-14 20:08:50 +0800
commit1b4f38f6dd6ceabca8518bee5d51ed801b2a79f2 (patch)
tree290b7db1eefa1d6e7c7981e7c7788c24258d6b21
parenteba017f96ba029a5541c70df48a77cb6f28b0992 (diff)
downloadgsoc2013-evolution-1b4f38f6dd6ceabca8518bee5d51ed801b2a79f2.tar
gsoc2013-evolution-1b4f38f6dd6ceabca8518bee5d51ed801b2a79f2.tar.gz
gsoc2013-evolution-1b4f38f6dd6ceabca8518bee5d51ed801b2a79f2.tar.bz2
gsoc2013-evolution-1b4f38f6dd6ceabca8518bee5d51ed801b2a79f2.tar.lz
gsoc2013-evolution-1b4f38f6dd6ceabca8518bee5d51ed801b2a79f2.tar.xz
gsoc2013-evolution-1b4f38f6dd6ceabca8518bee5d51ed801b2a79f2.tar.zst
gsoc2013-evolution-1b4f38f6dd6ceabca8518bee5d51ed801b2a79f2.zip
Simplify em_config_target_new_account_update_settings().
Just connect to the "notify" signal, without the detail. That will trigger the callback when any property changes, which seems to be the intent there.
-rw-r--r--mail/em-config.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/mail/em-config.c b/mail/em-config.c
index 3f649bacb3..464c9d814b 100644
--- a/mail/em-config.c
+++ b/mail/em-config.c
@@ -254,20 +254,8 @@ em_config_target_new_account_update_settings (EConfig *ep, EMConfigTargetAccount
target->settings = settings;
- if (target->settings != NULL) {
- GParamSpec **params;
- guint n_params = 0;
-
- params = camel_settings_class_list_settings (CAMEL_SETTINGS_GET_CLASS (target->settings), &n_params);
- if (params) {
- guint ii;
- gchar *sig_name;
-
- for (ii = 0; ii < n_params; ii++) {
- sig_name = g_strconcat ("notify::", params[ii]->name, NULL);
- g_signal_connect (target->settings, sig_name, G_CALLBACK (emp_account_changed), ep);
- g_free (sig_name);
- }
- }
- }
+ if (target->settings != NULL)
+ g_signal_connect (
+ target->settings, "notify",
+ G_CALLBACK (emp_account_changed), ep);
}