summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2007-11-14 01:01:36 +0100
committerGuillaume Seguin <guillaume@segu.in>2007-11-14 01:01:36 +0100
commit95cc99a024a141df73388d03fccae1edfdf0c683 (patch)
tree15b0a5755be22fd47f945b23fa7272a949711cfb
parentb8fca10e3f2b752db3d93cf3083070781865f505 (diff)
downloadgnome-about-95cc99a024a141df73388d03fccae1edfdf0c683.tar.gz
gnome-about-95cc99a024a141df73388d03fccae1edfdf0c683.tar.bz2
* Minor improvement to font size handling code for contributors label
-rwxr-xr-xgnome-about.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnome-about.py b/gnome-about.py
index ba823a2..a6ce5f3 100755
--- a/gnome-about.py
+++ b/gnome-about.py
@@ -521,6 +521,13 @@ made the label bigger than the container'''
self.set_size_request (self.size_request ()[0], label_height)
height = label_height
self.height = height
+ elif height > label_height * 1.2:
+ self.set_size_request (self.size_request ()[0],
+ int (label_height * 1.2))
+ height = int (label_height * 1.2)
+ else:
+ return
+ self.height = height
class WindowedLabel (gtk.Label):
'''Custom gtk.Label with an overlapping input-only gtk.gdk.Window'''