diff options
author | Chris Lumens <clumens@redhat.com> | 2006-01-05 16:52:13 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-01-05 16:52:13 +0000 |
commit | 34c97d5ced48f8f8f495f8a649646bd806e01b5c (patch) | |
tree | 78a8e86417304b67f61a16346f5e72cff38822ac /iw/timezone_gui.py | |
parent | 85838cce25872a9a2ece9b7d8435f5cfa7b19d52 (diff) | |
download | anaconda-34c97d5ced48f8f8f495f8a649646bd806e01b5c.tar.gz anaconda-34c97d5ced48f8f8f495f8a649646bd806e01b5c.tar.xz anaconda-34c97d5ced48f8f8f495f8a649646bd806e01b5c.zip |
Don't try to make the timezone widget bigger than the screen (#176025).
Diffstat (limited to 'iw/timezone_gui.py')
-rw-r--r-- | iw/timezone_gui.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/iw/timezone_gui.py b/iw/timezone_gui.py index 5701f5d84..7280fc87b 100644 --- a/iw/timezone_gui.py +++ b/iw/timezone_gui.py @@ -73,9 +73,13 @@ class TimezoneWindow(InstallWindow): mappath = "/usr/share/system-config-date/pixmaps/map1440.png" regionspath = "/usr/share/system-config-date/regions" + if gtk.gdk.screen_width() < 1024: + viewportWidth = 480 + else: + viewportWidth = 600 + self.tz = AnacondaTZMap(self.zonetab, self.default, map=mappath, - regions=regionspath, - viewportWidth=gtk.gdk.screen_height()) + regions=regionspath, viewportWidth=viewportWidth) self.tz.show_all() return self.tz |