[eog] help-overlay: Fix next/previous image gestures for RTL languages



commit 29bcf1c1cd0bfafc75078d6470de513975455505
Author: Felix Riemann <friemann gnome org>
Date:   Thu Apr 16 19:45:36 2020 +0200

    help-overlay: Fix next/previous image gestures for RTL languages
    
    The gestures are similarily inverted as are the keyboard shortcuts.
    Fixes #116 and #121.

 data/help-overlay.ui | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
---
diff --git a/data/help-overlay.ui b/data/help-overlay.ui
index 25022b50..827828af 100644
--- a/data/help-overlay.ui
+++ b/data/help-overlay.ui
@@ -153,6 +153,7 @@
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
+                <property name="direction">GTK_TEXT_DIR_LTR</property>
                 <property name="title" translatable="yes" context="shortcut window">Go to the next image in 
the folder</property>
                 <property name="shortcut-type">gesture-two-finger-swipe-left</property>
               </object>
@@ -160,10 +161,27 @@
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
+                <property name="direction">GTK_TEXT_DIR_RTL</property>
+                <property name="title" translatable="yes" context="shortcut window">Go to the next image in 
the folder</property>
+                <property name="shortcut-type">gesture-two-finger-swipe-right</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">1</property>
+                <property name="direction">GTK_TEXT_DIR_LTR</property>
                 <property name="title" translatable="yes" context="shortcut window">Go to the previous image 
in the folder</property>
                 <property name="shortcut-type">gesture-two-finger-swipe-right</property>
               </object>
             </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">1</property>
+                <property name="direction">GTK_TEXT_DIR_RTL</property>
+                <property name="title" translatable="yes" context="shortcut window">Go to the previous image 
in the folder</property>
+                <property name="shortcut-type">gesture-two-finger-swipe-left</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]