aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-reader.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-06-18 21:34:33 +0800
committerMilan Crha <mcrha@redhat.com>2012-06-18 21:35:44 +0800
commit6c05b09be16ac8eceb17653c3c26c0c6f963ef10 (patch)
tree5bb22771cf05419f851373ee43b1ad39a0dcfeaa /mail/e-mail-reader.c
parente045e6f12324e1063a87488ac298fd23affea581 (diff)
downloadgsoc2013-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-reader.c')
-rw-r--r--mail/e-mail-reader.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c
index c350b52dd3..5d1c36a0ba 100644
--- a/mail/e-mail-reader.c
+++ b/mail/e-mail-reader.c
@@ -4572,6 +4572,9 @@ e_mail_reader_set_forward_style (EMailReader *reader,
priv = E_MAIL_READER_GET_PRIVATE (reader);
+ if (priv->forward_style == style)
+ return;
+
priv->forward_style = style;
g_object_notify (G_OBJECT (reader), "forward-style");
@@ -4600,7 +4603,7 @@ e_mail_reader_set_group_by_threads (EMailReader *reader,
priv = E_MAIL_READER_GET_PRIVATE (reader);
- if (group_by_threads == priv->group_by_threads)
+ if ((group_by_threads ? 1 : 0) == (priv->group_by_threads ? 1 : 0))
return;
priv->group_by_threads = group_by_threads;
@@ -4635,6 +4638,9 @@ e_mail_reader_set_reply_style (EMailReader *reader,
priv = E_MAIL_READER_GET_PRIVATE (reader);
+ if (priv->reply_style == style)
+ return;
+
priv->reply_style = style;
g_object_notify (G_OBJECT (reader), "reply-style");