summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhalid Abu Shawarib <khalid.shawarib@gmail.com>2023-04-26 17:21:53 +0300
committerCorey Berla <corey@berla.me>2023-05-09 21:24:30 +0000
commit44faea2b67fc7bb34d5438050ff537a4899b3cfd (patch)
treebc7e9b3d09ef9a64d01dc654eabf1962044283d1
parente76b84b8ba03f47d02f4ea56582e2e267ef73a92 (diff)
downloadnautilus-44faea2b67fc7bb34d5438050ff537a4899b3cfd.tar.gz
help-overlay: Use proper arrow directions for RTL
Display proper shortcuts arrow directions in the shortcuts window for navigation and tree view expand/collapse.
-rw-r--r--src/resources/gtk/help-overlay.ui32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/resources/gtk/help-overlay.ui b/src/resources/gtk/help-overlay.ui
index c1fd4b4f2..b74a66cc8 100644
--- a/src/resources/gtk/help-overlay.ui
+++ b/src/resources/gtk/help-overlay.ui
@@ -160,12 +160,28 @@
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Go back</property>
<property name="accelerator">&lt;alt&gt;Left</property>
+ <property name="direction">GTK_TEXT_DIR_LTR</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="title" translatable="yes" context="shortcut window">Go back</property>
+ <property name="accelerator">&lt;alt&gt;Right</property>
+ <property name="direction">GTK_TEXT_DIR_RTL</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Go forward</property>
<property name="accelerator">&lt;alt&gt;Right</property>
+ <property name="direction">GTK_TEXT_DIR_LTR</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="title" translatable="yes" context="shortcut window">Go forward</property>
+ <property name="accelerator">&lt;alt&gt;Left</property>
+ <property name="direction">GTK_TEXT_DIR_RTL</property>
</object>
</child>
<child>
@@ -267,12 +283,28 @@
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Expand folder</property>
<property name="accelerator">Right</property>
+ <property name="direction">GTK_TEXT_DIR_LTR</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="title" translatable="yes" context="shortcut window">Expand folder</property>
+ <property name="accelerator">Left</property>
+ <property name="direction">GTK_TEXT_DIR_RTL</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Collapse folder</property>
<property name="accelerator">Left</property>
+ <property name="direction">GTK_TEXT_DIR_LTR</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="title" translatable="yes" context="shortcut window">Collapse folder</property>
+ <property name="accelerator">Right</property>
+ <property name="direction">GTK_TEXT_DIR_RTL</property>
</object>
</child>
</object>