Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
L
live-installer
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
live-installer
Commits
dda37c40
Kaydet (Commit)
dda37c40
authored
Mar 05, 2020
tarafından
Michael Webster
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
timezones: Move the center of the label to the target location instead
of the upper left corner.
üst
76255cc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
timezones.py
usr/lib/live-installer/timezones.py
+11
-4
No files found.
usr/lib/live-installer/timezones.py
Dosyayı görüntüle @
dda37c40
...
...
@@ -119,7 +119,6 @@ def build_timezones(_installer):
def
_build_cont_menu
(
d
):
menu
=
Gtk
.
Menu
()
for
k
in
sorted
(
d
):
print
(
k
)
v
=
d
[
k
]
item
=
Gtk
.
MenuItem
(
k
.
replace
(
"_"
,
" "
))
item
.
show
()
...
...
@@ -239,9 +238,17 @@ def select_timezone(tz):
update_local_time_label
()
# Move the current time label to appropriate position
x
,
y
=
tz
.
x
,
tz
.
y
if
x
+
time_label_box
.
get_allocation
()
.
width
+
4
>
MAP_SIZE
[
0
]:
x
=
MAP_SIZE
[
0
]
-
time_label_box
.
get_allocation
()
.
width
if
y
+
time_label_box
.
get_allocation
()
.
height
+
4
>
MAP_SIZE
[
1
]:
y
=
MAP_SIZE
[
1
]
-
time_label_box
.
get_allocation
()
.
height
a
=
time_label_box
.
get_allocation
()
width
=
a
.
width
height
=
a
.
height
x
=
tz
.
x
-
(
width
/
2
)
y
=
tz
.
y
-
(
height
/
2
)
if
x
<
0
:
x
=
0
if
y
<
0
:
y
=
0
if
(
x
+
width
)
>
MAP_SIZE
[
0
]:
x
=
MAP_SIZE
[
0
]
-
width
if
(
y
+
height
)
>
MAP_SIZE
[
1
]:
y
=
MAP_SIZE
[
1
]
-
height
installer
.
builder
.
get_object
(
"fixed_timezones"
)
.
move
(
time_label_box
,
x
,
y
)
def
_get_x_offset
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment