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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/widgets/misc/e-attachment-button.c b/widgets/misc/e-attachment-button.c
index d3aa4a6350..d3fda0985a 100644
--- a/widgets/misc/e-attachment-button.c
+++ b/widgets/misc/e-attachment-button.c
@@ -834,6 +834,9 @@ 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))
+ return;
+
button->priv->expandable = expandable;
if (!expandable)
@@ -856,6 +859,9 @@ 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))
+ return;
+
button->priv->expanded = expanded;
g_object_notify (G_OBJECT (button), "expanded");