aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gaffney <agaffney@gentoo.org>2008-04-07 16:45:56 +0000
committerAndrew Gaffney <agaffney@gentoo.org>2008-04-07 16:45:56 +0000
commit231ee34c6265702c2bd385bf880db4ad1639f19e (patch)
tree488549ba64daae57e4a5c44e35ccb0a0bb2eb178
parentAdd checking for non-blank local filesystems after mounting (diff)
downloadgli-231ee34c6265702c2bd385bf880db4ad1639f19e.tar.gz
gli-231ee34c6265702c2bd385bf880db4ad1639f19e.tar.bz2
gli-231ee34c6265702c2bd385bf880db4ad1639f19e.zip
Truncate progress bar status text at 80 characters
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/gli/trunk@1893 f8877401-5920-0410-a79b-8e2d7e04ca0d
-rw-r--r--ChangeLog4
-rwxr-xr-xsrc/fe/gtk/ProgressDialog.py2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c1150e9..e22af18 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,10 @@
# Copyright 2005-2008 Gentoo Foundation; Distributed under the GPL v2
# $Id: $
+ 07 Apr 2008; Andrew Gaffney <agaffney@gentoo.org>
+ src/fe/gtk/ProgressDialog.py:
+ Truncate progress bar status text at 80 characters
+
06 Apr 2008; Andrew Gaffney <agaffney@gentoo.org>
src/GLIArchitectureTemplate.py:
Add checking for non-blank local filesystems after mounting
diff --git a/src/fe/gtk/ProgressDialog.py b/src/fe/gtk/ProgressDialog.py
index 0bdaece..76e690a 100755
--- a/src/fe/gtk/ProgressDialog.py
+++ b/src/fe/gtk/ProgressDialog.py
@@ -100,6 +100,8 @@ class ProgressDialog(gtk.Window):
self.call_next_step()
elif ntype == "progress":
self.progress_bar.set_fraction(ndata[0])
+ if len(ndata[1]) > 80:
+ ndata[1] = ndata[1][0:80] + "..."
self.progress_bar.set_text(ndata[1])
return True
return True