[eog/wip/fix-rtl-nav-shortcuts] help-overlay: Fix next/previous image shortcuts for RTL languages
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog/wip/fix-rtl-nav-shortcuts] help-overlay: Fix next/previous image shortcuts for RTL languages
- Date: Tue, 31 Mar 2020 20:14:18 +0000 (UTC)
commit fda521c07c9144d30c1ce1fb356ec277d158bfce
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. Reflect this 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..49943cb8 100644
--- a/data/help-overlay.ui
+++ b/data/help-overlay.ui
@@ -167,6 +167,7 @@
<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>
@@ -174,7 +175,24 @@
<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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]