mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +00:00
5729ea7744
GtkWidget already has hexpand/vexpand properties.
177 lines
7.2 KiB
XML
177 lines
7.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<!-- interface-requires gtk+ 3.10 -->
|
|
<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"/>
|
|
<child type="titlebar">
|
|
<object class="GtkHeaderBar" id="headerbar">
|
|
<property name="visible">1</property>
|
|
<property name="show-close-button">1</property>
|
|
<child>
|
|
<object class="GtkButton">
|
|
<property name="visible">1</property>
|
|
<property name="valign">center</property>
|
|
<property name="can_focus">1</property>
|
|
<property name="action_name">win.run</property>
|
|
<style>
|
|
<class name="text-button"/>
|
|
</style>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="visible">1</property>
|
|
<property name="label" translatable="yes">Run</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="visible">1</property>
|
|
<child>
|
|
<object class="GtkFrame">
|
|
<property name="visible">1</property>
|
|
<child>
|
|
<object class="GtkScrolledWindow">
|
|
<property name="width_request">120</property>
|
|
<property name="visible">1</property>
|
|
<property name="can_focus">1</property>
|
|
<property name="hscrollbar_policy">never</property>
|
|
<property name="min_content_width">150</property>
|
|
<child>
|
|
<object class="GtkTreeView" id="treeview">
|
|
<property name="visible">1</property>
|
|
<property name="can_focus">1</property>
|
|
<property name="model">treestore</property>
|
|
<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">
|
|
<child>
|
|
<object class="GtkCellRendererText"/>
|
|
<attributes>
|
|
<attribute name="style">4</attribute>
|
|
<attribute name="text">1</attribute>
|
|
</attributes>
|
|
</child>
|
|
<child>
|
|
<object class="GtkCellRendererText">
|
|
<property name="text"> </property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkNotebook" id="notebook">
|
|
<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>
|
|
<property name="expand">1</property>
|
|
<child>
|
|
<object class="GtkScrolledWindow">
|
|
<property name="visible">1</property>
|
|
<property name="can_focus">1</property>
|
|
<child>
|
|
<object class="GtkTextView" id="info-textview">
|
|
<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>
|
|
<property name="editable">0</property>
|
|
<property name="wrap_mode">word</property>
|
|
<property name="cursor_visible">0</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="tab_expand">1</property>
|
|
</packing>
|
|
</child>
|
|
<child type="tab">
|
|
<object class="GtkLabel">
|
|
<property name="visible">1</property>
|
|
<property name="label" translatable="yes">_Info</property>
|
|
<property name="use_underline">1</property>
|
|
</object>
|
|
<packing>
|
|
<property name="tab_expand">1</property>
|
|
<property name="tab_fill">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkScrolledWindow" id="source-scrolledwindow">
|
|
<property name="visible">1</property>
|
|
<property name="can_focus">1</property>
|
|
<child>
|
|
<object class="GtkTextView" id="source-textview">
|
|
<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="editable">0</property>
|
|
<property name="cursor_visible">0</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="position">1</property>
|
|
<property name="tab_expand">1</property>
|
|
</packing>
|
|
</child>
|
|
<child type="tab">
|
|
<object class="GtkLabel">
|
|
<property name="visible">1</property>
|
|
<property name="label" translatable="yes">Source</property>
|
|
</object>
|
|
<packing>
|
|
<property name="position">1</property>
|
|
<property name="tab_fill">0</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</interface>
|