From 7e4399d21dc221e29b0392e80c8895a17fa3fcda Mon Sep 17 00:00:00 2001 From: wiktor w brodlo Date: Wed, 3 Aug 2011 08:23:37 +0000 Subject: Tweak the timezone window --- iw/timezone_gui.py | 6 +++--- ui/timezone.glade | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 3 deletions(-) create mode 100644 ui/timezone.glade diff --git a/iw/timezone_gui.py b/iw/timezone_gui.py index 0e96069..cf91ce6 100644 --- a/iw/timezone_gui.py +++ b/iw/timezone_gui.py @@ -55,10 +55,9 @@ class TimezoneWindow(InstallWindow): self.zonetab = zonetab.ZoneTab() # Pull in a bunch of widgets. - self.xml = gtk.glade.XML("/usr/share/system-config-date/system-config-date.glade", domain="system-config-date") + self.xml = gtk.glade.XML("timezone.glade", domain="system-config-date") self.vbox = self.xml.get_widget("tz_vbox") self.utcCheckbox = self.xml.get_widget("utc_check") - self.notebook = self.xml.get_widget("notebook") ics.setTitle(_("Time Zone Selection")) ics.setNextEnabled(1) @@ -80,7 +79,7 @@ class TimezoneWindow(InstallWindow): ratio = float(p_w)/p_h screen_x, screen_y = self.ics.cw.window.get_size() screen_x -= 80 - screen_y -= 300 + screen_y -= 200 p_w -= 80 if screen_x < p_w: @@ -174,6 +173,7 @@ class AnacondaTZMap(TimezoneMap): self.tzCombo.add_attribute(cell, 'text', 0) self.tzCombo.connect("changed", self.selectionChanged) self.hbox.pack_start(self.tzCombo, False, False) + self.hbox.pack_start(self.utcCheckbox, False, False) self.pack_start(self.hbox, False, False) diff --git a/ui/timezone.glade b/ui/timezone.glade new file mode 100644 index 0000000..fc03a36 --- /dev/null +++ b/ui/timezone.glade @@ -0,0 +1,62 @@ + + + + + + False + 5 + Date/Time Properties + 400 + 550 + + + True + False + 6 + 5 + + + True + False + 0 + Please select the nearest city in your time zone: + + + False + False + 0 + + + + + True + False + + + True + True + 1 + + + + + _System clock uses UTC + True + True + False + True + Use this if you want to automatically switch between normal and daylight savings time. Don't use this if you have other operating systems on this computer which adjust the hardware clock to achieve this, e.g. Microsoft Windows(tm). + False + True + True + + + False + False + 2 + + + + + + -- cgit v1.2.3-65-gdbad