aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorDan Vrátil <dvratil@redhat.com>2012-06-14 17:57:19 +0800
committerDan Vrátil <dvratil@redhat.com>2012-06-14 18:14:45 +0800
commit50ad565a15f4e630c06f78dddc6b3d00ea7ee34a (patch)
tree22563736042537c94d4c1a617f0e782824efb9d7 /modules
parent6fac903eabe16944923c53ca921fc0d3bd546cfb (diff)
downloadgsoc2013-evolution-50ad565a15f4e630c06f78dddc6b3d00ea7ee34a.tar
gsoc2013-evolution-50ad565a15f4e630c06f78dddc6b3d00ea7ee34a.tar.gz
gsoc2013-evolution-50ad565a15f4e630c06f78dddc6b3d00ea7ee34a.tar.bz2
gsoc2013-evolution-50ad565a15f4e630c06f78dddc6b3d00ea7ee34a.tar.lz
gsoc2013-evolution-50ad565a15f4e630c06f78dddc6b3d00ea7ee34a.tar.xz
gsoc2013-evolution-50ad565a15f4e630c06f78dddc6b3d00ea7ee34a.tar.zst
gsoc2013-evolution-50ad565a15f4e630c06f78dddc6b3d00ea7ee34a.zip
Bug #676179 - Memos/Tasks - Update preview when it's shown
Diffstat (limited to 'modules')
-rw-r--r--modules/calendar/e-memo-shell-content.c6
-rw-r--r--modules/calendar/e-task-shell-content.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/modules/calendar/e-memo-shell-content.c b/modules/calendar/e-memo-shell-content.c
index bd9cc09b57..ca1c1d8f5d 100644
--- a/modules/calendar/e-memo-shell-content.c
+++ b/modules/calendar/e-memo-shell-content.c
@@ -744,6 +744,12 @@ e_memo_shell_content_set_preview_visible (EMemoShellContent *memo_shell_content,
memo_shell_content->priv->preview_visible = preview_visible;
+ if (preview_visible && memo_shell_content->priv->preview_pane) {
+ memo_shell_content_cursor_change_cb (
+ memo_shell_content, 0,
+ E_TABLE (memo_shell_content->priv->memo_table));
+ }
+
g_object_notify (G_OBJECT (memo_shell_content), "preview-visible");
}
diff --git a/modules/calendar/e-task-shell-content.c b/modules/calendar/e-task-shell-content.c
index 16b97311f4..2be1153775 100644
--- a/modules/calendar/e-task-shell-content.c
+++ b/modules/calendar/e-task-shell-content.c
@@ -769,6 +769,12 @@ e_task_shell_content_set_preview_visible (ETaskShellContent *task_shell_content,
task_shell_content->priv->preview_visible = preview_visible;
+ if (preview_visible && task_shell_content->priv->preview_pane) {
+ task_shell_content_cursor_change_cb (
+ task_shell_content, 0,
+ E_TABLE (task_shell_content->priv->task_table));
+ }
+
g_object_notify (G_OBJECT (task_shell_content), "preview-visible");
}