From 6c05b09be16ac8eceb17653c3c26c0c6f963ef10 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 18 Jun 2012 15:34:33 +0200 Subject: Do not call g_object_notify() when property didn't change --- modules/cal-config-contacts/e-source-contacts.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/cal-config-contacts') diff --git a/modules/cal-config-contacts/e-source-contacts.c b/modules/cal-config-contacts/e-source-contacts.c index 32ba589c71..1d2040cd72 100644 --- a/modules/cal-config-contacts/e-source-contacts.c +++ b/modules/cal-config-contacts/e-source-contacts.c @@ -133,6 +133,9 @@ e_source_contacts_set_include_me (ESourceContacts *extension, { g_return_if_fail (E_IS_SOURCE_CONTACTS (extension)); + if ((extension->priv->include_me ? 1 : 0) == (include_me ? 1 : 0)) + return; + extension->priv->include_me = include_me; g_object_notify (G_OBJECT (extension), "include-me"); -- cgit v1.2.3