aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-attachment-button.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/misc/e-attachment-button.c')
-rw-r--r--widgets/misc/e-attachment-button.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/misc/e-attachment-button.c b/widgets/misc/e-attachment-button.c
index d3fda0985a..a2057e3354 100644
--- a/widgets/misc/e-attachment-button.c
+++ b/widgets/misc/e-attachment-button.c
@@ -834,7 +834,7 @@ e_attachment_button_set_expandable (EAttachmentButton *button,
{
g_return_if_fail (E_IS_ATTACHMENT_BUTTON (button));
- if ((button->priv->expandable ? 1 : 0) == (expandable ? 1 : 0))
+ if (button->priv->expandable == expandable)
return;
button->priv->expandable = expandable;
@@ -859,7 +859,7 @@ e_attachment_button_set_expanded (EAttachmentButton *button,
{
g_return_if_fail (E_IS_ATTACHMENT_BUTTON (button));
- if ((button->priv->expanded ? 1 : 0) == (expanded ? 1 : 0))
+ if (button->priv->expanded == expanded)
return;
button->priv->expanded = expanded;