Merge lp:~bilalakhtar/unity/fix-sc-launcher-integration into lp:unity

Proposed by Bilal Akhtar
Status: Merged
Approved by: Tim Penhey
Approved revision: no longer in the source branch.
Merged at revision: 2117
Proposed branch: lp:~bilalakhtar/unity/fix-sc-launcher-integration
Merge into: lp:unity
Diff against target: 11 lines (+1/-0)
1 file modified
plugins/unityshell/src/LauncherController.cpp (+1/-0)
To merge this branch: bzr merge lp:~bilalakhtar/unity/fix-sc-launcher-integration
Reviewer Review Type Date Requested Status
Alex Launi (community) Approve
Mirco Müller (community) Needs Fixing
Review via email: mp+93908@code.launchpad.net

Description of the change

This is a one-line change to fix SC launcher integration (bug #761851).

Since SC Launcher integration phase 1 landed before Unity 5.2.0, this change doesn't need a UIFe. This branch merely fixes the integration. Please ensure it lands before Unity 5.6.0.

To post a comment you must log in.
Revision history for this message
Tim Penhey (thumper) wrote :

On Tue 21 Feb 2012 13:01:30 NZDT, Bilal Akhtar wrote:
> Bilal Akhtar has proposed merging lp:~bilalakhtar/unity/fix-sc-launcher-integration into lp:unity.
>
> Requested reviews:
> Unity Team (unity-team)
> Related bugs:
> Bug #761851 in unity: "Software Centre - automatically add app icon to launcher"
> https://bugs.launchpad.net/unity/+bug/761851
>
> For more details, see:
> https://code.launchpad.net/~bilalakhtar/unity/fix-sc-launcher-integration/+merge/93908
>
> This is a one-line change to fix SC launcher integration (bug #761851).

Do we have a test for this?

Or put another way, how can we easily add a test for this?

Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

I don't think this is likely to break again. When LauncherController was revamped, this line was mistakenly deleted by someone else. That shouldn't happen again, I hope.

Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

Okay, as it appears, this branch got flooded by mistake with some recent changes which should be part of another branch. While I solve things up, i'm closing this merge request.

Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

This branch is okay for getting merged again. Please review!

Revision history for this message
Mirco Müller (macslow) wrote :

Branch works as advertised and fixes LP: #932280. But it does not have any kind of test coming with it. Adding at least a manual test (e.g. derived from case stated in the bug-description) would be better than nothing. The nature of this feature makes it a bit hard to provide an automated (autopilot) test.

review: Needs Fixing
Revision history for this message
Alex Launi (alexlauni) wrote :

This sort of fix doesn't require a test. There is an autopilot test for the feature overall on Bilal's other branch, https://code.launchpad.net/~bilalakhtar/unity/sc-integration-phase2/+merge/95795

review: Approve
Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

Also, as it turns out, the autopilot test on that branch covers this line as well. So once that branch gets in (which should happen either today or tomorrow), the tests for this line will be covered too. If this line breaks in the future, or anything on the way, then that test would start to fail.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/unityshell/src/LauncherController.cpp'
2--- plugins/unityshell/src/LauncherController.cpp 2012-02-29 17:05:43 +0000
3+++ plugins/unityshell/src/LauncherController.cpp 2012-03-03 01:30:24 +0000
4@@ -326,6 +326,7 @@
5
6 launcher->SetModel(model_.get());
7 launcher->launcher_addrequest.connect(sigc::mem_fun(this, &Impl::OnLauncherAddRequest));
8+ launcher->launcher_addrequest_special.connect(sigc::mem_fun(this, &Impl::OnLauncherAddRequestSpecial));
9 launcher->launcher_removerequest.connect(sigc::mem_fun(this, &Impl::OnLauncherRemoveRequest));
10
11 parent_->AddChild(launcher);