Merge lp:~smspillaz/unity/unity.offset_expo_856112 into lp:unity

Proposed by Sam Spilsbury
Status: Merged
Approved by: Mirco Müller
Approved revision: no longer in the source branch.
Merged at revision: 1615
Proposed branch: lp:~smspillaz/unity/unity.offset_expo_856112
Merge into: lp:unity
Diff against target: 34 lines (+21/-0)
1 file modified
plugins/unityshell/src/unityshell.cpp (+21/-0)
To merge this branch: bzr merge lp:~smspillaz/unity/unity.offset_expo_856112
Reviewer Review Type Date Requested Status
Mirco Müller (community) Approve
Review via email: mp+76512@code.launchpad.net

Description of the change

Fixes 856112

To post a comment you must log in.
Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

bzr commit --fixes=lp:856112 -m "Fix bug 856112 'Expo centering need to change when launcher size changed'" && bzr lp-propose -m "See attached bug"

Would have linked the particular commit to the bug, created the mp, and attached the bug to this review. Makes the Desktop team happy. Just saying ;-)

Revision history for this message
Sam Spilsbury (smspillaz) wrote :

Thanks, I'll keep that in mind

On Thu, Sep 22, 2011 at 2:41 PM, Mikkel Kamstrup Erlandsen
<email address hidden> wrote:
> bzr commit --fixes=lp:856112 -m "Fix bug 856112 'Expo centering need to change when launcher size changed'" && bzr lp-propose -m "See attached bug"
>
> Would have linked the particular commit to the bug, created the mp, and attached the bug to this review. Makes the Desktop team happy. Just saying ;-)
> --
> https://code.launchpad.net/~smspillaz/unity/unity.offset_expo_856112/+merge/76512
> You are the owner of lp:~smspillaz/unity/unity.offset_expo_856112.
>

--
Sam Spilsbury

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

Nothing to complain about... works as described... approved.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/unityshell/src/unityshell.cpp'
2--- plugins/unityshell/src/unityshell.cpp 2011-09-22 01:38:27 +0000
3+++ plugins/unityshell/src/unityshell.cpp 2011-09-22 05:21:26 +0000
4@@ -1832,9 +1832,30 @@
5 launcher->SetBackgroundAlpha(optionGetLauncherOpacity());
6 break;
7 case UnityshellOptions::IconSize:
8+ {
9+ CompPlugin *p = CompPlugin::find ("expo");
10+
11 launcher->SetIconSize(optionGetIconSize() + 6, optionGetIconSize());
12 dashController->launcher_width = optionGetIconSize() + 18;
13+
14+ if (p)
15+ {
16+ CompOption::Vector &opts = p->vTable->getOptions ();
17+
18+ for (CompOption &o : opts)
19+ {
20+ if (o.name () == std::string ("x_offset"))
21+ {
22+ CompOption::Value v;
23+ v.set (static_cast <int> (optionGetIconSize() + 18));
24+
25+ screen->setOptionForPlugin (p->vTable->name ().c_str (), o.name ().c_str (), v);
26+ break;
27+ }
28+ }
29+ }
30 break;
31+ }
32 case UnityshellOptions::AutohideAnimation:
33 launcher->SetAutoHideAnimation((Launcher::AutoHideAnimation) optionGetAutohideAnimation());
34 break;