2015-04-27 22:51:46 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
|
|
]>
|
2016-10-18 14:27:45 +00:00
|
|
|
<refentry id="gtk4-builder-tool">
|
2015-04-27 22:51:46 +00:00
|
|
|
|
|
|
|
<refentryinfo>
|
2016-10-18 14:27:45 +00:00
|
|
|
<title>gtk4-builder-tool</title>
|
2015-04-27 22:51:46 +00:00
|
|
|
<productname>GTK+</productname>
|
|
|
|
<authorgroup>
|
|
|
|
<author>
|
|
|
|
<contrib>Developer</contrib>
|
|
|
|
<firstname>Matthias</firstname>
|
|
|
|
<surname>Clasen</surname>
|
|
|
|
</author>
|
|
|
|
</authorgroup>
|
|
|
|
</refentryinfo>
|
|
|
|
|
|
|
|
<refmeta>
|
2016-10-18 14:27:45 +00:00
|
|
|
<refentrytitle>gtk4-builder-tool</refentrytitle>
|
2015-04-27 22:51:46 +00:00
|
|
|
<manvolnum>1</manvolnum>
|
|
|
|
<refmiscinfo class="manual">User Commands</refmiscinfo>
|
|
|
|
</refmeta>
|
|
|
|
|
|
|
|
<refnamediv>
|
2016-10-18 14:27:45 +00:00
|
|
|
<refname>gtk4-builder-tool</refname>
|
2015-04-27 22:51:46 +00:00
|
|
|
<refpurpose>GtkBuilder file utility</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsynopsisdiv>
|
|
|
|
<cmdsynopsis>
|
2016-10-18 14:27:45 +00:00
|
|
|
<command>gtk4-builder-tool</command>
|
2015-04-28 03:31:03 +00:00
|
|
|
<arg choice="opt"><replaceable>COMMAND</replaceable></arg>
|
2016-01-31 17:57:50 +00:00
|
|
|
<arg choice="opt" rep="repeat"><replaceable>OPTION</replaceable></arg>
|
2015-04-27 22:51:46 +00:00
|
|
|
<arg choice="plain"><replaceable>FILE</replaceable></arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
</refsynopsisdiv>
|
|
|
|
|
|
|
|
<refsect1><title>Description</title>
|
|
|
|
<para>
|
2016-10-18 14:27:45 +00:00
|
|
|
<command>gtk4-builder-tool</command> can perform various operations
|
2015-04-28 03:31:03 +00:00
|
|
|
on GtkBuilder .ui files.
|
2015-04-27 22:51:46 +00:00
|
|
|
</para>
|
2015-05-02 14:12:54 +00:00
|
|
|
<para>
|
2016-10-18 14:27:45 +00:00
|
|
|
You should always test the modified .ui files produced by gtk4-builder-tool
|
2015-05-02 14:12:54 +00:00
|
|
|
before using them in production.
|
|
|
|
</para>
|
2015-04-27 22:51:46 +00:00
|
|
|
</refsect1>
|
|
|
|
|
2015-04-28 03:31:03 +00:00
|
|
|
<refsect1><title>Commands</title>
|
|
|
|
<para>The following commands are understood:</para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><option>validate</option></term>
|
2015-05-02 14:12:54 +00:00
|
|
|
<listitem><para>Validates the .ui file and report errors to stderr.</para></listitem>
|
2015-04-28 03:31:03 +00:00
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><option>simplify</option></term>
|
2015-05-02 14:12:54 +00:00
|
|
|
<listitem><para>Simplifies the .ui file by removing properties that
|
2016-11-13 03:29:02 +00:00
|
|
|
are set to their default values and write the resulting XML to stdout,
|
|
|
|
or back to the input file.</para></listitem>
|
2015-04-28 03:31:03 +00:00
|
|
|
</varlistentry>
|
2015-04-30 11:11:49 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term><option>enumerate</option></term>
|
2015-05-02 14:12:54 +00:00
|
|
|
<listitem><para>Lists all the named objects that are created in the .ui file.</para></listitem>
|
2015-04-30 11:11:49 +00:00
|
|
|
</varlistentry>
|
2016-01-29 14:42:18 +00:00
|
|
|
<varlistentry>
|
2016-01-31 17:57:50 +00:00
|
|
|
<term><option>preview</option></term>
|
|
|
|
<listitem><para>Preview the .ui file. This command accepts options
|
|
|
|
to specify the ID of an object and a .css file to use.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
|
|
|
|
2016-11-13 03:29:02 +00:00
|
|
|
<refsect1><title>Simplify Options</title>
|
|
|
|
<para>The <option>simplify</option> command accepts the following options:</para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><option>--replace</option></term>
|
|
|
|
<listitem><para>Write the content back to the .ui file instead of stdout.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
|
|
|
|
2016-01-31 17:57:50 +00:00
|
|
|
<refsect1><title>Preview Options</title>
|
|
|
|
<para>The <option>preview</option> command accepts the following options:</para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><option>--id=<arg choice="plain">ID</arg></option></term>
|
|
|
|
<listitem><para>The ID of the object to preview. If not specified,
|
2016-10-18 14:27:45 +00:00
|
|
|
gtk4-builder-tool will choose a suitable object on its own.</para></listitem>
|
2016-01-31 17:57:50 +00:00
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><option>--css=<arg choice="plain">FILE</arg></option></term>
|
|
|
|
<listitem><para>Load style information from the given .css file.</para></listitem>
|
2016-01-29 14:42:18 +00:00
|
|
|
</varlistentry>
|
2015-04-28 03:31:03 +00:00
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
|
|
|
|
2015-04-27 22:51:46 +00:00
|
|
|
</refentry>
|