This should significantly simplify these panels, by not forcing them to override GObject.constructed all the time. Most panels were quite straightfoward.
65 lines
2.5 KiB
XML
65 lines
2.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="CcSearchPanel" parent="CcPanel">
|
|
<property name="visible">True</property>
|
|
|
|
<!-- Header widget -->
|
|
<child type="titlebar-start">
|
|
<object class="GtkButton" id="settings_button">
|
|
<property name="label" translatable="yes">Search Locations</property>
|
|
<signal name="clicked" handler="settings_button_clicked" object="CcSearchPanel" swapped="no"/>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Header widget -->
|
|
<child type="titlebar-end">
|
|
<object class="GtkSwitch" id="main_switch">
|
|
<property name="valign">center</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child type="content">
|
|
<object class="GtkScrolledWindow" id="search_vbox">
|
|
<property name="visible">True</property>
|
|
<property name="hscrollbar_policy">never</property>
|
|
<child>
|
|
<object class="AdwClamp">
|
|
<property name="visible">True</property>
|
|
<property name="margin_top">32</property>
|
|
<property name="margin_bottom">32</property>
|
|
<property name="margin_start">12</property>
|
|
<property name="margin_end">12</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="visible">True</property>
|
|
<property name="orientation">vertical</property>
|
|
<property name="hexpand">True</property>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="visible">True</property>
|
|
<property name="xalign">0.0</property>
|
|
<property name="margin-bottom">20</property>
|
|
<property name="wrap">True</property>
|
|
<property name="label" translatable="yes">Control which search results are shown in the Activities Overview. The order of search results can also be changed by moving rows in the list.</property>
|
|
<style>
|
|
<class name="dim-label"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkListBox" id="list_box">
|
|
<property name="visible">True</property>
|
|
<style>
|
|
<class name="boxed-list"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
|
|
</interface>
|