From: "Wiktor W Brodlo" <wiktor@brodlo.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/anaconda:master commit in: ui/, iw/
Date: Wed, 3 Aug 2011 08:24:23 +0000 (UTC) [thread overview]
Message-ID: <7e4399d21dc221e29b0392e80c8895a17fa3fcda.wiktor@gentoo> (raw)
commit: 7e4399d21dc221e29b0392e80c8895a17fa3fcda
Author: wiktor w brodlo <wiktor <AT> brodlo <DOT> net>
AuthorDate: Wed Aug 3 08:23:37 2011 +0000
Commit: Wiktor W Brodlo <wiktor <AT> brodlo <DOT> net>
CommitDate: Wed Aug 3 08:23:37 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/anaconda.git;a=commit;h=7e4399d2
Tweak the timezone window
---
iw/timezone_gui.py | 6 ++--
ui/timezone.glade | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 65 insertions(+), 3 deletions(-)
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<glade-interface>
+ <!-- interface-requires gtk+ 2.6 -->
+ <!-- interface-naming-policy toplevel-contextual -->
+ <widget class="GtkWindow" id="window">
+ <property name="can_focus">False</property>
+ <property name="border_width">5</property>
+ <property name="title" translatable="yes">Date/Time Properties</property>
+ <property name="default_width">400</property>
+ <property name="default_height">550</property>
+ <child>
+ <widget class="GtkVBox" id="tz_vbox">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="border_width">6</property>
+ <property name="spacing">5</property>
+ <child>
+ <widget class="GtkLabel" id="tzActionLabel">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Please select the nearest city in your time zone:</property>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Custom" id="tz">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkCheckButton" id="utc_check">
+ <property name="label" translatable="yes">_System clock uses UTC</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="has_tooltip">True</property>
+ <property name="tooltip" translatable="yes" comments="The times are called "winter time" and "summer time" in some localities.">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).</property>
+ <property name="use_action_appearance">False</property>
+ <property name="use_underline">True</property>
+ <property name="draw_indicator">True</property>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
+ </widget>
+</glade-interface>
next reply other threads:[~2011-08-03 8:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-03 8:24 Wiktor W Brodlo [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-08-04 2:16 [gentoo-commits] proj/anaconda:master commit in: ui/, iw/ Wiktor W Brodlo
2011-07-30 3:16 Wiktor W Brodlo
2011-07-09 18:18 Wiktor W Brodlo
2011-07-04 13:42 Wiktor W Brodlo
2011-07-03 19:36 Wiktor W Brodlo
2011-07-03 18:59 Wiktor W Brodlo
2011-07-03 17:47 Wiktor W Brodlo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7e4399d21dc221e29b0392e80c8895a17fa3fcda.wiktor@gentoo \
--to=wiktor@brodlo.net \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox