2019-04-04 23:10:18 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2013-12-03 00:42:04 +00:00
|
|
|
<interface>
|
2019-04-17 00:34:59 +00:00
|
|
|
<menu id="gear_menu">
|
|
|
|
<section>
|
|
|
|
<item>
|
|
|
|
<attribute name="label" translatable="yes">_Inspector</attribute>
|
|
|
|
<attribute name="action">app.inspector</attribute>
|
|
|
|
</item>
|
2020-04-27 02:14:10 +00:00
|
|
|
<item>
|
|
|
|
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
|
|
|
|
<attribute name="action">win.show-help-overlay</attribute>
|
|
|
|
</item>
|
2019-04-17 00:34:59 +00:00
|
|
|
<item>
|
|
|
|
<attribute name="label" translatable="yes">_About GTK Demo</attribute>
|
|
|
|
<attribute name="action">app.about</attribute>
|
|
|
|
</item>
|
|
|
|
</section>
|
|
|
|
</menu>
|
2013-12-03 00:42:04 +00:00
|
|
|
<object class="GtkApplicationWindow" id="window">
|
2014-01-11 23:06:06 +00:00
|
|
|
<property name="default-width">800</property>
|
|
|
|
<property name="default-height">600</property>
|
2013-12-03 01:35:57 +00:00
|
|
|
<child type="titlebar">
|
|
|
|
<object class="GtkHeaderBar" id="headerbar">
|
|
|
|
<child>
|
2016-02-28 04:46:25 +00:00
|
|
|
<object class="GtkButton">
|
2013-12-03 01:35:57 +00:00
|
|
|
<property name="valign">center</property>
|
2018-01-18 22:46:58 +00:00
|
|
|
<property name="action-name">win.run</property>
|
2021-04-11 19:23:24 +00:00
|
|
|
<property name="focus-on-click">0</property>
|
2020-11-04 17:54:48 +00:00
|
|
|
<property name="label" translatable="yes">Run</property>
|
2013-12-03 01:35:57 +00:00
|
|
|
</object>
|
|
|
|
</child>
|
2020-12-03 00:53:55 +00:00
|
|
|
<child>
|
|
|
|
<object class="GtkToggleButton">
|
|
|
|
<property name="icon-name">edit-find-symbolic</property>
|
|
|
|
<property name="valign">center</property>
|
2021-04-11 19:23:24 +00:00
|
|
|
<property name="focus-on-click">0</property>
|
2020-12-03 00:53:55 +00:00
|
|
|
<property name="active" bind-source="searchbar" bind-property="search-mode-enabled" bind-flags="bidirectional|sync-create"/>
|
|
|
|
<accessibility>
|
|
|
|
<property name="label" translatable="yes">Search</property>
|
|
|
|
</accessibility>
|
|
|
|
</object>
|
|
|
|
</child>
|
2019-04-17 00:34:59 +00:00
|
|
|
<child type="end">
|
|
|
|
<object class="GtkMenuButton" id="gear_menu_button">
|
|
|
|
<property name="valign">center</property>
|
2021-04-11 19:23:24 +00:00
|
|
|
<property name="focus-on-click">0</property>
|
2019-04-17 00:34:59 +00:00
|
|
|
<property name="menu-model">gear_menu</property>
|
|
|
|
<property name="icon-name">open-menu-symbolic</property>
|
2020-11-04 16:41:31 +00:00
|
|
|
<accessibility>
|
|
|
|
<property name="label" translatable="yes">Primary menu</property>
|
|
|
|
</accessibility>
|
2019-04-17 00:34:59 +00:00
|
|
|
</object>
|
|
|
|
</child>
|
2013-12-03 01:35:57 +00:00
|
|
|
</object>
|
|
|
|
</child>
|
2013-12-03 00:42:04 +00:00
|
|
|
<child>
|
2016-02-28 04:46:25 +00:00
|
|
|
<object class="GtkBox">
|
2013-12-03 00:42:04 +00:00
|
|
|
<child>
|
2020-12-17 21:20:17 +00:00
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="orientation">vertical</property>
|
2013-12-03 00:42:04 +00:00
|
|
|
<child>
|
2020-12-17 21:20:17 +00:00
|
|
|
<object class="GtkSearchBar" id="searchbar">
|
2023-06-11 11:04:56 +00:00
|
|
|
<accessibility>
|
|
|
|
<relation name="labelled-by">search-entry</relation>
|
|
|
|
</accessibility>
|
2020-12-17 21:20:17 +00:00
|
|
|
<property name="key-capture-widget">window</property>
|
2020-07-12 15:39:27 +00:00
|
|
|
<child>
|
2020-12-17 21:20:17 +00:00
|
|
|
<object class="GtkSearchEntry" id="search-entry">
|
|
|
|
<accessibility>
|
2023-06-11 11:04:56 +00:00
|
|
|
<property name="label" translatable="yes">Search</property>
|
2020-12-17 21:20:17 +00:00
|
|
|
<relation name="controls">listview</relation>
|
|
|
|
</accessibility>
|
2020-05-13 15:57:00 +00:00
|
|
|
</object>
|
2020-07-12 15:39:27 +00:00
|
|
|
</child>
|
2020-12-17 21:20:17 +00:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkScrolledWindow">
|
|
|
|
<style>
|
|
|
|
<class name="sidebar"/>
|
|
|
|
</style>
|
|
|
|
<property name="hscrollbar-policy">never</property>
|
2023-06-07 13:54:53 +00:00
|
|
|
<property name="propagate-natural-width">1</property>
|
2020-12-17 21:20:17 +00:00
|
|
|
<property name="vexpand">1</property>
|
2020-07-12 15:39:27 +00:00
|
|
|
<child>
|
|
|
|
<object class="GtkListView" id="listview">
|
2020-08-09 12:27:56 +00:00
|
|
|
<style>
|
|
|
|
<class name="navigation-sidebar"/>
|
|
|
|
</style>
|
2023-06-10 04:02:29 +00:00
|
|
|
<property name="tab-behavior">item</property>
|
2020-07-12 15:39:27 +00:00
|
|
|
<property name="factory">
|
|
|
|
<object class="GtkBuilderListItemFactory">
|
|
|
|
<property name="resource">/ui/main-listitem.ui</property>
|
|
|
|
</object>
|
|
|
|
</property>
|
2020-11-12 14:36:59 +00:00
|
|
|
<accessibility>
|
|
|
|
<property name="label" translatable="yes">Demo list</property>
|
|
|
|
<relation name="controls">notebook</relation>
|
|
|
|
</accessibility>
|
2020-07-12 15:39:27 +00:00
|
|
|
</object>
|
|
|
|
</child>
|
2013-12-03 00:42:04 +00:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkNotebook" id="notebook">
|
2015-09-09 21:34:32 +00:00
|
|
|
<property name="scrollable">1</property>
|
2018-01-18 22:46:58 +00:00
|
|
|
<property name="enable-popup">1</property>
|
|
|
|
<property name="show-border">0</property>
|
2020-02-25 23:25:52 +00:00
|
|
|
<property name="hexpand">1</property>
|
|
|
|
<property name="vexpand">1</property>
|
2013-12-03 00:42:04 +00:00
|
|
|
<child>
|
2019-02-21 16:13:53 +00:00
|
|
|
<object class="GtkNotebookPage">
|
|
|
|
<property name="tab-expand">1</property>
|
|
|
|
<property name="child">
|
|
|
|
<object class="GtkScrolledWindow">
|
|
|
|
<child>
|
|
|
|
<object class="GtkTextView" id="info-textview">
|
|
|
|
<property name="left-margin">20</property>
|
|
|
|
<property name="right-margin">20</property>
|
|
|
|
<property name="top-margin">20</property>
|
|
|
|
<property name="bottom-margin">20</property>
|
2020-09-14 20:21:13 +00:00
|
|
|
<property name="pixels-above-lines">6</property>
|
|
|
|
<property name="pixels-below-lines">6</property>
|
|
|
|
<property name="monospace">0</property>
|
2019-02-21 16:13:53 +00:00
|
|
|
<property name="editable">0</property>
|
|
|
|
<property name="wrap-mode">word</property>
|
|
|
|
<property name="cursor-visible">0</property>
|
2020-11-12 14:36:59 +00:00
|
|
|
<accessibility>
|
|
|
|
<property name="label" translatable="yes">Info</property>
|
|
|
|
<property name="description" translatable="yes">A description of the demo</property>
|
|
|
|
</accessibility>
|
2019-02-21 16:13:53 +00:00
|
|
|
</object>
|
|
|
|
</child>
|
2013-12-03 00:42:04 +00:00
|
|
|
</object>
|
2019-02-21 16:13:53 +00:00
|
|
|
</property>
|
|
|
|
<property name="tab">
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="label" translatable="yes">_Info</property>
|
|
|
|
<property name="use-underline">1</property>
|
|
|
|
</object>
|
|
|
|
</property>
|
2013-12-03 00:42:04 +00:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
2019-02-21 16:13:53 +00:00
|
|
|
<object class="GtkNotebookPage">
|
2013-12-03 00:42:04 +00:00
|
|
|
<property name="position">1</property>
|
2018-01-18 22:46:58 +00:00
|
|
|
<property name="tab-expand">1</property>
|
2019-02-21 16:13:53 +00:00
|
|
|
<property name="child">
|
|
|
|
<object class="GtkScrolledWindow" id="source-scrolledwindow">
|
|
|
|
<child>
|
|
|
|
<object class="GtkTextView" id="source-textview">
|
|
|
|
<property name="left-margin">20</property>
|
|
|
|
<property name="right-margin">20</property>
|
|
|
|
<property name="top-margin">20</property>
|
|
|
|
<property name="bottom-margin">20</property>
|
|
|
|
<property name="editable">0</property>
|
|
|
|
<property name="cursor-visible">0</property>
|
2020-08-09 04:03:43 +00:00
|
|
|
<property name="monospace">1</property>
|
|
|
|
<property name="wrap-mode">word</property>
|
|
|
|
<property name="pixels-above-lines">2</property>
|
|
|
|
<property name="pixels-below-lines">2</property>
|
2020-11-12 14:36:59 +00:00
|
|
|
<accessibility>
|
|
|
|
<property name="label" translatable="yes">Source</property>
|
|
|
|
<property name="description" translatable="yes">The source code of the demo</property>
|
|
|
|
</accessibility>
|
2019-02-21 16:13:53 +00:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</property>
|
|
|
|
<property name="tab">
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="label" translatable="yes">Source</property>
|
|
|
|
</object>
|
|
|
|
</property>
|
2013-12-03 00:42:04 +00:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</interface>
|