It was using the same title that was already defined in the AdwNavigationPage of the sidebar. Also remove some unneeded template bindings.
115 lines
5.5 KiB
XML
115 lines
5.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="CcWindow" parent="AdwApplicationWindow">
|
|
<property name="default-width">980</property>
|
|
<property name="default-height">640</property>
|
|
<property name="width-request">360</property>
|
|
<property name="height-request">298</property>
|
|
<child>
|
|
<object class="AdwBreakpoint">
|
|
<condition>max-width: 550sp</condition>
|
|
<setter object="split_view" property="collapsed">True</setter>
|
|
</object>
|
|
</child>
|
|
<property name="content">
|
|
<object class="AdwNavigationSplitView" id="split_view">
|
|
<signal name="notify::collapsed" handler="on_split_view_collapsed_changed_cb" object="CcWindow" swapped="yes" />
|
|
|
|
<property name="sidebar">
|
|
<object class="AdwNavigationPage">
|
|
<property name="title" translatable="yes">Settings</property>
|
|
<property name="child">
|
|
<object class="AdwToolbarView">
|
|
<child type="top">
|
|
<object class="AdwHeaderBar">
|
|
<child>
|
|
<object class="GtkToggleButton" id="search_button">
|
|
<property name="icon_name">edit-find-symbolic</property>
|
|
<property name="tooltip_text" translatable="yes">Search</property>
|
|
<accessibility>
|
|
<property name="label" translatable="yes">Search</property>
|
|
</accessibility>
|
|
<style>
|
|
<class name="image-button"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child type="end">
|
|
<object class="GtkMenuButton">
|
|
<property name="icon-name">open-menu-symbolic</property>
|
|
<property name="menu-model">primary_menu</property>
|
|
<property name="primary">True</property>
|
|
<property name="tooltip_text" translatable="yes">Main Menu</property>
|
|
<accessibility>
|
|
<property name="label" translatable="yes">Main Menu</property>
|
|
</accessibility>
|
|
<style>
|
|
<class name="image-button"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child type="top">
|
|
<object class="GtkSearchBar" id="search_bar">
|
|
<property name="search_mode_enabled" bind-source="search_button" bind-property="active" bind-flags="sync-create|bidirectional" />
|
|
<child>
|
|
<object class="GtkSearchEntry" id="search_entry">
|
|
<property name="hexpand">True</property>
|
|
<property name="placeholder_text" translatable="yes">Search settings</property>
|
|
<signal name="activate" handler="search_entry_activate_cb" object="CcWindow" swapped="yes" />
|
|
<child>
|
|
<object class="GtkEventControllerKey">
|
|
<signal name="key-pressed" handler="search_entry_key_pressed_cb" object="CcWindow" swapped="yes" />
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<property name="content">
|
|
<object class="GtkScrolledWindow">
|
|
<property name="hscrollbar_policy">never</property>
|
|
<child>
|
|
<object class="CcPanelList" id="panel_list">
|
|
<property name="search-mode" bind-source="search_bar" bind-property="search-mode-enabled" bind-flags="bidirectional" />
|
|
<property name="search-query" bind-source="search_entry" bind-property="text" bind-flags="default" />
|
|
<signal name="show-panel" handler="show_panel_cb" object="CcWindow" swapped="yes" />
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</property>
|
|
</template>
|
|
|
|
<!-- Warning dialog for development builds -->
|
|
<object class="GtkMessageDialog" id="development_warning_dialog">
|
|
<property name="message-type">warning</property>
|
|
<property name="transient-for">CcWindow</property>
|
|
<property name="resizable">false</property>
|
|
<property name="modal">true</property>
|
|
<property name="buttons">ok</property>
|
|
<property name="text" translatable="yes">Warning: Development Version</property>
|
|
<property name="secondary-text" translatable="yes">This version of Settings should only be used for development purposes. You may experience incorrect system behavior, data loss, and other unexpected issues. </property>
|
|
<signal name="response" handler="on_development_warning_dialog_responded_cb" object="CcWindow" swapped="yes" />
|
|
</object>
|
|
|
|
<menu id="primary_menu">
|
|
<section>
|
|
<item>
|
|
<attribute name="label" translatable="yes">Keyboard Shortcuts</attribute>
|
|
<attribute name="action">win.show-help-overlay</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="label" translatable="yes">Help</attribute>
|
|
<attribute name="action">app.help</attribute>
|
|
</item>
|
|
</section>
|
|
</menu>
|
|
|
|
</interface>
|