Bläddra i källkod

Added access keys to the Sink screen

Now keyboard navigation is more straightforward than tabbing between all
the widgets: you can just use Alt+[letter] to activate any control you
want!
Clara Hobbs 6 år sedan
förälder
incheckning
3b6bde9550
1 ändrade filer med 14 tillägg och 5 borttagningar
  1. 14
    5
      data/pd-buddy-gtk.ui

+ 14
- 5
data/pd-buddy-gtk.ui Visa fil

185
                                                 <property name="can_focus">False</property>
185
                                                 <property name="can_focus">False</property>
186
                                                 <property name="halign">start</property>
186
                                                 <property name="halign">start</property>
187
                                                 <property name="hexpand">True</property>
187
                                                 <property name="hexpand">True</property>
188
-                                                <property name="label" translatable="yes">Voltage</property>
188
+                                                <property name="label" translatable="yes">_Voltage</property>
189
+                                                <property name="use_underline">True</property>
189
                                                 <property name="justify">right</property>
190
                                                 <property name="justify">right</property>
191
+                                                <property name="mnemonic_widget">voltage-combobox</property>
190
                                               </object>
192
                                               </object>
191
                                               <packing>
193
                                               <packing>
192
                                                 <property name="left_attach">0</property>
194
                                                 <property name="left_attach">0</property>
249
                                                 <property name="can_focus">False</property>
251
                                                 <property name="can_focus">False</property>
250
                                                 <property name="halign">start</property>
252
                                                 <property name="halign">start</property>
251
                                                 <property name="hexpand">True</property>
253
                                                 <property name="hexpand">True</property>
252
-                                                <property name="label" translatable="yes">Current</property>
254
+                                                <property name="label" translatable="yes">_Current</property>
255
+                                                <property name="use_underline">True</property>
253
                                                 <property name="justify">right</property>
256
                                                 <property name="justify">right</property>
257
+                                                <property name="mnemonic_widget">current-spinbutton</property>
254
                                               </object>
258
                                               </object>
255
                                               <packing>
259
                                               <packing>
256
                                                 <property name="left_attach">0</property>
260
                                                 <property name="left_attach">0</property>
327
                                                 <property name="layout_style">expand</property>
331
                                                 <property name="layout_style">expand</property>
328
                                                 <child>
332
                                                 <child>
329
                                                   <object class="GtkToggleButton" id="giveback-toggle">
333
                                                   <object class="GtkToggleButton" id="giveback-toggle">
330
-                                                    <property name="label" translatable="yes">GiveBack</property>
334
+                                                    <property name="label" translatable="yes">_GiveBack</property>
331
                                                     <property name="visible">True</property>
335
                                                     <property name="visible">True</property>
332
                                                     <property name="can_focus">True</property>
336
                                                     <property name="can_focus">True</property>
333
                                                     <property name="receives_default">True</property>
337
                                                     <property name="receives_default">True</property>
338
+                                                    <property name="use_underline">True</property>
334
                                                     <signal name="toggled" handler="on_giveback_toggle_toggled" swapped="no"/>
339
                                                     <signal name="toggled" handler="on_giveback_toggle_toggled" swapped="no"/>
335
                                                   </object>
340
                                                   </object>
336
                                                   <packing>
341
                                                   <packing>
411
                                                 <property name="can_focus">False</property>
416
                                                 <property name="can_focus">False</property>
412
                                                 <property name="halign">start</property>
417
                                                 <property name="halign">start</property>
413
                                                 <property name="hexpand">True</property>
418
                                                 <property name="hexpand">True</property>
414
-                                                <property name="label" translatable="yes">Output</property>
419
+                                                <property name="label" translatable="yes">_Output</property>
420
+                                                <property name="use_underline">True</property>
415
                                                 <property name="justify">right</property>
421
                                                 <property name="justify">right</property>
422
+                                                <property name="mnemonic_widget">output-switch</property>
416
                                               </object>
423
                                               </object>
417
                                               <packing>
424
                                               <packing>
418
                                                 <property name="left_attach">0</property>
425
                                                 <property name="left_attach">0</property>
455
                                                 <property name="visible">True</property>
462
                                                 <property name="visible">True</property>
456
                                                 <property name="can_focus">False</property>
463
                                                 <property name="can_focus">False</property>
457
                                                 <property name="halign">start</property>
464
                                                 <property name="halign">start</property>
458
-                                                <property name="label" translatable="yes">Source Capabilities</property>
465
+                                                <property name="label" translatable="yes">_Source Capabilities</property>
466
+                                                <property name="use_underline">True</property>
459
                                                 <property name="justify">right</property>
467
                                                 <property name="justify">right</property>
468
+                                                <property name="mnemonic_widget">source-cap-row</property>
460
                                               </object>
469
                                               </object>
461
                                               <packing>
470
                                               <packing>
462
                                                 <property name="left_attach">0</property>
471
                                                 <property name="left_attach">0</property>

Laddar…
Avbryt
Spara