forked from AuroraMiddleware/gtk
8087bb7a22
Add a new example to the getting started part of the docs. The focus of this example is on 'new stuff': GtkApplication, templates, settings, gmenu, gaction, GtkStack, GtkHeaderBar, GtkSearchBar, GtkRevealer, GtkListBox, GtkMenuButton, etc. It is being developed in several steps. Each step is put in a separate directory below examples/: application1, ..., application8. This is a little repetitive, but lets us use the code of all examples in the documentation.
97 lines
3.7 KiB
XML
97 lines
3.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<!-- interface-requires gtk+ 3.8 -->
|
|
<template class="ExampleAppWindow" parent="GtkApplicationWindow">
|
|
<property name="title" translatable="yes">Example Application</property>
|
|
<property name="default-width">600</property>
|
|
<property name="default-height">400</property>
|
|
<child>
|
|
<object class="GtkBox" id="content_box">
|
|
<property name="visible">True</property>
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkHeaderBar" id="header">
|
|
<property name="visible">True</property>
|
|
<child type="title">
|
|
<object class="GtkStackSwitcher" id="tabs">
|
|
<property name="visible">True</property>
|
|
<property name="stack">stack</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkToggleButton" id="search">
|
|
<property name="visible">True</property>
|
|
<property name="sensitive">False</property>
|
|
<child>
|
|
<object class="GtkImage" id="search-icon">
|
|
<property name="visible">True</property>
|
|
<property name="icon-name">edit-find-symbolic</property>
|
|
<property name="icon-size">1</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="pack-type">end</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkMenuButton" id="gears">
|
|
<property name="visible">True</property>
|
|
<child>
|
|
<object class="GtkImage" id="gears-icon">
|
|
<property name="visible">True</property>
|
|
<property name="icon-name">emblem-system-symbolic</property>
|
|
<property name="icon-size">1</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="pack-type">end</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkSearchBar" id="searchbar">
|
|
<property name="visible">True</property>
|
|
<child>
|
|
<object class="GtkSearchEntry" id="searchentry">
|
|
<property name="visible">True</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox" id="hbox">
|
|
<property name="visible">True</property>
|
|
<child>
|
|
<object class="GtkRevealer" id="sidebar">
|
|
<property name="visible">True</property>
|
|
<property name="transition-type">slide-right</property>
|
|
<child>
|
|
<object class="GtkScrolledWindow" id="sidebar-sw">
|
|
<property name="visible">True</property>
|
|
<property name="hscrollbar-policy">never</property>
|
|
<property name="vscrollbar-policy">automatic</property>
|
|
<child>
|
|
<object class="GtkListBox" id="words">
|
|
<property name="visible">True</property>
|
|
<property name="selection-mode">none</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkStack" id="stack">
|
|
<property name="visible">True</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|