Merge lp:~evfool/software-center/lp875874 into lp:software-center

Proposed by Robert Roth
Status: Merged
Merge reported by: Gary Lasker
Merged at revision: not available
Proposed branch: lp:~evfool/software-center/lp875874
Merge into: lp:software-center
Diff against target: 10 lines (+1/-0)
1 file modified
softwarecenter/ui/gtk3/widgets/reviews.py (+1/-0)
To merge this branch: bzr merge lp:~evfool/software-center/lp875874
Reviewer Review Type Date Requested Status
Gary Lasker (community) Approve
Review via email: mp+107239@code.launchpad.net

Description of the change

Set word wrap with fallback to char wrapping for the review text label to fix bug #875874.

To post a comment you must log in.
Revision history for this message
Gary Lasker (gary-lasker) wrote :

Ah, seems exactly what's needed. Thank you, Robert!

review: Approve
Revision history for this message
Gary Lasker (gary-lasker) wrote :

Merged your fix into the 5.2 branch, and this well get merged over to trunk soon.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'softwarecenter/ui/gtk3/widgets/reviews.py'
2--- softwarecenter/ui/gtk3/widgets/reviews.py 2012-05-16 15:52:07 +0000
3+++ softwarecenter/ui/gtk3/widgets/reviews.py 2012-05-24 16:26:38 +0000
4@@ -659,6 +659,7 @@
5 text = Gtk.Label()
6 text.set_text(review_data.review_text)
7 text.set_line_wrap(True)
8+ text.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
9 text.set_selectable(True)
10 text.set_alignment(0, 0)
11