Gentoo Archives: gentoo-commits

From: Wiktor W Brodlo <wiktor@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/anaconda:master commit in: ui/, iw/
Date: Wed, 03 Aug 2011 08:24:32
Message-Id: 7e4399d21dc221e29b0392e80c8895a17fa3fcda.wiktor@gentoo
1 commit: 7e4399d21dc221e29b0392e80c8895a17fa3fcda
2 Author: wiktor w brodlo <wiktor <AT> brodlo <DOT> net>
3 AuthorDate: Wed Aug 3 08:23:37 2011 +0000
4 Commit: Wiktor W Brodlo <wiktor <AT> brodlo <DOT> net>
5 CommitDate: Wed Aug 3 08:23:37 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/anaconda.git;a=commit;h=7e4399d2
7
8 Tweak the timezone window
9
10 ---
11 iw/timezone_gui.py | 6 ++--
12 ui/timezone.glade | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++
13 2 files changed, 65 insertions(+), 3 deletions(-)
14
15 diff --git a/iw/timezone_gui.py b/iw/timezone_gui.py
16 index 0e96069..cf91ce6 100644
17 --- a/iw/timezone_gui.py
18 +++ b/iw/timezone_gui.py
19 @@ -55,10 +55,9 @@ class TimezoneWindow(InstallWindow):
20 self.zonetab = zonetab.ZoneTab()
21
22 # Pull in a bunch of widgets.
23 - self.xml = gtk.glade.XML("/usr/share/system-config-date/system-config-date.glade", domain="system-config-date")
24 + self.xml = gtk.glade.XML("timezone.glade", domain="system-config-date")
25 self.vbox = self.xml.get_widget("tz_vbox")
26 self.utcCheckbox = self.xml.get_widget("utc_check")
27 - self.notebook = self.xml.get_widget("notebook")
28
29 ics.setTitle(_("Time Zone Selection"))
30 ics.setNextEnabled(1)
31 @@ -80,7 +79,7 @@ class TimezoneWindow(InstallWindow):
32 ratio = float(p_w)/p_h
33 screen_x, screen_y = self.ics.cw.window.get_size()
34 screen_x -= 80
35 - screen_y -= 300
36 + screen_y -= 200
37 p_w -= 80
38
39 if screen_x < p_w:
40 @@ -174,6 +173,7 @@ class AnacondaTZMap(TimezoneMap):
41 self.tzCombo.add_attribute(cell, 'text', 0)
42 self.tzCombo.connect("changed", self.selectionChanged)
43 self.hbox.pack_start(self.tzCombo, False, False)
44 + self.hbox.pack_start(self.utcCheckbox, False, False)
45
46 self.pack_start(self.hbox, False, False)
47
48
49 diff --git a/ui/timezone.glade b/ui/timezone.glade
50 new file mode 100644
51 index 0000000..fc03a36
52 --- /dev/null
53 +++ b/ui/timezone.glade
54 @@ -0,0 +1,62 @@
55 +<?xml version="1.0" encoding="UTF-8"?>
56 +<glade-interface>
57 + <!-- interface-requires gtk+ 2.6 -->
58 + <!-- interface-naming-policy toplevel-contextual -->
59 + <widget class="GtkWindow" id="window">
60 + <property name="can_focus">False</property>
61 + <property name="border_width">5</property>
62 + <property name="title" translatable="yes">Date/Time Properties</property>
63 + <property name="default_width">400</property>
64 + <property name="default_height">550</property>
65 + <child>
66 + <widget class="GtkVBox" id="tz_vbox">
67 + <property name="visible">True</property>
68 + <property name="can_focus">False</property>
69 + <property name="border_width">6</property>
70 + <property name="spacing">5</property>
71 + <child>
72 + <widget class="GtkLabel" id="tzActionLabel">
73 + <property name="visible">True</property>
74 + <property name="can_focus">False</property>
75 + <property name="xalign">0</property>
76 + <property name="label" translatable="yes">Please select the nearest city in your time zone:</property>
77 + </widget>
78 + <packing>
79 + <property name="expand">False</property>
80 + <property name="fill">False</property>
81 + <property name="position">0</property>
82 + </packing>
83 + </child>
84 + <child>
85 + <widget class="Custom" id="tz">
86 + <property name="visible">True</property>
87 + <property name="can_focus">False</property>
88 + </widget>
89 + <packing>
90 + <property name="expand">True</property>
91 + <property name="fill">True</property>
92 + <property name="position">1</property>
93 + </packing>
94 + </child>
95 + <child>
96 + <widget class="GtkCheckButton" id="utc_check">
97 + <property name="label" translatable="yes">_System clock uses UTC</property>
98 + <property name="visible">True</property>
99 + <property name="can_focus">True</property>
100 + <property name="receives_default">False</property>
101 + <property name="has_tooltip">True</property>
102 + <property name="tooltip" translatable="yes" comments="The times are called &quot;winter time&quot; and &quot;summer time&quot; 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>
103 + <property name="use_action_appearance">False</property>
104 + <property name="use_underline">True</property>
105 + <property name="draw_indicator">True</property>
106 + </widget>
107 + <packing>
108 + <property name="expand">False</property>
109 + <property name="fill">False</property>
110 + <property name="position">2</property>
111 + </packing>
112 + </child>
113 + </widget>
114 + </child>
115 + </widget>
116 +</glade-interface>