Ticket #1980: 0001-Enabled-word-wrap-on-lengthy-gtk.Label.patch

File 0001-Enabled-word-wrap-on-lengthy-gtk.Label.patch, 1.6 KB (added by timclicks, 14 years ago)

Patch

  • extensions/cpsection/aboutcomputer/view.py

    From 94d0e44d4f74070265bdad81ad855ecc1adbfc45 Mon Sep 17 00:00:00 2001
    From: timClicks <paperless@timmcnamara.co.nz>
    Date: Mon, 3 May 2010 16:57:43 +1200
    Subject: [PATCH] Enabled word wrap on lengthy gtk.Label
    
    The current copyright attribution extends past the screen size of
    the XOs. This looks out of place.
    
    Additionally, this patch fixes some punctuation errors & a
    removes the capitalisation from 'collaborators', which is not a
    pronoun.
    
    Summary:
      - Enabled word wrapping, so that the message now fits without
        scrolling.
      - Changed semi-colons to commas in the list.
      - Removed capitalisation from non-pronoun.
    ---
     extensions/cpsection/aboutcomputer/view.py |    5 +++--
     1 files changed, 3 insertions(+), 2 deletions(-)
    
    diff --git a/extensions/cpsection/aboutcomputer/view.py b/extensions/cpsection/aboutcomputer/view.py
    index dd4f8f3..da20275 100644
    a b class AboutComputer(SectionView): 
    175175        vbox_copyright.set_spacing(style.DEFAULT_SPACING)
    176176
    177177        label_copyright = gtk.Label("© 2006-2009 One Laptop per Child "
    178                                     "Association Inc; Red Hat Inc; Collabora Ltd; "
    179                                     "and Contributors.")
     178                                    "Association Inc, Red Hat Inc, Collabora Ltd; "
     179                                    "and contributors.")
     180        label_info.set_line_wrap(True)
    180181        label_copyright.set_alignment(0, 0)
    181182        label_copyright.show()
    182183        vbox_copyright.pack_start(label_copyright, expand=False)