Ticket #1980: 0005-Correct-text-overflow.patch

File 0005-Correct-text-overflow.patch, 1.4 KB (added by timclicks, 14 years ago)
  • extensions/cpsection/aboutcomputer/view.py

    From d022e601ed7525d0d3dd1fe186f7dd79c33e4c62 Mon Sep 17 00:00:00 2001
    From: timClicks <paperless@timmcnamara.co.nz>
    Date: Sun, 16 May 2010 01:29:33 +1200
    Subject: [PATCH 5/5] Correct text overflow
    
    - Added word wrapping to the copyright gtk.Label.
    - Changed copyright to include 2010
    - Changes to punctuation.
    ---
     extensions/cpsection/aboutcomputer/view.py |    6 +++---
     1 files changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/extensions/cpsection/aboutcomputer/view.py b/extensions/cpsection/aboutcomputer/view.py
    index da20275..dd28ea5 100644
    a b class AboutComputer(SectionView): 
    174174        vbox_copyright.set_border_width(style.DEFAULT_SPACING * 2)
    175175        vbox_copyright.set_spacing(style.DEFAULT_SPACING)
    176176
    177         label_copyright = gtk.Label("© 2006-2009 One Laptop per Child "
    178                                     "Association Inc, Red Hat Inc, Collabora Ltd; "
     177        label_copyright = gtk.Label("© 2006-20010 One Laptop per Child "
     178                                    "Association, Red Hat Inc., Collabora Ltd. "
    179179                                    "and contributors.")
    180         label_info.set_line_wrap(True)
    181180        label_copyright.set_alignment(0, 0)
     181        label_copyright.set_line_wrap(True)
    182182        label_copyright.show()
    183183        vbox_copyright.pack_start(label_copyright, expand=False)
    184184