2013-11-16 21:09:56 +00:00
|
|
|
<?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>
|
2018-05-07 16:42:09 +00:00
|
|
|
<child type="titlebar">
|
|
|
|
<object class="GtkHeaderBar" id="header">
|
|
|
|
<property name="show-title-buttons">1</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel" id="lines_label">
|
|
|
|
<property name="visible">0</property>
|
|
|
|
<property name="label" translatable="yes">Lines:</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel" id="lines">
|
|
|
|
<property name="visible">0</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child type="title">
|
|
|
|
<object class="GtkStackSwitcher" id="tabs">
|
|
|
|
<property name="stack">stack</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkToggleButton" id="search">
|
|
|
|
<property name="sensitive">0</property>
|
|
|
|
<style>
|
|
|
|
<class name="image-button"/>
|
|
|
|
</style>
|
2013-11-16 21:09:56 +00:00
|
|
|
<child>
|
2018-05-07 16:42:09 +00:00
|
|
|
<object class="GtkImage" id="search-icon">
|
|
|
|
<property name="icon-name">edit-find-symbolic</property>
|
2013-11-16 21:09:56 +00:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
2018-05-07 16:42:09 +00:00
|
|
|
<packing>
|
|
|
|
<property name="pack-type">end</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkMenuButton" id="gears">
|
|
|
|
<property name="direction">none</property>
|
|
|
|
<style>
|
|
|
|
<class name="image-button"/>
|
|
|
|
</style>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="pack-type">end</property>
|
|
|
|
</packing>
|
2013-11-16 21:09:56 +00:00
|
|
|
</child>
|
2018-05-07 16:42:09 +00:00
|
|
|
</object>
|
|
|
|
</child>
|
2013-11-16 21:09:56 +00:00
|
|
|
<child>
|
|
|
|
<object class="GtkBox" id="content_box">
|
|
|
|
<property name="orientation">vertical</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkSearchBar" id="searchbar">
|
|
|
|
<child>
|
|
|
|
<object class="GtkSearchEntry" id="searchentry">
|
|
|
|
<signal name="search-changed" handler="search_text_changed"/>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkBox" id="hbox">
|
|
|
|
<child>
|
|
|
|
<object class="GtkRevealer" id="sidebar">
|
|
|
|
<property name="transition-type">slide-right</property>
|
|
|
|
<child>
|
2018-05-07 16:42:09 +00:00
|
|
|
<object class="GtkScrolledWindow" id="sidebar-sw">
|
|
|
|
<property name="hscrollbar-policy">never</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkListBox" id="words">
|
|
|
|
<property name="selection-mode">none</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
2013-11-16 21:09:56 +00:00
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkStack" id="stack">
|
|
|
|
<signal name="notify::visible-child" handler="visible_child_changed"/>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</template>
|
|
|
|
</interface>
|