Merge lp:~cameronnemo/maya/fix-1293077 into lp:~elementary-apps/maya/trunk

Proposed by Cameron Norman
Status: Merged
Approved by: Corentin Noël
Approved revision: 533
Merged at revision: 534
Proposed branch: lp:~cameronnemo/maya/fix-1293077
Merge into: lp:~elementary-apps/maya/trunk
Diff against target: 17 lines (+2/-2)
1 file modified
src/View/EventDialog.vala (+2/-2)
To merge this branch: bzr merge lp:~cameronnemo/maya/fix-1293077
Reviewer Review Type Date Requested Status
Corentin Noël Approve
Review via email: mp+212090@code.launchpad.net

Commit message

event dialog: make the to_time_picker.time one hour later than the from_time_picker.time

Description of the change

Makes the default To: time one hour later than the From: time.
This allows for easier creation of events because all that is necessary to input is the name of the event: one does not have to change the time or check "All Day".

To post a comment you must log in.
Revision history for this message
Corentin Noël (tintou) wrote :

Nice !

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/View/EventDialog.vala'
2--- src/View/EventDialog.vala 2013-12-23 18:19:22 +0000
3+++ src/View/EventDialog.vala 2014-03-21 06:18:50 +0000
4@@ -278,11 +278,11 @@
5
6 ecal = new E.CalComponent ();
7 ecal.set_new_vtype (E.CalComponentVType.EVENT);
8-
9+
10 from_date_picker.date = date_time;
11 from_time_picker.time = new DateTime.now_local ();
12 to_date_picker.date = date_time;
13- to_time_picker.time = new DateTime.now_local ();
14+ to_time_picker.time = from_time_picker.time.add_hours (1);
15 // Load the source
16 calendar_box.set_active_id (this.source.dup_uid ());
17 }

Subscribers

People subscribed via source and target branches