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

Proposed by Nico van der Walt
Status: Merged
Merged at revision: 1125
Proposed branch: lp:~nicovdw/unity/fix-for-759763
Merge into: lp:unity
Diff against target: 12 lines (+2/-0)
1 file modified
src/PlacesSearchBar.cpp (+2/-0)
To merge this branch: bzr merge lp:~nicovdw/unity/fix-for-759763
Reviewer Review Type Date Requested Status
Didier Roche-Tolomelli Approve
Review via email: mp+57485@code.launchpad.net

Description of the change

Updates the maximum width of the combobox when the font changes.

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

Nice work again and again and again! :)
Thanks a bunch for the fix!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/PlacesSearchBar.cpp'
2--- src/PlacesSearchBar.cpp 2011-04-12 14:34:08 +0000
3+++ src/PlacesSearchBar.cpp 2011-04-13 13:14:42 +0000
4@@ -351,6 +351,8 @@
5
6 self->_combo->GetStaticText ()->SetFontName (font_name);
7 self->_combo->GetMenuPage ()->SetFontName (font_name);
8+ PlacesStyle *style = PlacesStyle::GetDefault ();
9+ self->_combo->SetMaximumWidth (style->GetTileWidth ());
10
11 desc = pango_font_description_from_string (font_name);
12 self->_pango_entry->SetFontFamily (pango_font_description_get_family (desc));