diff options
author | Matt Wilson <msw@redhat.com> | 2002-02-12 16:45:10 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2002-02-12 16:45:10 +0000 |
commit | 058486c4d9174784502efe3ff4768fb254593503 (patch) | |
tree | 36fef3842bdf7bc0e60f7cb964455481bc23c637 /iw | |
parent | 276f47c36f5e83673fff7c615309eeaa374e9df0 (diff) | |
download | anaconda-058486c4d9174784502efe3ff4768fb254593503.tar.gz anaconda-058486c4d9174784502efe3ff4768fb254593503.tar.xz anaconda-058486c4d9174784502efe3ff4768fb254593503.zip |
wrap properly
Diffstat (limited to 'iw')
-rw-r--r-- | iw/package_gui.py | 2 | ||||
-rw-r--r-- | iw/timezone_gui.py | 5 | ||||
-rw-r--r-- | iw/timezone_map_gui.py | 5 |
3 files changed, 7 insertions, 5 deletions
diff --git a/iw/package_gui.py b/iw/package_gui.py index 3e3ae0d36..cc5569943 100644 --- a/iw/package_gui.py +++ b/iw/package_gui.py @@ -385,7 +385,7 @@ class IndividualPackageSelectionWindow (InstallWindow): self.packageDesc.set_buffer(buffer) self.packageDesc.set_editable(gtk.FALSE) self.packageDesc.set_cursor_visible(gtk.FALSE) - self.packageDesc.set_wrap_mode(gtk.TRUE) + self.packageDesc.set_wrap_mode(gtk.WRAP_WORD) descSW.add (self.packageDesc) descSW.set_size_request (-1, 100) diff --git a/iw/timezone_gui.py b/iw/timezone_gui.py index 62e945b8a..bb4e42ff1 100644 --- a/iw/timezone_gui.py +++ b/iw/timezone_gui.py @@ -108,11 +108,11 @@ class TimezoneWindow (InstallWindow): def setcurrent (self, widget, area): try: - self.tz.setcurrent (self.default) + self.tz.setcurrent(self.default) except SystemError: self.default = _(self.langDefault) try: - self.tz.setcurrent (self.default) + self.tz.setcurrent(self.default) except: pass @@ -137,6 +137,7 @@ class TimezoneWindow (InstallWindow): self.tz = TimezoneMap(zonetab=zonetab, map=path) (self.default, asUTC, asArc) = self.timezone.getTimezoneInfo() + print "default is", self.default entry = zonetab.findEntryByTZ(self.default) if entry: self.tz.setCurrent(entry) diff --git a/iw/timezone_map_gui.py b/iw/timezone_map_gui.py index 35f013bb4..3ddc87d30 100644 --- a/iw/timezone_map_gui.py +++ b/iw/timezone_map_gui.py @@ -18,6 +18,7 @@ import gnome.canvas import string import re import math +from translate import _ class Enum: def __init__(self, *args): @@ -81,10 +82,10 @@ class TimezoneMap(gtk.VBox): for entry in zonetab.getEntries(): iter = self.listStore.append() - self.listStore.set_value(iter, self.columns.TZ, entry.tz) + self.listStore.set_value(iter, self.columns.TZ, _(entry.tz)) if entry.comments: self.listStore.set_value(iter, self.columns.COMMENTS, - entry.comments) + _(entry.comments)) else: self.listStore.set_value(iter, self.columns.COMMENTS, "") self.listStore.set_value(iter, self.columns.ENTRY, entry) |