gnome-control-center/panels/keyboard/cc-xkb-modifier-dialog.ui
Automeris naranja 735e12ada6 xkb-modifier-dialog: Use AdwActionRow to show the key options
Ditch GtkListBox and use AdwActionRow to display
the key options, adding them directly to the
preferences group.

This fixes two issues:
- Orca not reading the key options and their states
- The xkb-modifier-dialog rows looking inconsistent
with other rows with radio buttons, such as the ones
from the Multitasking and Keyboard panels

Also, remove visible=true from the AdwActionRow,
since GTK4 shows all widgets by default.
2024-01-25 12:58:00 +00:00

41 lines
1.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcXkbModifierDialog" parent="AdwWindow">
<property name="modal">True</property>
<property name="default_width">500</property>
<property name="default_height">600</property>
<property name="width_request">360</property>
<property name="height_request">294</property>
<property name="content">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar"/>
</child>
<property name="content">
<object class="AdwPreferencesPage" id="xkb_modifier_page">
<child>
<object class="AdwPreferencesGroup" id="switch_group">
<child>
<object class="AdwActionRow" id="switch_row">
<property name="activatable">False</property>
<property name="selectable">False</property>
<property name="activatable-widget">enabled_switch</property>
<child>
<object class="GtkSwitch" id="enabled_switch">
<property name="valign">center</property>
<signal name="state-set" handler="enable_switch_changed_cb" object="CcXkbModifierDialog" swapped="yes"/>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup" id="options_group"/>
</child>
</object>
</property>
</object>
</property>
</template>
</interface>