gnome-control-center/panels/search/cc-search-panel.ui
Christopher Davis e14847b73f search: Search group fixups
* Set the right accessibility relations, as
AdwPreferencesGroup does not manage it
for custom listboxes

* Handle `keynav-failed` for proper behavior with arrow keys

* Set `selection-mode` to none
2022-02-09 13:53:17 +00:00

55 lines
2.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcSearchPanel" parent="CcPanel">
<child type="content">
<object class="AdwPreferencesPage">
<child>
<object class="AdwPreferencesGroup">
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Application Search</property>
<property name="subtitle" translatable="yes">Include application-provided search results.</property>
<property name="activatable-widget">main_switch</property>
<child type="suffix">
<object class="GtkSwitch" id="main_switch">
<property name="valign">center</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow" id="settings_row">
<property name="title" translatable="yes">Search Locations</property>
<property name="subtitle" translatable="yes">Folders which are searched by system applications.</property>
<property name="activatable">True</property>
<signal name="activated" handler="settings_row_activated" object="CcSearchPanel" swapped="no"/>
<child type="suffix">
<object class="GtkImage">
<property name="icon-name">go-next-symbolic</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup" id="search_group">
<property name="title" translatable="yes">Search Results</property>
<property name="description" translatable="yes">Results are displayed according to the list order.</property>
<child>
<object class="GtkListBox" id="list_box">
<property name="selection-mode">none</property>
<signal name="keynav-failed" handler="keynav_failed_cb" object="CcSearchPanel" swapped="yes"/>
<accessibility name="labelled-by">search_group</accessibility>
<style>
<class name="boxed-list"/>
</style>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
</interface>