[gnome-maps] placeView: Various fixes
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] placeView: Various fixes
- Date: Tue, 9 Feb 2021 20:56:57 +0000 (UTC)
commit 93f25e15c8f2009ef861c1641b25ba6f3389cef9
Author: James Westman <james flyingpimonster net>
Date: Mon Jan 25 11:25:06 2021 -0600
placeView: Various fixes
- Wrap the address and opening hours labels
- Fix Wikipedia links when there is a special character in the URL
data/ui/place-view.ui | 1 +
src/placeView.js | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/data/ui/place-view.ui b/data/ui/place-view.ui
index 4c9a05b0..cbfbd531 100644
--- a/data/ui/place-view.ui
+++ b/data/ui/place-view.ui
@@ -84,6 +84,7 @@
<property name="halign">start</property>
<property name="xalign">0</property>
<property name="use_markup">True</property>
+ <property name="wrap">True</property>
</object>
</child>
<child>
diff --git a/src/placeView.js b/src/placeView.js
index f3287d5a..36dd10af 100644
--- a/src/placeView.js
+++ b/src/placeView.js
@@ -469,6 +469,7 @@ var PlaceView = GObject.registerClass({
visible: true,
xalign: 0,
hexpand: false,
+ wrap: true,
halign: Gtk.Align.FILL });
if (j === 1) {
@@ -550,7 +551,7 @@ var PlaceView = GObject.registerClass({
/* Translators: This is the text for the "Wikipedia" link at the end
of summaries */
- this._wikipediaLabel.label = `${text} <a href="${link}" title="${tooltipText}">${ _("Wikipedia")
}</a>`;
+ this._wikipediaLabel.label = `${text} <a href="${uri}" title="${tooltipText}">${ _("Wikipedia")
}</a>`;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]