gnome-control-center/panels/keyboard/cc-xkb-modifier-dialog.ui
Ian Douglas Scott 8b7eac0a7b keyboard: replace CcAltCharsKeyDialog with a generic XkbModifierDialog
Previously, there were multiple redundant lists of possible values for
this setting. This uses one struct to define not only all the possible
values, but also anything specific to the alternate characters key, so
this can be used for other modifiers.

This also changes the style of the dialog to use a GtkListBox.
2020-10-19 04:00:32 +00:00

82 lines
3.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcXkbModifierDialog" parent="GtkDialog">
<property name="modal">True</property>
<property name="can_focus">False</property>
<property name="resizable">False</property>
<property name="default_width">500</property>
<property name="type_hint">dialog</property>
<signal name="delete-event" handler="gtk_widget_hide_on_delete" />
<child internal-child="vbox">
<object class="GtkBox">
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin">18</property>
<property name="spacing">18</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="description_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_top">6</property>
<property name="wrap">True</property>
<property name="width_chars">40</property>
<property name="max_width_chars">40</property>
<property name="xalign">0</property>
</object>
</child>
<child>
<object class="GtkListBox" id="switch_listbox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<style>
<class name="frame"/>
</style>
<child>
<object class="HdyActionRow" id="switch_row">
<property name="visible">True</property>
<property name="activatable">False</property>
<property name="selectable">False</property>
<child>
<object class="GtkSwitch" id="enabled_switch">
<property name="visible">True</property>
<property name="valign">center</property>
<signal name="state-set" handler="enable_switch_changed_cb" object="CcXkbModifierDialog" swapped="no"/>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkListBox" id="listbox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<style>
<class name="frame"/>
</style>
</object>
</child>
</object>
</child>
</object>
</child>
<child internal-child="headerbar">
<object class="GtkHeaderBar">
<property name="can_focus">False</property>
<property name="show_close_button">True</property>
</object>
</child>
</template>
</interface>