gtk2/demos/gtk-demo/main.ui

191 lines
7.7 KiB
Plaintext
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<interface>
2013-12-03 01:35:57 +00:00
<!-- interface-requires gtk+ 3.10 -->
<menu id="appmenu">
<section>
<item>
<attribute name="label" translatable="yes">About</attribute>
<attribute name="action">app.about</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">_Quit</attribute>
<attribute name="action">app.quit</attribute>
<attribute name="accel">&lt;Primary&gt;q</attribute>
</item>
</section>
</menu>
<object class="GtkTreeStore" id="treestore">
<columns>
<!-- column-name NAME -->
<column type="gchararray"/>
<!-- column-name TITLE -->
<column type="gchararray"/>
<!-- column-name FILENAME -->
<column type="gchararray"/>
<!-- column-name FUNC -->
<column type="gpointer"/>
<!-- column-name STYLE -->
<column type="gint"/>
</columns>
</object>
<object class="GtkApplicationWindow" id="window">
<property name="default-width">800</property>
<property name="default-height">600</property>
<property name="title">GTK+ Demo</property>
<signal name="delete-event" handler="gtk_false" swapped="no"/>
<signal name="destroy" handler="gtk_main_quit" swapped="no"/>
2013-12-03 01:35:57 +00:00
<child type="titlebar">
<object class="GtkHeaderBar" id="headerbar">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="show-close-button">1</property>
2013-12-03 01:35:57 +00:00
<child>
<object class="GtkButton" id="run_button">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
2013-12-03 01:35:57 +00:00
<property name="valign">center</property>
2015-09-09 21:34:32 +00:00
<property name="can_focus">1</property>
2013-12-03 01:35:57 +00:00
<property name="action_name">win.run</property>
<style>
2013-12-03 16:44:07 +00:00
<class name="text-button"/>
2013-12-03 01:35:57 +00:00
</style>
<child>
<object class="GtkLabel" id="run_label">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="label" translatable="yes">Run</property>
2013-12-03 01:35:57 +00:00
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox" id="box1">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<child>
<object class="GtkFrame">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<child>
<object class="GtkScrolledWindow" id="scrolledwindow">
<property name="width_request">120</property>
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="can_focus">1</property>
<property name="hscrollbar_policy">never</property>
<property name="min_content_width">150</property>
<style>
<class name="sidebar"/>
</style>
<child>
<object class="GtkTreeView" id="treeview">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="can_focus">1</property>
<property name="model">treestore</property>
2015-09-09 21:34:32 +00:00
<property name="headers_visible">0</property>
<child internal-child="selection">
<object class="GtkTreeSelection" id="treeview-selection">
<property name="mode">browse</property>
</object>
</child>
<child>
<object class="GtkTreeViewColumn" id="treeviewcolumn1">
<property name="title" translatable="yes">column</property>
<child>
<object class="GtkCellRendererText" id="cellrenderertext1"/>
<attributes>
<attribute name="style">4</attribute>
<attribute name="text">1</attribute>
</attributes>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkNotebook" id="notebook">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="can_focus">1</property>
<property name="scrollable">1</property>
<property name="enable_popup">1</property>
<property name="show_border">0</property>
<child>
<object class="GtkScrolledWindow" id="scrolledwindow1">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="can_focus">1</property>
<child>
<object class="GtkTextView" id="info-textview">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="can_focus">1</property>
<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="pixels_above_lines">2</property>
<property name="pixels_below_lines">2</property>
2015-09-09 21:34:32 +00:00
<property name="editable">0</property>
<property name="wrap_mode">word</property>
2015-09-09 21:34:32 +00:00
<property name="cursor_visible">0</property>
</object>
</child>
</object>
2013-12-03 01:02:56 +00:00
<packing>
2015-09-09 21:34:32 +00:00
<property name="tab_expand">1</property>
2013-12-03 01:02:56 +00:00
</packing>
</child>
<child type="tab">
<object class="GtkLabel" id="label1">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="label" translatable="yes">_Info</property>
2015-09-09 21:34:32 +00:00
<property name="use_underline">1</property>
</object>
<packing>
2015-09-09 21:34:32 +00:00
<property name="tab_expand">1</property>
<property name="tab_fill">0</property>
</packing>
</child>
<child>
<object class="GtkScrolledWindow" id="source-scrolledwindow">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="can_focus">1</property>
<child>
<object class="GtkTextView" id="source-textview">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="can_focus">1</property>
<property name="left-margin">20</property>
<property name="right-margin">20</property>
<property name="top-margin">20</property>
<property name="bottom-margin">20</property>
2015-09-09 21:34:32 +00:00
<property name="editable">0</property>
<property name="cursor_visible">0</property>
</object>
</child>
</object>
<packing>
<property name="position">1</property>
2015-09-09 21:34:32 +00:00
<property name="tab_expand">1</property>
</packing>
</child>
<child type="tab">
<object class="GtkLabel" id="label2">
2015-09-09 21:34:32 +00:00
<property name="visible">1</property>
<property name="label" translatable="yes">Source</property>
</object>
<packing>
<property name="position">1</property>
2015-09-09 21:34:32 +00:00
<property name="tab_fill">0</property>
</packing>
</child>
</object>
<packing>
2015-09-09 21:34:32 +00:00
<property name="expand">1</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
</object>
</interface>