gnome-control-center/panels/keyboard/cc-keyboard-panel.ui
Mohammed Sadiq 5f3b16b288 keyboard: Fix activation of input source toggle button
When the options are changed, the first item was never shown as
active when selected.  Fix it by binding to the inverse of the
button state instead of binding both toggle buttons to settings.

Fixes #1653
2022-08-15 08:26:16 +00:00

116 lines
5.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkAdjustment" id="cursor_blink_time_adjustment">
<property name="lower">100</property>
<property name="upper">2500</property>
<property name="value">1000</property>
<property name="step_increment">200</property>
<property name="page_increment">200</property>
</object>
<template class="CcKeyboardPanel" parent="CcPanel">
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child type="content">
<object class="AdwPreferencesPage">
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Input Sources</property>
<property name="description" translatable="yes">Includes keyboard layouts and input methods.</property>
<child>
<object class="CcInputListBox" id="input_list">
<property name="vexpand">False</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup" id="input_switch_group">
<property name="title" translatable="yes">Input Source Switching</property>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Use the _same source for all windows</property>
<property name="use-underline">True</property>
<property name="activatable-widget">same_source</property>
<child type="prefix">
<object class="GtkCheckButton" id="same_source">
<property name="valign">center</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Switch input sources _individually for each window</property>
<property name="use-underline">True</property>
<property name="activatable-widget">per_window_source</property>
<child type="prefix">
<object class="GtkCheckButton" id="per_window_source">
<property name="active" bind-source="same_source" bind-flags="sync-create|invert-boolean"/>
<property name="valign">center</property>
<property name="group">same_source</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Special Character Entry</property>
<property name="description" translatable="yes">Methods for entering symbols and letter variants using the keyboard.</property>
<child>
<object class="AdwActionRow" id="alt_chars_row">
<property name="title" translatable="yes">Alternate Characters Key</property>
<property name="activatable">True</property>
<signal name="activated" handler="special_chars_activated" object="CcKeyboardPanel" swapped="no" />
<child>
<object class="GtkLabel" id="value_alternate_chars">
<property name="label" translatable="no">Right Alt</property>
</object>
</child>
<child>
<object class="GtkImage">
<property name="icon_name">go-next-symbolic</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow" id="compose_row">
<property name="title" translatable="yes">Compose Key</property>
<property name="activatable">True</property>
<signal name="activated" handler="special_chars_activated" object="CcKeyboardPanel" swapped="no" />
<child>
<object class="GtkLabel" id="value_compose">
</object>
</child>
<child>
<object class="GtkImage">
<property name="icon_name">go-next-symbolic</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Keyboard Shortcuts</property>
<child>
<object class="AdwActionRow" id="common_shortcuts_row">
<property name="title" translatable="yes">View and Customize Shortcuts</property>
<property name="activatable">True</property>
<signal name="activated" handler="keyboard_shortcuts_activated" object="CcKeyboardPanel" swapped="no" />
<child>
<object class="GtkImage">
<property name="icon_name">go-next-symbolic</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
</interface>