Merge lp:~mandel/unity-lens-music/design-fixes into lp:unity-lens-music

Proposed by Manuel de la Peña
Status: Merged
Approved by: Manuel de la Peña
Approved revision: 169
Merged at revision: 139
Proposed branch: lp:~mandel/unity-lens-music/design-fixes
Merge into: lp:unity-lens-music
Diff against target: 52 lines (+16/-3)
1 file modified
src/musicstore-scope.vala (+16/-3)
To merge this branch: bzr merge lp:~mandel/unity-lens-music/design-fixes
Reviewer Review Type Date Requested Status
Paweł Stołowski (community) Approve
Alejandro J. Cura (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+167763@code.launchpad.net

Commit message

Added a number of small fixes that design pointed out during the manual testing. This branch does not activate the payment feature yet until Ubuntu Payment confirms that all payment issues are fixed.

Description of the change

Added a number of small fixes that design pointed out during the manual testing. This branch does not activate the payment feature yet until Ubuntu Payment confirms that all payment issues are fixed.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alejandro J. Cura (alecu) wrote :

looks good. +1

review: Approve
Revision history for this message
Paweł Stołowski (stolowski) wrote :

LGTM. +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/musicstore-scope.vala'
--- src/musicstore-scope.vala 2013-05-21 16:16:28 +0000
+++ src/musicstore-scope.vala 2013-06-06 14:02:26 +0000
@@ -171,7 +171,7 @@
171171
172 delegate Unity.ActivationResponse LinkHandler (string uri);172 delegate Unity.ActivationResponse LinkHandler (string uri);
173173
174 private Unity.ActivationResponse build_error_preview (string uri, string error_header, string album_price, string link_text, LinkHandler link_handler)174 private Unity.ActivationResponse build_error_preview (string uri, string error_header, string album_price, string link_text, LinkHandler link_handler, bool has_cancel=true)
175 {175 {
176 Album album = null;176 Album album = null;
177 SList<Track> tracks = null;177 SList<Track> tracks = null;
@@ -186,10 +186,17 @@
186 var error_action = new Unity.PreviewAction ("open_u1_link", link_text, null);186 var error_action = new Unity.PreviewAction ("open_u1_link", link_text, null);
187 error_action.activated.connect (() => link_handler (uri));187 error_action.activated.connect (() => link_handler (uri));
188 error_preview.add_action (error_action);188 error_preview.add_action (error_action);
189
190 if (has_cancel)
191 {
192 var cancel_action = new Unity.PreviewAction ("cancel", _("Cancel"), null);
193 cancel_action.activated.connect (cancel_purchase);
194 error_preview.add_action (cancel_action);
195 }
196
189 return new Unity.ActivationResponse.with_preview (error_preview);197 return new Unity.ActivationResponse.with_preview (error_preview);
190 }198 }
191199
192
193 public Unity.ActivationResponse open_forgot_password_url (string uri)200 public Unity.ActivationResponse open_forgot_password_url (string uri)
194 {201 {
195 return open_uri (forgotten_password_url ());202 return open_uri (forgotten_password_url ());
@@ -197,6 +204,12 @@
197204
198 public Unity.ActivationResponse change_payment_method (string uri)205 public Unity.ActivationResponse change_payment_method (string uri)
199 {206 {
207 if (purchase_service.open_url != null)
208 {
209 debug ("Open url is %s", purchase_service.open_url);
210 return open_uri (purchase_service.open_url);
211 }
212
200 return open_uri (change_payment_method_url ());213 return open_uri (change_payment_method_url ());
201 }214 }
202215
@@ -385,7 +398,7 @@
385398
386 // actions399 // actions
387400
388 var purchase_action = new Unity.PreviewAction ("purchase_album", _("Purchase"), null);401 var purchase_action = new Unity.PreviewAction ("purchase_album", _("Buy Now"), null);
389 purchase_action.activated.connect (purchase_album);402 purchase_action.activated.connect (purchase_album);
390 album_purchase_preview.add_action (purchase_action);403 album_purchase_preview.add_action (purchase_action);
391404

Subscribers

People subscribed via source and target branches

to all changes: