aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-attachment-paned.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/misc/e-attachment-paned.c')
-rw-r--r--widgets/misc/e-attachment-paned.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/misc/e-attachment-paned.c b/widgets/misc/e-attachment-paned.c
index 565d91c4de..a3c4efb187 100644
--- a/widgets/misc/e-attachment-paned.c
+++ b/widgets/misc/e-attachment-paned.c
@@ -843,7 +843,7 @@ e_attachment_paned_set_expanded (EAttachmentPaned *paned,
{
g_return_if_fail (E_IS_ATTACHMENT_PANED (paned));
- if ((paned->priv->expanded ? 1 : 0) == (expanded ? 1 : 0))
+ if (paned->priv->expanded == expanded)
return;
paned->priv->expanded = expanded;
@@ -865,7 +865,7 @@ e_attachment_paned_set_resize_toplevel (EAttachmentPaned *paned,
{
g_return_if_fail (E_IS_ATTACHMENT_PANED (paned));
- if ((paned->priv->resize_toplevel ? 1 : 0) == (resize_toplevel ? 1 : 0))
+ if (paned->priv->resize_toplevel == resize_toplevel)
return;
paned->priv->resize_toplevel = resize_toplevel;