| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<interface> |
| 3 |
<requires lib="gtk" version="4.0"/> |
| 4 |
<requires lib="Adw" version="1.0"/> |
| 5 |
<template class="PaperClipKeywordList" parent="AdwPreferencesGroup"> |
| 6 |
<property name="title" translatable="yes">Keywords</property> |
| 7 |
|
| 8 |
<child type="header-suffix"> |
| 9 |
<object class="GtkButton" id="add_button"> |
| 10 |
<property name="icon-name">list-add-symbolic</property> |
| 11 |
<property name="visible" bind-source="PaperClipKeywordList" bind-property="is-empty" bind-flags="sync-create | invert-boolean"/> |
| 12 |
<property name="tooltip-text" translatable="yes">Add a keyword</property> |
| 13 |
<property name="action-name">keyword-list.add-keyword</property> |
| 14 |
<style> |
| 15 |
<class name="flat"/> |
| 16 |
</style> |
| 17 |
</object> |
| 18 |
</child> |
| 19 |
|
| 20 |
<child> |
| 21 |
<object class="GtkListBox" id="listbox"> |
| 22 |
<signal name="row-activated" swapped="no" handler="on_row_activated"></signal> |
| 23 |
<style> |
| 24 |
<class name="boxed-list"/> |
| 25 |
</style> |
| 26 |
</object> |
| 27 |
</child> |
| 28 |
|
| 29 |
<child> |
| 30 |
<object class="GtkShortcutController"> |
| 31 |
<child> |
| 32 |
<object class="GtkShortcut"> |
| 33 |
<property name="trigger"><Control>Return</property> |
| 34 |
<property name="action">action(keyword-list.add-keyword)</property> |
| 35 |
</object> |
| 36 |
</child> |
| 37 |
</object> |
| 38 |
</child> |
| 39 |
</template> |
| 40 |
</interface> |