diff options
author | Milan Crha <mcrha@redhat.com> | 2012-06-18 21:34:33 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-06-18 21:35:44 +0800 |
commit | 6c05b09be16ac8eceb17653c3c26c0c6f963ef10 (patch) | |
tree | 5bb22771cf05419f851373ee43b1ad39a0dcfeaa /mail/e-mail-config-summary-page.c | |
parent | e045e6f12324e1063a87488ac298fd23affea581 (diff) | |
download | gsoc2013-evolution-6c05b09be16ac8eceb17653c3c26c0c6f963ef10.tar.gz gsoc2013-evolution-6c05b09be16ac8eceb17653c3c26c0c6f963ef10.tar.zst gsoc2013-evolution-6c05b09be16ac8eceb17653c3c26c0c6f963ef10.zip |
Do not call g_object_notify() when property didn't change
Diffstat (limited to 'mail/e-mail-config-summary-page.c')
-rw-r--r-- | mail/e-mail-config-summary-page.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/e-mail-config-summary-page.c b/mail/e-mail-config-summary-page.c index 03a9ed19b4..2da138ee4f 100644 --- a/mail/e-mail-config-summary-page.c +++ b/mail/e-mail-config-summary-page.c @@ -875,6 +875,9 @@ e_mail_config_summary_page_set_account_name (EMailConfigSummaryPage *page, if (account_name == NULL) account_name = ""; + if (g_strcmp0 (page->priv->account_name, account_name) == 0) + return; + g_free (page->priv->account_name); page->priv->account_name = g_strdup (account_name); @@ -959,6 +962,9 @@ e_mail_config_summary_page_set_identity_source (EMailConfigSummaryPage *page, { g_return_if_fail (E_IS_MAIL_CONFIG_SUMMARY_PAGE (page)); + if (page->priv->identity_source == identity_source) + return; + if (identity_source != NULL) { g_return_if_fail (E_IS_SOURCE (identity_source)); g_object_ref (identity_source); |