[gnome-maps/wip/mlundblad/transit-service-discovery: 2/4] sidebar: Rename attribution link stack children



commit 449c05a5c0298d079dbe4bdf5a9716a639efb80a
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]