mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
d2430c70bd
Redo this series of examples from 2013, and adapt it to modern way of doing things. The biggest differences are that we use a headerbar right from the start, and don't mention the app menu. Fixes: #2730
68 lines
2.7 KiB
XML
68 lines
2.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="ExampleAppPrefs" parent="GtkDialog">
|
|
<property name="title" translatable="yes">Preferences</property>
|
|
<property name="resizable">0</property>
|
|
<property name="modal">1</property>
|
|
<child internal-child="content_area">
|
|
<object class="GtkBox" id="content_area">
|
|
<child>
|
|
<object class="GtkGrid" id="grid">
|
|
<property name="margin-start">12</property>
|
|
<property name="margin-end">12</property>
|
|
<property name="margin-top">12</property>
|
|
<property name="margin-bottom">12</property>
|
|
<property name="row-spacing">12</property>
|
|
<property name="column-spacing">12</property>
|
|
<child>
|
|
<object class="GtkLabel" id="fontlabel">
|
|
<property name="label">_Font:</property>
|
|
<property name="use-underline">1</property>
|
|
<property name="mnemonic-widget">font</property>
|
|
<property name="xalign">1</property>
|
|
<layout>
|
|
<property name="left-attach">0</property>
|
|
<property name="top-attach">0</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkFontButton" id="font">
|
|
<layout>
|
|
<property name="left-attach">1</property>
|
|
<property name="top-attach">0</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="transitionlabel">
|
|
<property name="label">_Transition:</property>
|
|
<property name="use-underline">1</property>
|
|
<property name="mnemonic-widget">transition</property>
|
|
<property name="xalign">1</property>
|
|
<layout>
|
|
<property name="left-attach">0</property>
|
|
<property name="top-attach">1</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkComboBoxText" id="transition">
|
|
<items>
|
|
<item translatable="yes" id="none">None</item>
|
|
<item translatable="yes" id="crossfade">Fade</item>
|
|
<item translatable="yes" id="slide-left-right">Slide</item>
|
|
</items>
|
|
<layout>
|
|
<property name="left-attach">1</property>
|
|
<property name="top-attach">1</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|