aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-account-editor.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-08-08 17:02:25 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-08-08 17:02:25 +0800
commite8585ef73c021ec3719729735805a76b552d34b7 (patch)
tree127b3e5ca56020eb2a7c9ba91bf5628e7a1d90d3 /mail/em-account-editor.c
parent27e9aabd6d0416c6c4b4626f6463549ad03c4669 (diff)
downloadgsoc2013-evolution-e8585ef73c021ec3719729735805a76b552d34b7.tar
gsoc2013-evolution-e8585ef73c021ec3719729735805a76b552d34b7.tar.gz
gsoc2013-evolution-e8585ef73c021ec3719729735805a76b552d34b7.tar.bz2
gsoc2013-evolution-e8585ef73c021ec3719729735805a76b552d34b7.tar.lz
gsoc2013-evolution-e8585ef73c021ec3719729735805a76b552d34b7.tar.xz
gsoc2013-evolution-e8585ef73c021ec3719729735805a76b552d34b7.tar.zst
gsoc2013-evolution-e8585ef73c021ec3719729735805a76b552d34b7.zip
** See bug #300881.
2005-08-04 Not Zed <NotZed@Ximian.com> ** See bug #300881. * em-account-editor.c (emae_setup_signatures): don't add the signature listener if we've already added it. svn path=/trunk/; revision=30034
Diffstat (limited to 'mail/em-account-editor.c')
-rw-r--r--mail/em-account-editor.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index 70936abf97..d35255d819 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -684,9 +684,11 @@ emae_setup_signatures(EMAccountEditor *emae, GladeXML *xml)
signatures = mail_config_get_signatures ();
- p->sig_added_id = g_signal_connect(signatures, "signature-added", G_CALLBACK(emae_signature_added), emae);
- p->sig_removed_id = g_signal_connect(signatures, "signature-removed", G_CALLBACK(emae_signature_removed), emae);
- p->sig_changed_id = g_signal_connect(signatures, "signature-changed", G_CALLBACK(emae_signature_changed), emae);
+ if (p->sig_added_id == 0) {
+ p->sig_added_id = g_signal_connect(signatures, "signature-added", G_CALLBACK(emae_signature_added), emae);
+ p->sig_removed_id = g_signal_connect(signatures, "signature-removed", G_CALLBACK(emae_signature_removed), emae);
+ p->sig_changed_id = g_signal_connect(signatures, "signature-changed", G_CALLBACK(emae_signature_changed), emae);
+ }
/* we need to count the 'none' entry before using the index */
i = 1;