Merge lp:~mhr3/unity-2d/default-filesystemlenses-constructor into lp:unity-2d

Proposed by Michal Hruby
Status: Merged
Approved by: Gerry Boland
Approved revision: 929
Merged at revision: 929
Proposed branch: lp:~mhr3/unity-2d/default-filesystemlenses-constructor
Merge into: lp:unity-2d
Diff against target: 12 lines (+1/-1)
1 file modified
libunity-2d-private/src/lenses.cpp (+1/-1)
To merge this branch: bzr merge lp:~mhr3/unity-2d/default-filesystemlenses-constructor
Reviewer Review Type Date Requested Status
unity-2d-team Pending
Review via email: mp+94102@code.launchpad.net

Description of the change

Use default FilesystemLenses constructor.

There is an API break pending in UnityCore which affects the other constructor and unity-2d has no reason to use it.

Trivial change, covered by existing tests.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'libunity-2d-private/src/lenses.cpp'
2--- libunity-2d-private/src/lenses.cpp 2012-01-27 17:48:24 +0000
3+++ libunity-2d-private/src/lenses.cpp 2012-02-22 08:50:21 +0000
4@@ -39,7 +39,7 @@
5 setRoleNames(roles);
6
7 m_homeLens = new unity::dash::HomeLens(u2dTr("Home").toStdString(), u2dTr("Home screen").toStdString(), u2dTr("Search").toStdString());
8- m_unityLenses = new unity::dash::FilesystemLenses("/usr/share/unity/lenses");
9+ m_unityLenses = new unity::dash::FilesystemLenses();
10 m_homeLens->AddLenses(*m_unityLenses);
11 m_homeLens->lens_added.connect(sigc::mem_fun(this, &Lenses::onLensAdded));
12 unity::dash::HomeLens::Ptr homeLensPtr(m_homeLens);

Subscribers

People subscribed via source and target branches