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): |
174 | 174 | vbox_copyright.set_border_width(style.DEFAULT_SPACING * 2) |
175 | 175 | vbox_copyright.set_spacing(style.DEFAULT_SPACING) |
176 | 176 | |
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 " |
179 | 180 | "and Contributors.") |
180 | 181 | 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) |
181 | 184 | label_copyright.show() |
182 | 185 | vbox_copyright.pack_start(label_copyright, expand=False) |
183 | 186 | |