forked from AuroraMiddleware/gtk
97ff1b83dc
The only place where this should be set is when making a widget the focus-widget of a window. We still keep the property around in readonly form, since there are a few places where we rely on property notification for it.
68 lines
2.6 KiB
XML
68 lines
2.6 KiB
XML
<interface domain="gtk40">
|
|
<object class="GtkTextTagTable" id="tags">
|
|
<child type="tag">
|
|
<object class="GtkTextTag">
|
|
<property name="name">warning</property>
|
|
<property name="underline">single</property>
|
|
<property name="underline-rgba">darkorange</property>
|
|
</object>
|
|
</child>
|
|
<child type="tag">
|
|
<object class="GtkTextTag">
|
|
<property name="name">error</property>
|
|
<property name="underline">error</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<object class="GtkTextBuffer" id="text">
|
|
<property name="tag-table">tags</property>
|
|
<signal name="changed" handler="text_changed"/>
|
|
</object>
|
|
<template class="GtkInspectorCssEditor" parent="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="spacing">6</property>
|
|
<property name="margin-start">6</property>
|
|
<property name="margin-end">6</property>
|
|
<property name="margin-top">6</property>
|
|
<property name="margin-bottom">6</property>
|
|
<child>
|
|
<object class="GtkToggleButton" id="disable_button">
|
|
<property name="relief">none</property>
|
|
<property name="tooltip-text" translatable="yes">Disable this custom CSS</property>
|
|
<property name="icon-name">media-playback-pause-symbolic</property>
|
|
<signal name="toggled" handler="disable_toggled"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="save_button">
|
|
<property name="relief">none</property>
|
|
<property name="tooltip-text" translatable="yes">Save the current CSS</property>
|
|
<property name="icon-name">document-save-symbolic</property>
|
|
<signal name="clicked" handler="save_clicked"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkScrolledWindow">
|
|
<property name="hscrollbar-policy">never</property>
|
|
<property name="hexpand">1</property>
|
|
<property name="vexpand">1</property>
|
|
<child>
|
|
<object class="GtkTextView" id="view">
|
|
<property name="buffer">text</property>
|
|
<property name="wrap-mode">word</property>
|
|
<property name="monospace">1</property>
|
|
<property name="left-margin">6</property>
|
|
<property name="right-margin">6</property>
|
|
<property name="has-tooltip">1</property>
|
|
<signal name="query-tooltip" handler="query_tooltip_cb"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|