Ticket #1980: 0001-Fixed-text-overflow-padding.-Closes-sl-1980.patch

File 0001-Fixed-text-overflow-padding.-Closes-sl-1980.patch, 1.7 KB (added by timClicks, 14 years ago)

fix

  • extensions/cpsection/aboutcomputer/view.py

    From a1fce5bbb7817284fd3c8fe44e84fdde79d39f39 Mon Sep 17 00:00:00 2001
    From: Tim McNamara <code@timmcnamara.co.nz>
    Date: Sun, 15 Aug 2010 17:01:00 +1200
    Subject: [PATCH] Fixed text overflow, padding. Closes sl#1980
    
    This commit
      - adds Sugar Labs as a copyright owner
      - fixes the text overflow problem
      - adds set_request_size method to label_copyright make
        the two labels's alignment (label_info & label_copyright)
        consistent with each other
    ---
     extensions/cpsection/aboutcomputer/view.py |    7 +++++--
     1 files changed, 5 insertions(+), 2 deletions(-)
    
    diff --git a/extensions/cpsection/aboutcomputer/view.py b/extensions/cpsection/aboutcomputer/view.py
    index dd4f8f3..b6ff43f 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-2010 One Laptop per Child "
     178                                    "Association Inc, Sugar Labs Inc, "
     179                                    "Red Hat Inc, Collabora Ltd "
    179180                                    "and Contributors.")
    180181        label_copyright.set_alignment(0, 0)
     182        label_copyright.set_size_request(gtk.gdk.screen_width() / 2, -1)
     183        label_copyright.set_line_wrap(True)
    181184        label_copyright.show()
    182185        vbox_copyright.pack_start(label_copyright, expand=False)
    183186