Merge lp:~nicovdw/unity/fix-for-731212 into lp:unity

Proposed by Nico van der Walt
Status: Rejected
Rejected by: Didier Roche-Tolomelli
Proposed branch: lp:~nicovdw/unity/fix-for-731212
Merge into: lp:unity
Diff against target: 15 lines (+2/-2)
1 file modified
src/Launcher.cpp (+2/-2)
To merge this branch: bzr merge lp:~nicovdw/unity/fix-for-731212
Reviewer Review Type Date Requested Status
Didier Roche-Tolomelli Disapprove
Review via email: mp+54099@code.launchpad.net

Description of the change

This patch fixes the alignment and sizing issue on the launcher icons shortcut labels when holding down the super key and a different icon size than the default of 48 is selected.

The other launcher items (first 10 items) are hard coded during initialization of the launcher for the default size of 48.

To post a comment you must log in.
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Hey Nico,

TBH, I'm quite unsure about that patch, I would prefer to remove everywhere all the hardcoded values rather than adding more. Can you have a look at see if you can remove/calcule and _icon_size depending on the scale?

Thanks a bunch :)

review: Disapprove
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Setting the state to superseeded as you already fixed it

Unmerged revisions

970. By Nico van der Walt

Fix for LP: #731212 where 'Applications' and 'Files & Folders' keyboard shortcuts did not align properly

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Launcher.cpp'
2--- src/Launcher.cpp 2011-03-18 18:35:33 +0000
3+++ src/Launcher.cpp 2011-03-19 11:06:35 +0000
4@@ -1939,9 +1939,9 @@
5 // needs to be disconnected
6 icon->needs_redraw.connect (sigc::mem_fun(this, &Launcher::OnIconNeedsRedraw));
7
8- guint64 shortcut = icon->GetShortcut ();
9+ guint64 shortcut = icon->GetShortcut ();
10 if (shortcut != 0 && !g_ascii_isdigit ((gchar) shortcut))
11- icon->SetSuperkeyLabel (cairoToTexture2D ((gchar) shortcut, _icon_size, _icon_size));
12+ icon->SetSuperkeyLabel (cairoToTexture2D ((gchar) shortcut, 54, 54));
13
14 AddChild (icon);
15 }