aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-memo-shell-content.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/calendar/e-memo-shell-content.c')
-rw-r--r--modules/calendar/e-memo-shell-content.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/calendar/e-memo-shell-content.c b/modules/calendar/e-memo-shell-content.c
index ca1c1d8f5d..ab9f3180be 100644
--- a/modules/calendar/e-memo-shell-content.c
+++ b/modules/calendar/e-memo-shell-content.c
@@ -314,6 +314,9 @@ static void
memo_shell_content_set_orientation (EMemoShellContent *memo_shell_content,
GtkOrientation orientation)
{
+ if (memo_shell_content->priv->orientation == orientation)
+ return;
+
memo_shell_content->priv->orientation = orientation;
g_object_notify (G_OBJECT (memo_shell_content), "orientation");
@@ -742,6 +745,9 @@ e_memo_shell_content_set_preview_visible (EMemoShellContent *memo_shell_content,
{
g_return_if_fail (E_IS_MEMO_SHELL_CONTENT (memo_shell_content));
+ if ((memo_shell_content->priv->preview_visible ? 1 : 0) == (preview_visible ? 1 : 0))
+ return;
+
memo_shell_content->priv->preview_visible = preview_visible;
if (preview_visible && memo_shell_content->priv->preview_pane) {