[gnome-maps/wip/mlundblad/disable-maptype-shortcuts: 1/2] help-overlay: Hide shortcuts for switching map type




commit 8b277f002af283319147aa0f50c6cd814bfaff19
Author: Marcus Lundblad <ml update uu se>
Date:   Tue Jun 1 22:20:15 2021 +0200

    help-overlay: Hide shortcuts for switching map type
    
    As we have disabled the aerial tiles, hide these
    shortcuts from the overlay. But keep the definitions
    so we can keep the strings translated when enabling
    these when we get aerial back.

 data/ui/help-overlay.ui | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/data/ui/help-overlay.ui b/data/ui/help-overlay.ui
index c2056092..e427db71 100644
--- a/data/ui/help-overlay.ui
+++ b/data/ui/help-overlay.ui
@@ -88,16 +88,19 @@
                 <property name="accelerator">&lt;Primary&gt;L</property>
               </object>
             </child>
+            <!-- for now don't show the shortcuts for map type switching, since
+                 the aerial tiles are disabled for now, keep it here to avoid
+                 loosing the translation if/when we enable them again -->
             <child>
-              <object class="GtkShortcutsShortcut">
-                <property name="visible">1</property>
+              <object class="GtkShortcutsShortcut" id="streetShortcut">
+                <property name="visible">0</property>
                 <property name="title" translatable="yes" context="shortcut window">Switch to street 
view</property>
                 <property name="accelerator">&lt;Primary&gt;1</property>
               </object>
             </child>
             <child>
-              <object class="GtkShortcutsShortcut">
-                <property name="visible">1</property>
+              <object class="GtkShortcutsShortcut" id="aerialShortcut">
+                <property name="visible">0</property>
                 <property name="title" translatable="yes" context="shortcut window">Switch to aerial 
view</property>
                 <property name="accelerator">&lt;Primary&gt;2</property>
               </object>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]