summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2019-07-25 15:52:09 +0200
committerVictor Kareh <[email protected]>2019-07-25 11:10:20 -0400
commitce357c1f3db54ca40f7b53219fc49d304920f408 (patch)
tree740413d04b8d777645cb70be8624d5d865f1df1b
parent5a48f4f5a6172248fbb8462eba0d4498983ca29c (diff)
downloadmate-power-manager-ce357c1f3db54ca40f7b53219fc49d304920f408.tar.bz2
mate-power-manager-ce357c1f3db54ca40f7b53219fc49d304920f408.tar.xz
prefs: Fix mnemonic relationships
This fixes navigation with mnemonic keys as well as giving proper a11y context for the labeled widgets. Fixes #292.
-rw-r--r--data/gpm-prefs.ui13
1 files changed, 13 insertions, 0 deletions
diff --git a/data/gpm-prefs.ui b/data/gpm-prefs.ui
index 24141ba..7ee19a7 100644
--- a/data/gpm-prefs.ui
+++ b/data/gpm-prefs.ui
@@ -110,6 +110,7 @@
<property name="xalign">0</property>
<property name="label" translatable="yes">Put computer to _sleep when inactive for:</property>
<property name="use_underline">True</property>
+ <property name="mnemonic_widget">combobox_ac_computer</property>
</object>
<packing>
<property name="expand">False</property>
@@ -142,6 +143,7 @@
<property name="xalign">0</property>
<property name="label" translatable="yes">When laptop lid is cl_osed:</property>
<property name="use_underline">True</property>
+ <property name="mnemonic_widget">combobox_ac_lid</property>
</object>
<packing>
<property name="expand">False</property>
@@ -213,6 +215,7 @@
<property name="xalign">0</property>
<property name="label" translatable="yes">Put _display to sleep when inactive for:</property>
<property name="use_underline">True</property>
+ <property name="mnemonic_widget">combobox_ac_display</property>
</object>
<packing>
<property name="expand">False</property>
@@ -350,6 +353,7 @@
<property name="xalign">0</property>
<property name="label" translatable="yes">Put computer to _sleep when inactive for:</property>
<property name="use_underline">True</property>
+ <property name="mnemonic_widget">combobox_battery_computer</property>
</object>
<packing>
<property name="expand">False</property>
@@ -382,6 +386,7 @@
<property name="xalign">0</property>
<property name="label" translatable="yes">When laptop lid is cl_osed:</property>
<property name="use_underline">True</property>
+ <property name="mnemonic_widget">combobox_battery_lid</property>
</object>
<packing>
<property name="expand">False</property>
@@ -412,6 +417,7 @@
<property name="xalign">0</property>
<property name="label" translatable="yes">When battery po_wer is critically low:</property>
<property name="use_underline">True</property>
+ <property name="mnemonic_widget">combobox_battery_critical</property>
</object>
<packing>
<property name="expand">False</property>
@@ -483,6 +489,7 @@
<property name="xalign">0</property>
<property name="label" translatable="yes">Put _display to sleep when inactive for:</property>
<property name="use_underline">True</property>
+ <property name="mnemonic_widget">combobox_battery_display</property>
</object>
<packing>
<property name="expand">False</property>
@@ -604,6 +611,7 @@
<property name="xalign">0</property>
<property name="label" translatable="yes">Put computer to _sleep when inactive for:</property>
<property name="use_underline">True</property>
+ <property name="mnemonic_widget">combobox_ups_computer</property>
</object>
<packing>
<property name="expand">False</property>
@@ -636,6 +644,7 @@
<property name="xalign">0</property>
<property name="label" translatable="yes">When UPS power is l_ow:</property>
<property name="use_underline">True</property>
+ <property name="mnemonic_widget">combobox_ups_low</property>
</object>
<packing>
<property name="expand">False</property>
@@ -666,6 +675,7 @@
<property name="xalign">0</property>
<property name="label" translatable="yes">When UPS power is _critically low:</property>
<property name="use_underline">True</property>
+ <property name="mnemonic_widget">combobox_ups_critical</property>
</object>
<packing>
<property name="expand">False</property>
@@ -737,6 +747,7 @@
<property name="xalign">0</property>
<property name="label" translatable="yes">Put _display to sleep when inactive for:</property>
<property name="use_underline">True</property>
+ <property name="mnemonic_widget">combobox_ups_display</property>
</object>
<packing>
<property name="expand">False</property>
@@ -828,6 +839,7 @@
<property name="xalign">0</property>
<property name="label" translatable="yes">When the power _button is pressed:</property>
<property name="use_underline">True</property>
+ <property name="mnemonic_widget">combobox_general_power</property>
</object>
<packing>
<property name="expand">False</property>
@@ -860,6 +872,7 @@
<property name="xalign">0</property>
<property name="label" translatable="yes">When the _suspend button is pressed:</property>
<property name="use_underline">True</property>
+ <property name="mnemonic_widget">combobox_general_suspend</property>
</object>
<packing>
<property name="expand">False</property>