Merge lp:~ken-vandine/libunity/lp_1058198 into lp:libunity

Proposed by Ken VanDine
Status: Merged
Approved by: Michal Hruby
Approved revision: 184
Merged at revision: 182
Proposed branch: lp:~ken-vandine/libunity/lp_1058198
Merge into: lp:libunity
Diff against target: 16 lines (+2/-2)
1 file modified
src/unity-previews.vala (+2/-2)
To merge this branch: bzr merge lp:~ken-vandine/libunity/lp_1058198
Reviewer Review Type Date Requested Status
Michal Hruby (community) Approve
Review via email: mp+127020@code.launchpad.net

Commit message

Make sender wrap the title property and set the subtitle in the
constructor. (LP: #1058198)

Description of the change

Make sender wrap the title property and set the subtitle in the
constructor. (LP: #1058198)

To post a comment you must log in.
Revision history for this message
Michal Hruby (mhr3) wrote :

9 + public string sender {
10 + get { return title; }
11 + set { title = value; }
12 + }

Why is the sender even there if it's not used? I'd normally say remove it completely and use title directly, but we're in API freeze now, so let's leave the sender property there unused. Therefore:

 Object (title: sender, ...);

review: Needs Fixing
lp:~ken-vandine/libunity/lp_1058198 updated
183. By Ken VanDine

Leave the sender property unused.

Revision history for this message
Ken VanDine (ken-vandine) wrote :

> 9 + public string sender {
> 10 + get { return title; }
> 11 + set { title = value; }
> 12 + }
>
> Why is the sender even there if it's not used? I'd normally say remove it
> completely and use title directly, but we're in API freeze now, so let's leave
> the sender property there unused. Therefore:
>
> Object (title: sender, ...);

Yeah, that is why I didn't remove it. I updated to match your suggestion.

lp:~ken-vandine/libunity/lp_1058198 updated
184. By Ken VanDine

don't make sender wrap title, just leave it unused.

Revision history for this message
Michal Hruby (mhr3) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/unity-previews.vala'
2--- src/unity-previews.vala 2012-09-17 17:27:42 +0000
3+++ src/unity-previews.vala 2012-10-01 14:27:30 +0000
4@@ -529,11 +529,11 @@
5 }
6
7 public SocialPreview (string sender,
8- string title,
9+ string subtitle,
10 string content,
11 Icon? avatar)
12 {
13- Object (sender: sender, title: title, content: content,
14+ Object (title: sender, subtitle: subtitle, content: content,
15 avatar: avatar);
16 }
17

Subscribers

People subscribed via source and target branches