[eog/wip/fix-rtl-nav-shortcuts] help-overlay: Fix next/previous image shortcuts for RTL languages



commit 70c88382fc1318641d584d67e6bc4595a6755a34
Author: Felix Riemann <friemann gnome org>
Date:   Tue Mar 31 21:23:47 2020 +0200

    help-overlay: Fix next/previous image shortcuts for RTL languages
    
    In RTL locales the keyboard shortcuts for switching to next and
    previous image are swapped as well. This swaps them in the
    shortcuts window as well. Fixes #116.

 data/help-overlay.ui | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
---
diff --git a/data/help-overlay.ui b/data/help-overlay.ui
index 8035ab14..c3f0edca 100644
--- a/data/help-overlay.ui
+++ b/data/help-overlay.ui
@@ -167,17 +167,35 @@
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
+                <property name="direction">GTK_TEXT_DIR_LTR</property>
                 <property name="accelerator">Left</property>
                 <property name="title" translatable="yes" context="shortcut window">Go to the previous image 
in the folder</property>
               </object>
             </child>
+           <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">1</property>
+                <property name="direction">GTK_TEXT_DIR_RTL</property>
+                <property name="accelerator">Right</property>
+                <property name="title" translatable="yes" context="shortcut window">Go to the previous image 
in the folder</property>
+              </object>
+            </child>
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
+                <property name="direction">GTK_TEXT_DIR_LTR</property>
                 <property name="accelerator">Right</property>
                 <property name="title" translatable="yes" context="shortcut window">Go to the next image in 
the folder</property>
               </object>
             </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">1</property>
+                <property name="direction">GTK_TEXT_DIR_RTL</property>
+                <property name="accelerator">Left</property>
+                <property name="title" translatable="yes" context="shortcut window">Go to the next image in 
the folder</property>
+              </object>
+            </child>
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>


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