Merge lp:~dobey/unity-scope-click/multiline-attrs into lp:unity-scope-click/devel

Proposed by dobey
Status: Merged
Approved by: Alejandro J. Cura
Approved revision: 428
Merged at revision: 430
Proposed branch: lp:~dobey/unity-scope-click/multiline-attrs
Merge into: lp:unity-scope-click/devel
Diff against target: 54 lines (+10/-4)
1 file modified
scope/clickstore/store-query.cpp (+10/-4)
To merge this branch: bzr merge lp:~dobey/unity-scope-click/multiline-attrs
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Alejandro J. Cura (community) Approve
Review via email: mp+232473@code.launchpad.net

Commit message

Split the price and rating attributes into separate lines when surfacing results.

Description of the change

This changes the attributes being sent, so that we can display price and rating on separate lines when surfacing results, but keep price and rating on the same line when using the horizontal layout for active search results.

This requires the changes in https://code.launchpad.net/~saviq/unity-scopes-shell/no-mangle-attributes/+merge/232458 to be shown properly. Without that change, the price and rating will still be on the same line in the display, as they currently are.

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

Link the bug report.

Revision history for this message
Alejandro J. Cura (alecu) wrote :

Looks good

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'scope/clickstore/store-query.cpp'
2--- scope/clickstore/store-query.cpp 2014-08-22 20:29:13 +0000
3+++ scope/clickstore/store-query.cpp 2014-08-28 14:08:32 +0000
4@@ -73,7 +73,7 @@
5 "components" : {
6 "title" : "title",
7 "subtitle": "subtitle",
8- "attributes": "attributes",
9+ "attributes": { "field": "attributes", "max-count": 4 },
10 "art" : {
11 "field": "art",
12 "aspect-ratio": 1.13
13@@ -93,7 +93,7 @@
14 "components" : {
15 "title" : "title",
16 "subtitle": "subtitle",
17- "attributes": "attributes",
18+ "attributes": { "field": "attributes", "max-count": 4 },
19 "art" : {
20 "field": "art",
21 "aspect-ratio": 0.55
22@@ -112,7 +112,7 @@
23 "components": {
24 "title": "title",
25 "subtitle": "subtitle",
26- "attributes": "attributes",
27+ "attributes": { "field": "attributes", "max-count": 4 },
28 "art": {
29 "aspect-ratio": 2.5,
30 "field": "art"
31@@ -136,7 +136,7 @@
32 "aspect-ratio": 1.13
33 },
34 "subtitle": "subtitle",
35- "attributes": "attributes"
36+ "attributes": { "field": "attributes", "max-count": 3 }
37 }
38 }
39 )";
40@@ -348,8 +348,14 @@
41 {"value", scopes::Variant(price)},
42 });
43 builder.add_tuple({
44+ {"value", scopes::Variant("")},
45+ });
46+ builder.add_tuple({
47 {"value", scopes::Variant(rating)},
48 });
49+ builder.add_tuple({
50+ {"value", scopes::Variant("")},
51+ });
52 res["attributes"] = builder.end();
53
54 this->push_result(searchReply, res);

Subscribers

People subscribed via source and target branches

to all changes: