[gnome-shell] dateMenu: Don't ellipsize forecast times and temps
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] dateMenu: Don't ellipsize forecast times and temps
- Date: Sat, 23 Nov 2019 00:23:36 +0000 (UTC)
commit 95f388b9a79ebfd492de929dcc17d4440024baee
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Nov 20 23:15:55 2019 +0100
dateMenu: Don't ellipsize forecast times and temps
While those should be concise enough to fit, they may not where
temperatures drop into double-digit negatives. It seems better
to accept some awkward horizontal scrolling in that case than
shorten relevant information.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/1926
js/ui/dateMenu.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index 2f7a95f448..af0984697a 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -2,7 +2,7 @@
/* exported DateMenuButton */
const { Clutter, Gio, GLib, GnomeDesktop,
- GObject, GWeather, Shell, St } = imports.gi;
+ GObject, GWeather, Pango, Shell, St } = imports.gi;
const Util = imports.misc.util;
const Main = imports.ui.main;
@@ -366,6 +366,9 @@ class WeatherSection extends St.Button {
x_align: Clutter.ActorAlign.CENTER,
});
+ temp.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
+ time.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
+
layout.attach(icon, col, 0, 1, 1);
layout.attach(temp, col, 1, 1, 1);
layout.attach(time, col, 2, 1, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]