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-tab.c | |
parent | e045e6f12324e1063a87488ac298fd23affea581 (diff) | |
download | gsoc2013-evolution-6c05b09be16ac8eceb17653c3c26c0c6f963ef10.tar gsoc2013-evolution-6c05b09be16ac8eceb17653c3c26c0c6f963ef10.tar.gz gsoc2013-evolution-6c05b09be16ac8eceb17653c3c26c0c6f963ef10.tar.bz2 gsoc2013-evolution-6c05b09be16ac8eceb17653c3c26c0c6f963ef10.tar.lz gsoc2013-evolution-6c05b09be16ac8eceb17653c3c26c0c6f963ef10.tar.xz 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-tab.c')
-rw-r--r-- | mail/e-mail-tab.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mail/e-mail-tab.c b/mail/e-mail-tab.c index d79edf40e8..a2a80436d0 100644 --- a/mail/e-mail-tab.c +++ b/mail/e-mail-tab.c @@ -1459,7 +1459,7 @@ e_mail_tab_set_can_close (EMailTab *tab, { EMailTabPrivate *priv = tab->priv; - if (priv->can_close == can_close) + if ((priv->can_close ? 1 : 0) == (can_close ? 1 : 0)) return; priv->can_close = can_close; @@ -1504,7 +1504,7 @@ e_mail_tab_set_docking (EMailTab *tab, { EMailTabPrivate *priv = tab->priv; - if (priv->docking == docking) + if ((priv->docking ? 1 : 0) == (docking ? 1 : 0)) return; priv->docking = docking; @@ -1815,7 +1815,7 @@ e_mail_tab_set_private (EMailTab *tab, { EMailTabPrivate *priv = tab->priv; - if (priv->private == private) + if ((priv->private ? 1 : 0) == (private ? 1 : 0)) return; priv->private = private; @@ -1840,7 +1840,7 @@ e_mail_tab_set_active (EMailTab *tab, { EMailTabPrivate *priv = tab->priv; - if (priv->active == active) + if ((priv->active ? 1 : 0) == (active ? 1 : 0)) return; priv->active = active; |