<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
<!--ArborText, Inc., 1988-1999, v.4002-->
<!ENTITY cmd "gtk-builder-convert">
<!ENTITY % commonents SYSTEM "smancommon.ent">
%commonents;
<!ENTITY % booktitles SYSTEM "booktitles.ent">
%booktitles;
<!ENTITY suncopy "Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved.">
]>
<refentry id="gtk-builder-convert-1">
<!-- %Z%%M% %I% %E% SMI; -->
<refmeta><refentrytitle>gtk-builder-convert</refentrytitle><manvolnum>1</manvolnum>
<refmiscinfo class="date">21 Nov 2007</refmiscinfo>
<refmiscinfo class="sectdesc">&man1;</refmiscinfo>
<refmiscinfo class="software">&release;</refmiscinfo>
<refmiscinfo class="arch">generic</refmiscinfo>
<refmiscinfo class="copyright">&suncopy;</refmiscinfo>
</refmeta>
<indexterm><primary>gtk-builder-convert</primary></indexterm>
<indexterm><primary>Glade file conversion utility</primary></indexterm>
<refnamediv id="gtk-builder-convert-1-name">
<refname>gtk-builder-convert</refname>
<refpurpose>Glade file conversion utility</refpurpose>
</refnamediv>
<refsynopsisdiv id="gtk-builder-convert-1-synp"><title>&synp-tt;</title>
<cmdsynopsis><command>&cmd;</command>
<arg choice="opt"><option>-help</option></arg>
<arg choice="opt"><option>-skip-windows</option></arg>
<arg choice="opt"><option>-root=<replaceable>name</replaceable></option></arg>
<arg choice="req">input_glade_file</arg>
<arg choice="req">output_XML_file</arg>
</cmdsynopsis></refsynopsisdiv>
<refsect1 id="gtk-builder-convert-1-desc"><title>&desc-tt;</title>
<para>
<command>&cmd;</command> converts glade files into XML files which can be
loaded with GTKBuilder.
</para>
<para>
It expects the first argument to be the name of the glade file and the second
argument to be the file name where the generated XML is saved.
</para>
</refsect1>
<refsect1 id="gtk-builder-convert-1-opts"><title>&opts-tt;</title>
<para>
The following options are supported:
</para>
<variablelist termlength="medium">
<varlistentry>
<term><option>h</option>, <option>-help</option></term>
<listitem><para>
Display help text.
</para></listitem></varlistentry>
<varlistentry>
<term><option>w</option>, <option>-skip-windows</option></term>
<listitem><para>
Convert everything but GtkWindow subclasses.
</para></listitem></varlistentry>
<varlistentry>
<term><option>r</option>, <option>-root</option>=<replaceable>name</replaceable></term>
<listitem><para>
Convert only the widget named <replaceable>name</replaceable> and its children.
</para></listitem></varlistentry>
</variablelist>
</refsect1>
<refsect1 id="gtk-builder-convert-1-oper"><title>&oper-tt;</title>
<para>
The following operands are supported:
</para>
<variablelist termlength="medium">
<varlistentry>
<term><option role="nodash"><replaceable>input_glade_file</replaceable></option></term>
<listitem><para>
Input glade file.
</para></listitem></varlistentry>
<varlistentry>
<term><option role="nodash"><replaceable>output_XML_file</replaceable></option></term>
<listitem><para>
Output XML file.
</para></listitem></varlistentry>
</variablelist></refsect1>
<refsect1 id="gtk-builder-convert-1-exit"><title>&exit-tt;</title>
<para>
The following exit values are returned:
</para>
<variablelist termlength="xtranarrow"><varlistentry>
<term><returnvalue>0</returnvalue></term>
<listitem><para>
Application exited successfully
</para></listitem></varlistentry>
<varlistentry>
<term><returnvalue>>0</returnvalue></term>
<listitem><para>
Application exited with failure
</para></listitem></varlistentry>
</variablelist>
</refsect1>
<refsect1 id="gtk-builder-convert-1-file"><title>&file-tt;</title>
<para>
The following files are used by this application:
</para>
<variablelist termlength="wide">
<varlistentry>
<term><filename>/usr/bin/&cmd;</filename></term>
<listitem><para>
The command-line executable for the application.
</para></listitem></varlistentry>
</variablelist>
</refsect1>
<refsect1 id="gtk-builder-convert-1-attr"><title>&attr-tt;</title>
<para>
See
<olink targetdocent="REFMAN5" localinfo="attributes-5">
<citerefentry><refentrytitle>attributes</refentrytitle>
<manvolnum>5</manvolnum></citerefentry></olink>
for descriptions of the following attributes:
</para>
<informaltable frame="all">
<tgroup cols="2" colsep="1" rowsep="1">
<colspec colname="COLSPEC0" colwidth="1*">
<colspec colname="COLSPEC1" colwidth="1*">
<thead>
<row>
<entry align="center" valign="middle">ATTRIBUTE TYPE</entry>
<entry align="center" valign="middle">ATTRIBUTE VALUE</entry>
</row>
</thead>
<tbody>
<row>
<entry><para>Availability</para></entry>
<entry><para>library/desktop/gtk2</para></entry>
</row>
<row>
<entry colname="COLSPEC0"><para>Interface stability</para></entry>
<entry colname="COLSPEC1"><para>Committed</para></entry>
</row>
</tbody></tgroup></informaltable>
</refsect1>
<refsect1 id="gtk-builder-convert-1-also"><title>&also-tt;</title>
<!--Reference to another man page-->
<!--Reference to a Help manual-->
<!--Reference to a book.-->
<para>
<citerefentry><refentrytitle>glade-3</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>libglade-2.0</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>libgtk-x11-2.0</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
<citerefentry><refentrytitle>gnome-interfaces</refentrytitle><manvolnum>5</manvolnum></citerefentry>
</para>
<para>
Latest version of the <citetitle>GNOME Desktop User Guide</citetitle> for your
platform.
</para>
</refsect1>
<refsect1 id="gtk-builder-convert-1-note"><title>&note-tt;</title>
<para>
Toolbars are not handled.
</para>
<para>
Support for accessibility is not yet implemented.
</para>
<para>
The script requires a python interpreter to run.
</para>
<para>
Written by Johan Dahlin, Async Open Source, Ghee Teo, Sun Microsystems Inc.,
2007.
</para>
</refsect1>
</refentry>