Merge ~3v1n0/ubuntu/+source/gnome-shell:ubuntu/master into ~ubuntu-desktop/ubuntu/+source/gnome-shell:ubuntu/master

Proposed by Marco Trevisan (Treviño)
Status: Rejected
Rejected by: Iain Lane
Proposed branch: ~3v1n0/ubuntu/+source/gnome-shell:ubuntu/master
Merge into: ~ubuntu-desktop/ubuntu/+source/gnome-shell:ubuntu/master
Diff against target: 117 lines (+87/-0)
4 files modified
debian/changelog (+9/-0)
debian/patches/dialog-Really-set-ellipsize-mode-in-subtitle-and-body.patch (+38/-0)
debian/patches/series (+2/-0)
debian/patches/worldClocks-Ignore-locations-with-unknown-timezone.patch (+38/-0)
Reviewer Review Type Date Requested Status
Ubuntu Desktop Pending
Review via email: mp+366941@code.launchpad.net
To post a comment you must log in.
3b931f7... by Marco Trevisan (Treviño)

debian/patches: Don't crash if world clocks are enabled

Fixes LP: #1827953

Revision history for this message
Iain Lane (laney) wrote :

thanks Marco - just saw this but we'll get it via 3.32.2 now :>

Unmerged commits

3b931f7... by Marco Trevisan (Treviño)

debian/patches: Don't crash if world clocks are enabled

Fixes LP: #1827953

8ac798a... by Marco Trevisan (Treviño)

debian/patches: Really set ellipsize mode in subtitle and body

Fixes LP: #1809788

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 53e0239..e5dfea4 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,12 @@
6+gnome-shell (3.32.1-1ubuntu2) UNRELEASED; urgency=medium
7+
8+ * d/p/dialog-Really-set-ellipsize-mode-in-subtitle-and-body.patch:
9+ - Really set ellipsize mode in subtitle and body (LP: #1809788)
10+ * d/p/worldClocks-Ignore-locations-with-unknown-timezone.patch:
11+ - Don't crash if world clocks are enabled (LP: #1827953)
12+
13+ -- Marco Trevisan (Treviño) <marco@ubuntu.com> Fri, 03 May 2019 16:49:55 -0500
14+
15 gnome-shell (3.32.1-1ubuntu1) eoan; urgency=medium
16
17 [ Marco Trevisan (Treviño) ]
18diff --git a/debian/patches/dialog-Really-set-ellipsize-mode-in-subtitle-and-body.patch b/debian/patches/dialog-Really-set-ellipsize-mode-in-subtitle-and-body.patch
19new file mode 100644
20index 0000000..07395fb
21--- /dev/null
22+++ b/debian/patches/dialog-Really-set-ellipsize-mode-in-subtitle-and-body.patch
23@@ -0,0 +1,38 @@
24+From: =?utf-8?b?Ik1hcmNvIFRyZXZpc2FuIChUcmV2acOxbyki?= <mail@3v1n0.net>
25+Date: Fri, 3 May 2019 15:27:13 -0500
26+Subject: dialog: Really set ellipsize mode in subtitle and body
27+
28+Dialog's subtitle or body could not be properly wrapped, while it's ellipsized
29+when the text's width doesn't exceed the container size.
30+
31+Clutter text has an `ellipsize` property, however in dialog's subtitle and body
32+we have been setting the `ellipsize-mode` property to Pango.EllipsizeMode.NONE
33+that is not present in the underlying GObject.
34+
35+Not being an error in javascript, gjs didn't warn us about this, while at the
36+same time the St.Label's default Pango.EllipsizeMode.END was used.
37+
38+Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/922
39+
40+https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/531
41+
42+Origin: https://gitlab.gnome.org/GNOME/gnome-shell/commit/3121c9aa
43+Bug-Ubuntu: https://bugs.launchpad.net/oem-priority/+bug/1809788
44+Applied: 3.33.1
45+---
46+ js/ui/dialog.js | 2 +-
47+ 1 file changed, 1 insertion(+), 1 deletion(-)
48+
49+diff --git a/js/ui/dialog.js b/js/ui/dialog.js
50+index 809acff..41a0763 100644
51+--- a/js/ui/dialog.js
52++++ b/js/ui/dialog.js
53+@@ -175,7 +175,7 @@ var MessageDialogContent = GObject.registerClass({
54+ this[`_${prop}`].add_style_class_name(`message-dialog-${prop}`);
55+ });
56+
57+- let textProps = { ellipsize_mode: Pango.EllipsizeMode.NONE,
58++ let textProps = { ellipsize: Pango.EllipsizeMode.NONE,
59+ line_wrap: true };
60+ Object.assign(this._subtitle.clutter_text, textProps);
61+ Object.assign(this._body.clutter_text, textProps);
62diff --git a/debian/patches/series b/debian/patches/series
63index adbf4d0..b32b5e4 100644
64--- a/debian/patches/series
65+++ b/debian/patches/series
66@@ -15,5 +15,7 @@ sessionMode-add-support-for-debugFlags-parameter.patch
67 st-scroll-view-Handle-the-case-where-scrollbars-are-NULL.patch
68 st-scroll-view-Remove-scrollbars-references-on-dispose.patch
69 magnifier-Show-cursor-when-magnifier-is-enabled-and-scale.patch
70+dialog-Really-set-ellipsize-mode-in-subtitle-and-body.patch
71+worldClocks-Ignore-locations-with-unknown-timezone.patch
72 ubuntu/search-call-XUbuntuCancel-method-on-providers-when-no-dat.patch
73 ubuntu/resolve_alternate_theme_path.patch
74diff --git a/debian/patches/worldClocks-Ignore-locations-with-unknown-timezone.patch b/debian/patches/worldClocks-Ignore-locations-with-unknown-timezone.patch
75new file mode 100644
76index 0000000..26fc791
77--- /dev/null
78+++ b/debian/patches/worldClocks-Ignore-locations-with-unknown-timezone.patch
79@@ -0,0 +1,38 @@
80+From: =?utf-8?q?Florian_M=C3=BCllner?= <fmuellner@gnome.org>
81+Date: Sun, 28 Apr 2019 12:33:41 +0200
82+Subject: worldClocks: Ignore locations with unknown timezone
83+
84+We currently assume that every location has an associated timezone.
85+While this is sound in the real world, in practise it depends on
86+whether or not libgweather can find a corresponding timezone DB
87+entry.
88+
89+This used to be a fringe case, but has become more likely when commit
90+https://gitlab.gnome.org/GNOME/libgweather/commit/d7682676ac9 moved
91+weather stations from cities to countries - the station itself is un-
92+likely to have a timezone entry, and the country may be part of more
93+than a single timezone.
94+
95+It would be good for libgweather to return a timezone for those
96+locations again, but we should defend against the case anyway.
97+We cannot tell what time it is at a particular location without
98+knowing the timezone, so simply filter them out.
99+
100+https://gitlab.gnome.org/GNOME/gnome-shell/issues/1062
101+---
102+ js/ui/dateMenu.js | 2 +-
103+ 1 file changed, 1 insertion(+), 1 deletion(-)
104+
105+diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
106+index fb32fbb..06ea2b5 100644
107+--- a/js/ui/dateMenu.js
108++++ b/js/ui/dateMenu.js
109+@@ -118,7 +118,7 @@ var WorldClocksSection = class WorldClocksSection {
110+ if (!clocks[i].location)
111+ continue;
112+ let l = world.deserialize(clocks[i].location);
113+- if (l)
114++ if (l && l.get_timezone() != null)
115+ this._locations.push({ location: l });
116+ }
117+

Subscribers

People subscribed via source and target branches