1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
|
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0" />
<object class="ApostropheTextBuffer" id="buffer">
<signal name="mark-set" handler="_on_mark_set" />
<signal name="paste-done" handler="_on_paste_done" />
<signal name="changed" handler="_on_text_changed" />
</object>
<template class="ApostropheTextView" parent="GtkSourceView">
<property name="wrap-mode">word-char</property>
<property name="pixels-above-lines">4</property>
<property name="pixels-below-lines">4</property>
<property name="pixels-inside-wrap">8</property>
<property name="indent-on-tab">False</property>
<property name="buffer">buffer</property>
<child>
<object class="GtkGestureClick" id="gesture_controller_context">
<property name="button">0</property>
<signal name="pressed" handler="_on_button_pressed_event" swapped="no" />
</object>
</child>
<child>
<object class="GtkGestureClick" id="gesture_controller">
<signal name="released" handler="_on_button_release_event" swapped="no" />
</object>
</child>
<child>
<object class='GtkShortcutController'>
<child>
<object class='GtkShortcut'>
<property name='trigger'><Control>i</property>
<property name='action'>action(win.insert-italic)</property>
</object>
</child>
<child>
<object class='GtkShortcut'>
<property name='trigger'><Control>b</property>
<property name='action'>action(win.insert-bold)</property>
</object>
</child>
<child>
<object class='GtkShortcut'>
<property name='trigger'><Control>r</property>
<property name='action'>action(win.insert-hrule)</property>
</object>
</child>
<child>
<object class='GtkShortcut'>
<property name='trigger'><Control>u</property>
<property name='action'>action(win.insert-listitem)</property>
</object>
</child>
<child>
<object class='GtkShortcut'>
<property name='trigger'><Control><Shift>d</property>
<property name='action'>action(win.insert-strikethrough)</property>
</object>
</child>
<child>
<object class='GtkShortcut'>
<property name='trigger'><Control>1</property>
<property name='action'>action(win.insert-header)</property>
<property name='arguments'>1</property>
</object>
</child>
<child>
<object class='GtkShortcut'>
<property name='trigger'><Control>2</property>
<property name='action'>action(win.insert-header)</property>
<property name='arguments'>2</property>
</object>
</child>
<child>
<object class='GtkShortcut'>
<property name='trigger'><Control>3</property>
<property name='action'>action(win.insert-header)</property>
<property name='arguments'>3</property>
</object>
</child>
<child>
<object class='GtkShortcut'>
<property name='trigger'><Control>4</property>
<property name='action'>action(win.insert-header)</property>
<property name='arguments'>4</property>
</object>
</child>
</object>
</child>
<style>
<class name="apostrophe-editor" />
</style>
<signal name="notify::focus-mode" handler="_on_focus_mode_update" />
<signal name="notify::spellcheck" handler="_on_spellcheck_update" />
<signal name="notify::bigger-text" handler="update_font_size" />
</template>
</interface>
|