<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;

  <!ENTITY libglade-download-http "&gnome-download-http;/libglade/2.6/libglade-&libglade-version;.tar.bz2">
  <!ENTITY libglade-download-ftp  "&gnome-download-ftp;/libglade/2.6/libglade-&libglade-version;.tar.bz2">
  <!ENTITY libglade-md5sum        "d1776b40f4e166b5e9c107f1c8fe4139">
  <!ENTITY libglade-size          "348 KB">
  <!ENTITY libglade-buildsize     "5 MB">
  <!ENTITY libglade-time          "0.1 SBU">
]>

<sect1 id="libglade" xreflabel="libglade-&libglade-version;">
  <?dbhtml filename="libglade.html"?>

  <sect1info>
    <othername>$LastChangedBy: pierre $</othername>
    <date>$Date: 2015-02-22 17:34:08 -0500 (Sun, 22 Feb 2015) $</date>
  </sect1info>

  <title>libglade-&libglade-version;</title>

  <indexterm zone="libglade">
    <primary sortas="a-Libglade">Libglade</primary>
  </indexterm>

  <sect2 role="package">
    <title>Introduction to libglade</title>

    <para>The <application>libglade</application> package contains
    <filename class="libraryfile">libglade</filename> libraries. These are useful
    for loading Glade interface files in a program at runtime.</para>

    &lfs77_checked;

    <bridgehead renderas="sect3">Package Information</bridgehead>
    <itemizedlist spacing="compact">
      <listitem>
        <para>Download (HTTP): <ulink url="&libglade-download-http;"/></para>
      </listitem>
      <listitem>
        <para>Download (FTP): <ulink url="&libglade-download-ftp;"/></para>
      </listitem>
      <listitem>
        <para>Download MD5 sum: &libglade-md5sum;</para>
      </listitem>
      <listitem>
        <para>Download size: &libglade-size;</para>
      </listitem>
      <listitem>
        <para>Estimated disk space required: &libglade-buildsize;</para>
      </listitem>
      <listitem>
        <para>Estimated build time: &libglade-time;</para>
      </listitem>
    </itemizedlist>

    <bridgehead renderas="sect3">libglade Dependencies</bridgehead>

    <bridgehead renderas="sect4">Required</bridgehead>
    <para role="required"><xref linkend="libxml2"/> and
    <xref linkend="gtk2"/></para>

    <bridgehead renderas="sect4">Optional</bridgehead>
    <para role="optional"><xref linkend="python2"/>
    and <xref linkend="gtk-doc"/></para>

    <para condition="html" role="usernotes">User Notes:
    <ulink url="&blfs-wiki;/libglade"/></para>

  </sect2>

  <sect2 role="installation">
    <title>Installation of libglade</title>

    <para>Install <application>libglade</application> by running the following
    commands:</para>

<screen><userinput>sed -i '/DG_DISABLE_DEPRECATED/d' glade/Makefile.in &amp;&amp;
./configure --prefix=/usr --disable-static &amp;&amp;
make</userinput></screen>

    <para>To test the results, issue: <command>make check</command>.
    One of the tests, test-convert, is known to fail.</para>

    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>

<screen role="root"><userinput>make install</userinput></screen>

  </sect2>

  <sect2 role="commands">
    <title>Command Explanations</title>

    <para><command>sed -i '/DG_DISABLE_DEPRECATED/d'</command>: Some of the
    <application>glib</application> functions that
    <application>libglade</application> uses were declared deprecated in
    glib-2.30. This sed removes the G_DISABLE_DEPRECATED CFLAG.</para>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
      href="../../xincludes/static-libraries.xml"/>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    href="../../xincludes/gtk-doc-rebuild.xml"/>

  </sect2>

  <sect2 role="content">
    <title>Contents</title>

    <segmentedlist>
      <segtitle>Installed Program</segtitle>
      <segtitle>Installed Library</segtitle>
      <segtitle>Installed Directories</segtitle>

      <seglistitem>
        <seg>libglade-convert (requires <command>python</command>)</seg>
        <seg>libglade-2.0.so</seg>
        <seg>/usr/{include/libglade-2.0/glade,share/{gtk-doc/html/libglade,
        xml/libglade}}</seg>
      </seglistitem>
    </segmentedlist>

    <variablelist>
      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
      <?dbfo list-presentation="list"?>
      <?dbhtml list-presentation="table"?>

      <varlistentry id="libglade-convert">
        <term><command>libglade-convert</command></term>
        <listitem>
          <para>is used to convert old Glade interface files to
          Glade-2.0 standards.</para>
          <indexterm zone="libglade libglade-convert">
            <primary sortas="b-libglade-convert">libglade-convert</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="libglade-lib">
        <term><filename class='libraryfile'>libglade-2.0.so</filename></term>
        <listitem>
          <para>contain the functions necessary to load Glade interface
          files.</para>
          <indexterm zone="libglade libglade-lib">
            <primary sortas="c-libglade-2.0">libglade-2.0.so</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>
