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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/widgets/misc/e-attachment-paned.c b/widgets/misc/e-attachment-paned.c
index c0048fcd31..119c66e6f2 100644
--- a/widgets/misc/e-attachment-paned.c
+++ b/widgets/misc/e-attachment-paned.c
@@ -843,6 +843,9 @@ 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))
+ return;
+
paned->priv->expanded = expanded;
g_object_notify (G_OBJECT (paned), "expanded");
@@ -862,6 +865,9 @@ 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))
+ return;
+
paned->priv->resize_toplevel = resize_toplevel;
g_object_notify (G_OBJECT (paned), "resize-toplevel");