Merge lp:~3v1n0/unity/sticky-save-fix-6.0 into lp:unity/6.0

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Michal Hruby
Approved revision: no longer in the source branch.
Merged at revision: 2744
Proposed branch: lp:~3v1n0/unity/sticky-save-fix-6.0
Merge into: lp:unity/6.0
Diff against target: 40 lines (+5/-13)
2 files modified
launcher/BamfLauncherIcon.cpp (+5/-5)
tests/test_launcher_controller.cpp (+0/-8)
To merge this branch: bzr merge lp:~3v1n0/unity/sticky-save-fix-6.0
Reviewer Review Type Date Requested Status
Andrea Azzarone (community) Approve
Review via email: mp+126933@code.launchpad.net

Commit message

BamfLauncherIcon: call Stick after that the icon is set sticky, so that the signal emission will work

And so the favorites will be correctly saved.

Description of the change

To post a comment you must log in.
Revision history for this message
Andrea Azzarone (azzar1) wrote :

LGTM.

review: Approve
Revision history for this message
Unity Merger (unity-merger) wrote :

The Jenkins job https://jenkins.qa.ubuntu.com/job/automerge-unity/1407/console reported an error when processing this lp:~3v1n0/unity/sticky-save-fix-6.0 branch.
Not merging it.

Revision history for this message
Unity Merger (unity-merger) wrote :

The Jenkins job https://jenkins.qa.ubuntu.com/job/automerge-unity/1413/console reported an error when processing this lp:~3v1n0/unity/sticky-save-fix-6.0 branch.
Not merging it.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'launcher/BamfLauncherIcon.cpp'
2--- launcher/BamfLauncherIcon.cpp 2012-09-14 22:46:38 +0000
3+++ launcher/BamfLauncherIcon.cpp 2012-09-28 11:40:27 +0000
4@@ -932,12 +932,12 @@
5
6 void BamfLauncherIcon::Stick(bool save)
7 {
8+ if (IsSticky())
9+ return;
10+
11+ bamf_view_set_sticky(BAMF_VIEW(_bamf_app.RawPtr()), true);
12+
13 SimpleLauncherIcon::Stick(save);
14-
15- if (IsSticky())
16- return;
17-
18- bamf_view_set_sticky(BAMF_VIEW(_bamf_app.RawPtr()), true);
19 }
20
21 void BamfLauncherIcon::UnStick()
22
23=== modified file 'tests/test_launcher_controller.cpp'
24--- tests/test_launcher_controller.cpp 2012-09-20 00:14:30 +0000
25+++ tests/test_launcher_controller.cpp 2012-09-28 11:40:27 +0000
26@@ -163,14 +163,6 @@
27 return FavoriteStore::URI_PREFIX_APP + remote_uri_;
28 }
29
30- bool IsSticky() const
31- {
32- if (remote_uri_.empty())
33- return BamfLauncherIcon::IsSticky();
34- else
35- return SimpleLauncherIcon::IsSticky();
36- }
37-
38 void ReallyStick(bool save) { BamfLauncherIcon::Stick(save); }
39
40 MOCK_METHOD1(Stick, void(bool));

Subscribers

People subscribed via source and target branches