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
=== modified file 'src/View/EventDialog.vala'
--- src/View/EventDialog.vala 2013-12-23 18:19:22 +0000
+++ src/View/EventDialog.vala 2014-03-21 06:18:50 +0000
@@ -278,11 +278,11 @@
278 278
279 ecal = new E.CalComponent ();279 ecal = new E.CalComponent ();
280 ecal.set_new_vtype (E.CalComponentVType.EVENT);280 ecal.set_new_vtype (E.CalComponentVType.EVENT);
281 281
282 from_date_picker.date = date_time;282 from_date_picker.date = date_time;
283 from_time_picker.time = new DateTime.now_local ();283 from_time_picker.time = new DateTime.now_local ();
284 to_date_picker.date = date_time;284 to_date_picker.date = date_time;
285 to_time_picker.time = new DateTime.now_local ();285 to_time_picker.time = from_time_picker.time.add_hours (1);
286 // Load the source286 // Load the source
287 calendar_box.set_active_id (this.source.dup_uid ());287 calendar_box.set_active_id (this.source.dup_uid ());
288 }288 }

Subscribers

People subscribed via source and target branches