| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<interface> |
| 3 |
<object class="GtkWindow" id="window"> |
| 4 |
<property name="title" translatable="yes">Settings</property> |
| 5 |
<property name="default-width">640</property> |
| 6 |
<property name="default-height">480</property> |
| 7 |
<property name="titlebar"> |
| 8 |
<object class="GtkHeaderBar"> |
| 9 |
<child type="end"> |
| 10 |
<object class="GtkToggleButton" id="search_button"> |
| 11 |
<property name="icon-name">system-search-symbolic</property> |
| 12 |
</object> |
| 13 |
</child> |
| 14 |
</object> |
| 15 |
</property> |
| 16 |
<property name="child"> |
| 17 |
<object class="GtkPaned"> |
| 18 |
<property name="position">300</property> |
| 19 |
<property name="start-child"> |
| 20 |
<object class="GtkScrolledWindow"> |
| 21 |
<property name="child"> |
| 22 |
<object class="GtkListView" id="listview"> |
| 23 |
<property name="tab-behavior">item</property> |
| 24 |
<style> |
| 25 |
<class name="navigation-sidebar"/> |
| 26 |
</style> |
| 27 |
<property name="factory"> |
| 28 |
<object class="GtkBuilderListItemFactory"> |
| 29 |
<property name="bytes"><![CDATA[ |
| 30 |
<?xml version="1.0" encoding="UTF-8"?> |
| 31 |
<interface> |
| 32 |
<template class="GtkListItem"> |
| 33 |
<property name="child"> |
| 34 |
<object class="GtkTreeExpander" id="expander"> |
| 35 |
<binding name="list-row"> |
| 36 |
<lookup name="item">GtkListItem</lookup> |
| 37 |
</binding> |
| 38 |
<property name="child"> |
| 39 |
<object class="GtkLabel"> |
| 40 |
<property name="xalign">0</property> |
| 41 |
<binding name="label"> |
| 42 |
<lookup name="schema" type="GSettings"> |
| 43 |
<lookup name="item">expander</lookup> |
| 44 |
</lookup> |
| 45 |
</binding> |
| 46 |
</object> |
| 47 |
</property> |
| 48 |
</object> |
| 49 |
</property> |
| 50 |
</template> |
| 51 |
</interface> |
| 52 |
]]></property> |
| 53 |
</object> |
| 54 |
</property> |
| 55 |
</object> |
| 56 |
</property> |
| 57 |
</object> |
| 58 |
</property> |
| 59 |
<property name="end-child"> |
| 60 |
<object class="GtkBox"> |
| 61 |
<property name="orientation">vertical</property> |
| 62 |
<child> |
| 63 |
<object class="GtkSearchBar"> |
| 64 |
<property name="search-mode-enabled" bind-source="search_button" bind-property="active" bind-flags="bidirectional"/> |
| 65 |
<signal name="notify::search-mode-enabled" handler="search_enabled" object="entry"/> |
| 66 |
<property name="child"> |
| 67 |
<object class="GtkSearchEntry" id="entry"> |
| 68 |
<signal name="search-changed" handler="search_changed"/> |
| 69 |
<signal name="stop-search" handler="stop_search"/> |
| 70 |
</object> |
| 71 |
</property> |
| 72 |
</object> |
| 73 |
</child> |
| 74 |
<child> |
| 75 |
<object class="GtkScrolledWindow"> |
| 76 |
<property name="hexpand">1</property> |
| 77 |
<property name="vexpand">1</property> |
| 78 |
<property name="child"> |
| 79 |
<object class="GtkColumnView" id="columnview"> |
| 80 |
<property name="tab-behavior">cell</property> |
| 81 |
<style> |
| 82 |
<class name="data-table"/> |
| 83 |
</style> |
| 84 |
<child> |
| 85 |
<object class="GtkColumnViewColumn" id="name_column"> |
| 86 |
<property name="title">Name</property> |
| 87 |
<property name="header-menu">header_menu</property> |
| 88 |
<property name="factory"> |
| 89 |
<object class="GtkBuilderListItemFactory"> |
| 90 |
<property name="bytes"><![CDATA[ |
| 91 |
<?xml version="1.0" encoding="UTF-8"?> |
| 92 |
<interface> |
| 93 |
<template class="GtkColumnViewCell"> |
| 94 |
<property name="child"> |
| 95 |
<object class="GtkLabel"> |
| 96 |
<property name="xalign">0</property> |
| 97 |
<binding name="label"> |
| 98 |
<lookup name="name" type="SettingsKey"> |
| 99 |
<lookup name="item">GtkColumnViewCell</lookup> |
| 100 |
</lookup> |
| 101 |
</binding> |
| 102 |
</object> |
| 103 |
</property> |
| 104 |
</template> |
| 105 |
</interface> |
| 106 |
]]></property> |
| 107 |
</object> |
| 108 |
</property> |
| 109 |
</object> |
| 110 |
</child> |
| 111 |
<child> |
| 112 |
<object class="GtkColumnViewColumn"> |
| 113 |
<property name="title">Value</property> |
| 114 |
<property name="resizable">1</property> |
| 115 |
<property name="header-menu">header_menu</property> |
| 116 |
<property name="factory"> |
| 117 |
<object class="GtkBuilderListItemFactory"> |
| 118 |
<property name="bytes"><![CDATA[ |
| 119 |
<?xml version="1.0" encoding="UTF-8"?> |
| 120 |
<interface> |
| 121 |
<template class="GtkColumnViewCell"> |
| 122 |
<property name="child"> |
| 123 |
<object class="GtkEditableLabel"> |
| 124 |
<binding name="text"> |
| 125 |
<lookup name="value" type="SettingsKey"> |
| 126 |
<lookup name="item">GtkColumnViewCell</lookup> |
| 127 |
</lookup> |
| 128 |
</binding> |
| 129 |
<signal name="notify::editing" handler="item_value_changed"/> |
| 130 |
</object> |
| 131 |
</property> |
| 132 |
</template> |
| 133 |
</interface> |
| 134 |
]]></property> |
| 135 |
</object> |
| 136 |
</property> |
| 137 |
</object> |
| 138 |
</child> |
| 139 |
<child> |
| 140 |
<object class="GtkColumnViewColumn" id="type_column"> |
| 141 |
<property name="title">Type</property> |
| 142 |
<property name="resizable">1</property> |
| 143 |
<property name="header-menu">header_menu</property> |
| 144 |
<property name="factory"> |
| 145 |
<object class="GtkBuilderListItemFactory"> |
| 146 |
<property name="bytes"><![CDATA[ |
| 147 |
<?xml version="1.0" encoding="UTF-8"?> |
| 148 |
<interface> |
| 149 |
<template class="GtkColumnViewCell"> |
| 150 |
<property name="child"> |
| 151 |
<object class="GtkLabel"> |
| 152 |
<property name="xalign">0</property> |
| 153 |
<binding name="label"> |
| 154 |
<lookup name="type" type="SettingsKey"> |
| 155 |
<lookup name="item">GtkColumnViewCell</lookup> |
| 156 |
</lookup> |
| 157 |
</binding> |
| 158 |
</object> |
| 159 |
</property> |
| 160 |
</template> |
| 161 |
</interface> |
| 162 |
]]></property> |
| 163 |
</object> |
| 164 |
</property> |
| 165 |
</object> |
| 166 |
</child> |
| 167 |
<child> |
| 168 |
<object class="GtkColumnViewColumn" id="default_column"> |
| 169 |
<property name="title">Default</property> |
| 170 |
<property name="resizable">1</property> |
| 171 |
<property name="expand">1</property> |
| 172 |
<property name="header-menu">header_menu</property> |
| 173 |
<property name="factory"> |
| 174 |
<object class="GtkBuilderListItemFactory"> |
| 175 |
<property name="bytes"><![CDATA[ |
| 176 |
<?xml version="1.0" encoding="UTF-8"?> |
| 177 |
<interface> |
| 178 |
<template class="GtkColumnViewCell"> |
| 179 |
<property name="child"> |
| 180 |
<object class="GtkLabel"> |
| 181 |
<property name="xalign">0</property> |
| 182 |
<binding name="label"> |
| 183 |
<lookup name="default-value" type="SettingsKey"> |
| 184 |
<lookup name="item">GtkColumnViewCell</lookup> |
| 185 |
</lookup> |
| 186 |
</binding> |
| 187 |
</object> |
| 188 |
</property> |
| 189 |
</template> |
| 190 |
</interface> |
| 191 |
]]></property> |
| 192 |
</object> |
| 193 |
</property> |
| 194 |
</object> |
| 195 |
</child> |
| 196 |
<child> |
| 197 |
<object class="GtkColumnViewColumn" id="summary_column"> |
| 198 |
<property name="title">Summary</property> |
| 199 |
<property name="resizable">1</property> |
| 200 |
<property name="visible">0</property> |
| 201 |
<property name="expand">1</property> |
| 202 |
<property name="header-menu">header_menu</property> |
| 203 |
<property name="factory"> |
| 204 |
<object class="GtkBuilderListItemFactory"> |
| 205 |
<property name="bytes"><![CDATA[ |
| 206 |
<?xml version="1.0" encoding="UTF-8"?> |
| 207 |
<interface> |
| 208 |
<template class="GtkColumnViewCell"> |
| 209 |
<property name="child"> |
| 210 |
<object class="GtkLabel"> |
| 211 |
<property name="xalign">0</property> |
| 212 |
<property name="wrap">1</property> |
| 213 |
<binding name="label"> |
| 214 |
<lookup name="summary" type="SettingsKey"> |
| 215 |
<lookup name="item">GtkColumnViewCell</lookup> |
| 216 |
</lookup> |
| 217 |
</binding> |
| 218 |
</object> |
| 219 |
</property> |
| 220 |
</template> |
| 221 |
</interface> |
| 222 |
]]></property> |
| 223 |
</object> |
| 224 |
</property> |
| 225 |
</object> |
| 226 |
</child> |
| 227 |
<child> |
| 228 |
<object class="GtkColumnViewColumn" id="description_column"> |
| 229 |
<property name="title">Description</property> |
| 230 |
<property name="resizable">1</property> |
| 231 |
<property name="visible">0</property> |
| 232 |
<property name="expand">1</property> |
| 233 |
<property name="header-menu">header_menu</property> |
| 234 |
<property name="factory"> |
| 235 |
<object class="GtkBuilderListItemFactory"> |
| 236 |
<property name="bytes"><![CDATA[ |
| 237 |
<?xml version="1.0" encoding="UTF-8"?> |
| 238 |
<interface> |
| 239 |
<template class="GtkColumnViewCell"> |
| 240 |
<property name="child"> |
| 241 |
<object class="GtkLabel"> |
| 242 |
<property name="xalign">0</property> |
| 243 |
<property name="wrap">1</property> |
| 244 |
<binding name="label"> |
| 245 |
<lookup name="description" type="SettingsKey"> |
| 246 |
<lookup name="item">GtkColumnViewCell</lookup> |
| 247 |
</lookup> |
| 248 |
</binding> |
| 249 |
</object> |
| 250 |
</property> |
| 251 |
</template> |
| 252 |
</interface> |
| 253 |
]]></property> |
| 254 |
</object> |
| 255 |
</property> |
| 256 |
</object> |
| 257 |
</child> |
| 258 |
</object> |
| 259 |
</property> |
| 260 |
</object> |
| 261 |
</child> |
| 262 |
</object> |
| 263 |
</property> |
| 264 |
</object> |
| 265 |
</property> |
| 266 |
</object> |
| 267 |
<menu id="header_menu"> |
| 268 |
<section> |
| 269 |
<item> |
| 270 |
<attribute name="label" translatable="yes">Type</attribute> |
| 271 |
<attribute name="action">columnview.show-type</attribute> |
| 272 |
</item> |
| 273 |
<item> |
| 274 |
<attribute name="label" translatable="yes">Default value</attribute> |
| 275 |
<attribute name="action">columnview.show-default</attribute> |
| 276 |
</item> |
| 277 |
<item> |
| 278 |
<attribute name="label" translatable="yes">Summary</attribute> |
| 279 |
<attribute name="action">columnview.show-summary</attribute> |
| 280 |
</item> |
| 281 |
<item> |
| 282 |
<attribute name="label" translatable="yes">Description</attribute> |
| 283 |
<attribute name="action">columnview.show-description</attribute> |
| 284 |
</item> |
| 285 |
</section> |
| 286 |
</menu> |
| 287 |
</interface> |