dateMenu: Don't ellipsize world clock time/tz

If we need to ellipsize, it should be the location name, not the time
or timezone offset.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1090
This commit is contained in:
Florian Müllner 2020-03-13 15:37:42 +01:00 committed by Georges Basile Stavracas Neto
parent 36b8dcbe07
commit b80115dc6e

View File

@ -189,6 +189,9 @@ class WorldClocksSection extends St.Button {
x_align: Clutter.ActorAlign.END,
y_align: Clutter.ActorAlign.CENTER });
time.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
tz.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
if (this._grid.text_direction == Clutter.TextDirection.RTL) {
layout.attach(tz, 0, i + 1, 1, 1);
layout.attach(time, 1, i + 1, 1, 1);