Merge lp:~qw3rty-rocks/pantheon-photos/fix-1274811 into lp:~pantheon-photos/pantheon-photos/trunk

Proposed by Jeremy Vaartjes
Status: Merged
Approved by: Danielle Foré
Approved revision: 2510
Merged at revision: 2508
Proposed branch: lp:~qw3rty-rocks/pantheon-photos/fix-1274811
Merge into: lp:~pantheon-photos/pantheon-photos/trunk
Diff against target: 12 lines (+1/-1)
1 file modified
src/Dialogs.vala (+1/-1)
To merge this branch: bzr merge lp:~qw3rty-rocks/pantheon-photos/fix-1274811
Reviewer Review Type Date Requested Status
Danielle Foré Approve
Review via email: mp+204392@code.launchpad.net

Commit message

Changed 'Adjust date and time' dialog from OK button to an Apply button

Description of the change

Changed 'Adjust date and time' dialog from OK button to an Apply button

To post a comment you must log in.
Revision history for this message
Danielle Foré (danrabbit) wrote :

Hey Jeremy, Gtk.Stock is now deprecated as of gtk 3.10. Please use button.with_label instead

review: Needs Fixing
Revision history for this message
Danielle Foré (danrabbit) wrote :

Did you try building this branch before you committed? :p You've got a little syntax error. extra ";" on line 9 of the diff

review: Needs Fixing
Revision history for this message
Jeremy Vaartjes (qw3rty-rocks) wrote :

sorry, I just did a quick edit on my stable elementary and because of old libs could not build it, so I didn't realise the extra semi-colon. I've got arch Linux set up to work so in the future will use that.

Revision history for this message
Danielle Foré (danrabbit) wrote :

Hey Jeremy, you really gotta test the branch... This branch produces an empty button. You can simply do

add_buttons(Gtk.Stock.CANCEL, Gtk.ResponseType.CANCEL,
                    ("Apply"), Gtk.ResponseType.OK);

review: Needs Fixing
Revision history for this message
Jeremy Vaartjes (qw3rty-rocks) wrote :

sorry for all that (I feel like a really big idiot now). Usually I'm not this bad. Oh well it's fixed now.

Revision history for this message
Danielle Foré (danrabbit) wrote :

no worries :p

review: Approve
Revision history for this message
Danielle Foré (danrabbit) wrote :

Ah you still forgot the parenthesis! I almost approved it without testing myself lol

review: Needs Fixing
Revision history for this message
Danielle Foré (danrabbit) wrote :

Oops, sorry I'm wrong. Looks like it works fine xD

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Dialogs.vala'
2--- src/Dialogs.vala 2013-12-10 00:53:10 +0000
3+++ src/Dialogs.vala 2014-02-20 22:12:45 +0000
4@@ -1597,7 +1597,7 @@
5 set_transient_for(AppWindow.get_instance());
6
7 add_buttons(Gtk.Stock.CANCEL, Gtk.ResponseType.CANCEL,
8- Gtk.Stock.OK, Gtk.ResponseType.OK);
9+ "Apply", Gtk.ResponseType.OK);
10 set_title(Resources.ADJUST_DATE_TIME_LABEL);
11
12 calendar = new Gtk.Calendar();

Subscribers

People subscribed via source and target branches