Feature: Add move up and down buttons to make the prefs keyboard access.

Don't use CONSTRUCT_ONLY anymore to be able to use private properties
(or any properties at all it seems).
This commit is contained in:
June 2023-10-04 03:28:59 +02:00
commit 9b7ab0614c
No known key found for this signature in database
GPG key ID: 094C2AC34192FA11
6 changed files with 219 additions and 34 deletions

View file

@ -42,6 +42,16 @@
</child>
</template>
<menu id="optionsMenuModel">
<section>
<item>
<attribute name="label">Move Up</attribute>
<attribute name="action">row.move-up</attribute>
</item>
<item>
<attribute name="label">Move Down</attribute>
<attribute name="action">row.move-down</attribute>
</item>
</section>
<section>
<item>
<attribute name="label">Forget</attribute>

View file

@ -13,8 +13,9 @@
</object>
</child>
<child>
<object class="PrefsBoxOrderListBox">
<object class="PrefsBoxOrderListBox" id="left-box-order-list-box">
<property name="box-order">left-box-order</property>
<signal name="row-move" handler="onRowMove"/>
</object>
</child>
<child>
@ -26,8 +27,9 @@
</object>
</child>
<child>
<object class="PrefsBoxOrderListBox">
<object class="PrefsBoxOrderListBox" id="center-box-order-list-box">
<property name="box-order">center-box-order</property>
<signal name="row-move" handler="onRowMove"/>
</object>
</child>
<child>
@ -39,8 +41,9 @@
</object>
</child>
<child>
<object class="PrefsBoxOrderListBox">
<object class="PrefsBoxOrderListBox" id="right-box-order-list-box">
<property name="box-order">right-box-order</property>
<signal name="row-move" handler="onRowMove"/>
</object>
</child>
</object>