aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-memo-shell-backend.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-06-24 02:42:03 +0800
committerMilan Crha <mcrha@redhat.com>2010-06-24 02:42:03 +0800
commitbcdea3f01e0b614a0e366ee19c0ff6810e43b32d (patch)
tree174e4608c4ecd112a50b851ee64b1faaedb8e1e1 /modules/calendar/e-memo-shell-backend.c
parentb0a06fc691d47dc1c3c0e73678c945a1e1bb4ff5 (diff)
downloadgsoc2013-evolution-bcdea3f01e0b614a0e366ee19c0ff6810e43b32d.tar.gz
gsoc2013-evolution-bcdea3f01e0b614a0e366ee19c0ff6810e43b32d.tar.zst
gsoc2013-evolution-bcdea3f01e0b614a0e366ee19c0ff6810e43b32d.zip
Bug #611165 - Use memo start date from a calendar view, if active
Diffstat (limited to 'modules/calendar/e-memo-shell-backend.c')
-rw-r--r--modules/calendar/e-memo-shell-backend.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/calendar/e-memo-shell-backend.c b/modules/calendar/e-memo-shell-backend.c
index a51a5fc98e..2a0c277fc5 100644
--- a/modules/calendar/e-memo-shell-backend.c
+++ b/modules/calendar/e-memo-shell-backend.c
@@ -210,8 +210,9 @@ memo_shell_backend_memo_new_cb (ECal *cal,
flags |= COMP_EDITOR_NEW_ITEM;
- editor = memo_editor_new (cal, shell, flags);
comp = cal_comp_memo_new_with_defaults (cal);
+ cal_comp_update_time_by_active_window (comp, shell);
+ editor = memo_editor_new (cal, shell, flags);
comp_editor_edit_comp (editor, comp);
gtk_window_present (GTK_WINDOW (editor));
@@ -237,8 +238,9 @@ memo_shell_backend_memo_shared_new_cb (ECal *cal,
flags |= COMP_EDITOR_IS_SHARED;
flags |= COMP_EDITOR_USER_ORG;
- editor = memo_editor_new (cal, shell, flags);
comp = cal_comp_memo_new_with_defaults (cal);
+ cal_comp_update_time_by_active_window (comp, shell);
+ editor = memo_editor_new (cal, shell, flags);
comp_editor_edit_comp (editor, comp);
gtk_window_present (GTK_WINDOW (editor));