mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-27 09:42:12 +08:00
7ea83d7457
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11419 af4574ff-66df-0310-9fd7-8a98e5e911e0
393 lines
12 KiB
XML
393 lines
12 KiB
XML
<?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 gtk3-download-http "&gnome-download-http;/gtk+/3.8/gtk+->k3-version;.tar.xz">
|
|
<!ENTITY gtk3-download-ftp "&gnome-download-ftp;/gtk+/3.8/gtk+->k3-version;.tar.xz">
|
|
<!ENTITY gtk3-md5sum "8e878e18fc385f2b813419dc7b40a968">
|
|
<!ENTITY gtk3-size "13 MB">
|
|
<!ENTITY gtk3-buildsize "327 MB">
|
|
<!ENTITY gtk3-time "4.0 SBU (Additional 0.8 SBU for the test suite)">
|
|
]>
|
|
|
|
<sect1 id="gtk3" xreflabel="GTK+->k3-version;">
|
|
<?dbhtml filename="gtk3.html"?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>GTK+->k3-version;</title>
|
|
|
|
<indexterm zone="gtk3">
|
|
<primary sortas="a-GTK+3">GTK+3</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to GTK+ 3</title>
|
|
|
|
<para>
|
|
The <application>GTK+ 3</application> package contains the
|
|
libraries used for creating graphical user interfaces for
|
|
applications.
|
|
</para>
|
|
|
|
&lfs73_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download (HTTP): <ulink url=">k3-download-http;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download (FTP): <ulink url=">k3-download-ftp;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download MD5 sum: >k3-md5sum;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download size: >k3-size;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated disk space required: >k3-buildsize;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated build time: >k3-time;
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">GTK+ 3 Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
<para role="required">
|
|
<xref linkend="at-spi2-atk"/>,
|
|
<xref linkend="gdk-pixbuf"/> and
|
|
<xref linkend="pango"/>
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
|
|
<para role="optional">
|
|
<xref linkend="gobject-introspection"/>
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional">
|
|
<xref linkend="colord"/>,
|
|
<xref linkend="cups"/>,
|
|
<xref linkend="docbook-utils"/>,
|
|
<xref linkend="gtk-doc"/>,
|
|
<ulink url="http://xkbcommon.org/">libxkbcommon</ulink> and
|
|
<ulink url="http://wayland.freedesktop.org/">Wayland</ulink>
|
|
</para>
|
|
|
|
<para condition="html" role="usernotes">
|
|
User Notes: <ulink url="&blfs-wiki;/gtk3"/>
|
|
</para>
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of GTK+ 3</title>
|
|
|
|
<note>
|
|
<para>
|
|
<application>GTK+ 3</application> will overwrite
|
|
<command>gtk-update-icon-cache</command> from
|
|
<xref linkend="gtk2"/> if it is installed.
|
|
There is nothing wrong about that assuming
|
|
that both programs provide same functionality.
|
|
If you wish to keep one from
|
|
<application>GTK+ 2</application> you can add
|
|
<option>--enable-gtk2-dependency</option> to the
|
|
<command>configure</command> command.
|
|
</para>
|
|
</note>
|
|
|
|
<para>
|
|
Install <application>GTK+ 3</application> by running the following
|
|
commands:
|
|
</para>
|
|
|
|
<screen><userinput>./configure --prefix=/usr --sysconfdir=/etc &&
|
|
make</userinput></screen>
|
|
|
|
<para>
|
|
Three tests are known to fail. To test the results:
|
|
</para>
|
|
|
|
<!-- notes: failures in
|
|
rm tests/a11y/pickers.ui
|
|
rm tests/reftests/image-load-from-file.ui
|
|
one test in gtk/tests/filechooser.c -->
|
|
|
|
<screen><userinput>make -k check</userinput></screen>
|
|
|
|
<para>
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
<note>
|
|
<para>
|
|
If you installed the package on to your system using a
|
|
<quote>DESTDIR</quote> method, an important file was not installed and
|
|
must be copied and/or generated. Generate it using the following
|
|
command as the <systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>gtk-query-immodules-3.0 --update-cache</userinput></screen>
|
|
</note>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
href="../../xincludes/gsettings-destdir.xml"/>
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para>
|
|
<option>--disable-packagekit</option>: switch disables use
|
|
of PackageKit which isn't needed for BLFS.
|
|
</para>
|
|
|
|
<para>
|
|
<command>rm tests/a11y/pickers.ui</command>: This prevents test
|
|
being run as it is known to fail.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="configuration">
|
|
<title>Configuring GTK+ 3</title>
|
|
|
|
<sect3 id="gtk3-config">
|
|
<title>Config Files</title>
|
|
<para>
|
|
<filename>~/.config/gtk-3.0/settings.ini</filename> and
|
|
<filename>/etc/gtk-3.0/settings.ini</filename>
|
|
</para>
|
|
|
|
<indexterm zone="gtk3 gtk3-config">
|
|
<primary sortas="e-AA.home-settings.ini">~/.config/gtk-3.0/settings.ini</primary>
|
|
</indexterm>
|
|
|
|
<indexterm zone="gtk3 gtk3-config">
|
|
<primary sortas="e-etc-path-settings.ini">/etc/gtk-3.0/settings.ini</primary>
|
|
</indexterm>
|
|
</sect3>
|
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
<para>
|
|
<application>GTK+ 3</application> themes change the way a
|
|
<application>GTK+ 3</application> application looks. An icon theme can be
|
|
used to change the icons that appear on the application's toolbar. If
|
|
you have installed a <application>GTK+ 3</application> theme (eg
|
|
<xref linkend="gnome-themes-standard"/> or an icon theme (such as
|
|
<xref linkend="gnome-icon-theme"/>) you can set your prefences in
|
|
<filename>~/.config/gtk-3.0/settings.ini</filename>. Eg:
|
|
</para>
|
|
|
|
<screen><userinput>mkdir -p ~/.config/gtk-3.0 &&
|
|
cat > ~/.config/gtk-3.0/settings.ini << "EOF"
|
|
[Settings]
|
|
gtk-theme-name = <replaceable>Adwaita</replaceable>
|
|
gtk-fallback-icon-theme = <replaceable>gnome</replaceable>
|
|
EOF</userinput></screen>
|
|
|
|
<para>
|
|
There are many more themes available at
|
|
<ulink url="http://gnome-look.org/"/> and other places.
|
|
</para>
|
|
|
|
<para>
|
|
Once you've settled on themes you like, you can (as the
|
|
<systemitem class="username">root</systemitem> user) make them the
|
|
default system wide:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>cat > /etc/gtk-3.0/settings.ini << "EOF"
|
|
[Settings]
|
|
gtk-theme-name = <replaceable>Clearwaita</replaceable>
|
|
gtk-fallback-icon-theme = <replaceable>elementary</replaceable>
|
|
EOF</userinput></screen>
|
|
</sect3>
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>
|
|
gtk-launch,
|
|
gtk-query-immodules-3.0,
|
|
gtk-update-icon-cache,
|
|
gtk3-demo,
|
|
gtk3-demo-application, and
|
|
gtk3-widget-factory
|
|
</seg>
|
|
<seg>
|
|
libgailutil.so, libgdk-3.so, and libgtk-3.so
|
|
</seg>
|
|
<seg>
|
|
/etc/gtk-3.0,
|
|
/usr/include/gail-3.0,
|
|
/usr/include/gtk-3.0,
|
|
/usr/lib/gtk-3.0,
|
|
/usr/share/gtk-3.0, and
|
|
/usr/share/gtk-doc/html/{gail-libgail-util3,gdk3,gtk3}
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="gtk-launch">
|
|
<term><command>gtk-launch</command></term>
|
|
<listitem>
|
|
<para>
|
|
launches an application using the given name. The name should match
|
|
application desktop file name, as residing in
|
|
<filename class="directory">/usr/share/application</filename>, with
|
|
or without the '.desktop' suffix.
|
|
</para>
|
|
<indexterm zone="gtk3 gtk-launch">
|
|
<primary sortas="b-gtk-launch">gtk-launch</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="gtk-query-immodules-3.0">
|
|
<term><command>gtk-query-immodules-3.0</command></term>
|
|
<listitem>
|
|
<para>
|
|
collects information about loadable input method modules for
|
|
<application>GTK+ 3</application> and writes it to the default cache
|
|
file location, or to standard output.
|
|
</para>
|
|
<indexterm zone="gtk3 gtk-query-immodules-3.0">
|
|
<primary sortas="b-gtk-query-immodules-3.0">gtk-query-immodules-3.0</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="gtk-update-icon-cache3">
|
|
<term><command>gtk-update-icon-cache</command></term>
|
|
<listitem>
|
|
<para>
|
|
is an icon theme caching utility that creates mmap()able cache files
|
|
for icon themes.
|
|
</para>
|
|
<indexterm zone="gtk3 gtk-update-icon-cache3">
|
|
<primary sortas="b-gtk-update-icon-cache3">gtk-update-icon-cache</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="gtk3-demo">
|
|
<term><command>gtk3-demo</command></term>
|
|
<listitem>
|
|
<para>
|
|
is a simple program that demonstrates some of the things that can be
|
|
done with <application>GTK+ 3</application>
|
|
</para>
|
|
<indexterm zone="gtk3 gtk3-demo">
|
|
<primary sortas="b-gtk3-demo">gtk3-demo</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="gtk3-demo-application">
|
|
<term><command>gtk3-demo-application</command></term>
|
|
<listitem>
|
|
<para>
|
|
is a simple <application>GTK+ 3</application> application.
|
|
</para>
|
|
<indexterm zone="gtk3 gtk3-demo-application">
|
|
<primary sortas="b-gtk3-demo-application">gtk3-demo-application</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="gtk3-widget-factory">
|
|
<term><command>gtk3-widget-factory</command></term>
|
|
<listitem>
|
|
<para>
|
|
is a program to view <application>GTK+ 3</application> themes and widgets.
|
|
</para>
|
|
<indexterm zone="gtk3 gtk3-widget-factory">
|
|
<primary sortas="b-gtk3-widget-factory">gtk3-widget-factory</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libgailutil-3">
|
|
<term><filename class="libraryfile">libgailutil-3.so</filename></term>
|
|
<listitem>
|
|
<para>
|
|
contains functions that implements the accessibility interfaces
|
|
defined by the <application>GNOME</application> Accessibility
|
|
Toolkit.
|
|
</para>
|
|
<indexterm zone="gtk3 libgailutil-3">
|
|
<primary sortas="c-libgailutil-3">libgailutil-3.so</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libgdk-3">
|
|
<term><filename class="libraryfile">libgdk-3.so</filename></term>
|
|
<listitem>
|
|
<para>
|
|
contains functions that act as a wrapper around the low-level
|
|
drawing and windowing functions provided by the underlying graphics
|
|
system.
|
|
</para>
|
|
<indexterm zone="gtk3 libgdk-3">
|
|
<primary sortas="c-libgdk-3">libgdk-3.so</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libgtk-3">
|
|
<term><filename class="libraryfile">libgtk-3.so</filename></term>
|
|
<listitem>
|
|
<para>
|
|
contains functions that provide an API to implement graphical user
|
|
interfaces.
|
|
</para>
|
|
<indexterm zone="gtk3 libgtk-3">
|
|
<primary sortas="c-libgtk-3">libgtk-3.so</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|