mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
4ace873046
This conversion was done with the help of gtk4-builder-tool.
111 lines
3.9 KiB
XML
111 lines
3.9 KiB
XML
<interface>
|
|
<template class="DemoApplicationWindow" parent="GtkApplicationWindow">
|
|
<property name="title" translatable="yes">Application Class</property>
|
|
<property name="default-width">200</property>
|
|
<property name="default-height">200</property>
|
|
<property name="icon-name">document-open</property>
|
|
<child>
|
|
<object class="GtkGrid">
|
|
<child>
|
|
<object class="GtkToolbar">
|
|
<property name="hexpand">1</property>
|
|
<style>
|
|
<class name="primary-toolbar"/>
|
|
</style>
|
|
<child>
|
|
<object class="GtkMenuToolButton" id="menutool">
|
|
<property name="icon-name">document-open</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkToolButton">
|
|
<property name="icon-name">application-exit</property>
|
|
<property name="action-name">app.quit</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkSeparatorToolItem"/>
|
|
</child>
|
|
<child>
|
|
<object class="GtkToolButton">
|
|
<property name="icon-name">applications-other</property>
|
|
<property name="action-name">win.logo</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left-attach">0</property>
|
|
<property name="top-attach">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkInfoBar" id="infobar">
|
|
<property name="visible">0</property>
|
|
<property name="hexpand">1</property>
|
|
<child internal-child="content_area">
|
|
<object class="GtkBox" id="content_area">
|
|
<child>
|
|
<object class="GtkLabel" id="message">
|
|
<property name="hexpand">1</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child internal-child="action_area">
|
|
<object class="GtkBox">
|
|
<child>
|
|
<object class="GtkButton">
|
|
<property name="valign">center</property>
|
|
<property name="label" translatable="yes">_OK</property>
|
|
<property name="use-underline">1</property>
|
|
<signal name="clicked" handler="clicked_cb"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left-attach">0</property>
|
|
<property name="top-attach">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkScrolledWindow">
|
|
<property name="shadow-type">in</property>
|
|
<child>
|
|
<object class="GtkTextView">
|
|
<property name="hexpand">1</property>
|
|
<property name="vexpand">1</property>
|
|
<property name="buffer">buffer</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left-attach">0</property>
|
|
<property name="top-attach">2</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkStatusbar" id="status">
|
|
<property name="hexpand">1</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left-attach">0</property>
|
|
<property name="top-attach">3</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
<menu id="toolmenu">
|
|
<item>
|
|
<attribute name="label">File1</attribute>
|
|
<attribute name="action">win.file1</attribute>
|
|
</item>
|
|
</menu>
|
|
<object class="GtkTextBuffer" id="buffer">
|
|
<signal name="changed" handler="update_statusbar"/>
|
|
<signal name="mark-set" handler="mark_set_callback"/>
|
|
</object>
|
|
</interface>
|