[gnome-maps/wip/mlundblad/transit-service-discovery: 15/17] sidebar: Rename attribution link stack children
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/transit-service-discovery: 15/17] sidebar: Rename attribution link stack children
- Date: Mon, 2 Sep 2019 19:47:58 +0000 (UTC)
commit 545585201a2777e4814c4d8be8de41909416b134
Author: Marcus Lundblad <ml update uu se>
Date: Sun Sep 1 09:57:22 2019 +0200
sidebar: Rename attribution link stack children
Rename the stack children, since the transit-specific
one is not limited to OpenTripPlanner now.
data/ui/sidebar.ui | 8 ++++----
src/sidebar.js | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/data/ui/sidebar.ui b/data/ui/sidebar.ui
index b14866b..015b907 100644
--- a/data/ui/sidebar.ui
+++ b/data/ui/sidebar.ui
@@ -271,7 +271,7 @@
<child>
<object class="GtkStack" id="linkButtonStack">
<child>
- <object class="GtkLinkButton" id="graphHopperLinkButton">
+ <object class="GtkLinkButton">
<property name="label" translatable="yes">Route search by GraphHopper</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -284,7 +284,7 @@
</style>
</object>
<packing>
- <property name="name">graphHopper</property>
+ <property name="name">turnByTurn</property>
</packing>
</child>
<child>
@@ -292,7 +292,7 @@
<property name="visible">True</property>
<property name="halign">GTK_ALIGN_END</property>
<child>
- <object class="GtkLinkButton" id="openTripPlannerLinkButton">
+ <object class="GtkLinkButton">
<property name="label" translatable="yes">Route search by OpenTripPlanner</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -346,7 +346,7 @@
</child>
</object>
<packing>
- <property name="name">openTripPlanner</property>
+ <property name="name">transit</property>
</packing>
</child>
</object>
diff --git a/src/sidebar.js b/src/sidebar.js
index 1ab1acf..2edc324 100644
--- a/src/sidebar.js
+++ b/src/sidebar.js
@@ -147,12 +147,12 @@ var Sidebar = GObject.registerClass({
_switchRoutingMode(mode) {
if (mode === RouteQuery.Transportation.TRANSIT) {
Application.routingDelegator.useTransit = true;
- this._linkButtonStack.visible_child_name = 'openTripPlanner';
+ this._linkButtonStack.visible_child_name = 'transit';
this._transitOptionsPanel.reset();
this._transitRevealer.reveal_child = true;
} else {
Application.routingDelegator.useTransit = false;
- this._linkButtonStack.visible_child_name = 'graphHopper';
+ this._linkButtonStack.visible_child_name = 'turnByTurn';
this._transitRevealer.reveal_child = false;
Application.routingDelegator.transitRouter.plan.deselectItinerary();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]