[gnome-shell] dateMenu: Don't ellipsize world clock time/tz
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] dateMenu: Don't ellipsize world clock time/tz
- Date: Tue, 17 Mar 2020 13:53:10 +0000 (UTC)
commit b80115dc6e368e88629d0ced75cd5cae28c6d9bc
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Mar 13 15:37:42 2020 +0100
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
js/ui/dateMenu.js | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index c6c1b5bb5a..cdbe0ac415 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]