[76a07db] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[ce9d22a] | 7 | <!ENTITY gtk3-download-http
|
---|
| 8 | "&gnome-download-http;/gtk+/3.2/gtk+->k3-version;.tar.xz">
|
---|
| 9 | <!ENTITY gtk3-download-ftp
|
---|
| 10 | "&gnome-download-ftp;/gtk+/3.2/gtk+->k3-version;.tar.xz">
|
---|
| 11 | <!ENTITY gtk3-md5sum "3fe73e4af079b7e891ca417faed71139">
|
---|
[76a07db] | 12 | <!ENTITY gtk3-size "12 MB">
|
---|
[ce9d22a] | 13 | <!ENTITY gtk3-buildsize "325 MB">
|
---|
| 14 | <!ENTITY gtk3-time "2.9 SBU">
|
---|
[76a07db] | 15 | ]>
|
---|
| 16 |
|
---|
[89488b4] | 17 | <sect1 id="gtk3" xreflabel="gtk+->k3-version;">
|
---|
[76a07db] | 18 | <?dbhtml filename="gtk3.html"?>
|
---|
| 19 |
|
---|
| 20 | <sect1info>
|
---|
[7e2c95d] | 21 | <othername>$LastChangedBy$</othername>
|
---|
| 22 | <date>$Date$</date>
|
---|
[76a07db] | 23 | </sect1info>
|
---|
| 24 |
|
---|
[89488b4] | 25 | <title>gtk+->k3-version;</title>
|
---|
[76a07db] | 26 |
|
---|
| 27 | <indexterm zone="gtk3">
|
---|
[89488b4] | 28 | <primary sortas="a-gtk3">gtk+-3</primary>
|
---|
[76a07db] | 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to gtk+-3</title>
|
---|
| 33 |
|
---|
[ce9d22a] | 34 | <para>
|
---|
| 35 | The <application>Gtk+-3</application> package contains
|
---|
| 36 | <application>Gtk+-3</application> libraries. These are used for creating
|
---|
| 37 | graphical user interfaces for applications.
|
---|
| 38 | </para>
|
---|
[76a07db] | 39 |
|
---|
[4c77a949] | 40 | &lfs71_checked;
|
---|
[76a07db] | 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
[ce9d22a] | 45 | <para>
|
---|
| 46 | Download (HTTP): <ulink url=">k3-download-http;"/>
|
---|
| 47 | </para>
|
---|
[76a07db] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[ce9d22a] | 50 | <para>
|
---|
| 51 | Download (FTP): <ulink url=">k3-download-ftp;"/>
|
---|
| 52 | </para>
|
---|
[76a07db] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[ce9d22a] | 55 | <para>
|
---|
| 56 | Download MD5 sum: >k3-md5sum;
|
---|
| 57 | </para>
|
---|
[76a07db] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[ce9d22a] | 60 | <para>
|
---|
| 61 | Download size: >k3-size;
|
---|
| 62 | </para>
|
---|
[76a07db] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[ce9d22a] | 65 | <para>
|
---|
| 66 | Estimated disk space required: >k3-buildsize;
|
---|
| 67 | </para>
|
---|
[76a07db] | 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
[ce9d22a] | 70 | <para>
|
---|
| 71 | Estimated build time: >k3-time;
|
---|
| 72 | </para>
|
---|
[76a07db] | 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
| 75 |
|
---|
[89488b4] | 76 | <bridgehead renderas="sect3">gtk+-3 Dependencies</bridgehead>
|
---|
[76a07db] | 77 |
|
---|
| 78 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[ce9d22a] | 79 | <para role="required">
|
---|
| 80 | <xref linkend="cairo"/> (compiled with support for glib and libX11),
|
---|
| 81 | <xref linkend="atk"/>,
|
---|
| 82 | <xref linkend="pango"/>,
|
---|
| 83 | <xref linkend="gdk-pixbuf"/> and
|
---|
| 84 | <xref linkend="x-window-system"/> (specifically,
|
---|
| 85 | <application>libX11</application>, <application>libXext</application>,
|
---|
| 86 | <application>libXi</application> and <application>libXrender</application>
|
---|
| 87 | are required, <application>libXinerama</application>,
|
---|
| 88 | <application>libXcomposite</application>,
|
---|
| 89 | <application>libXrandr</application> and
|
---|
| 90 | <application>libXdamage</application> are optional)
|
---|
| 91 | </para>
|
---|
[76a07db] | 92 |
|
---|
| 93 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[ce9d22a] | 94 | <para role="optional">
|
---|
| 95 | <xref linkend="cups"/>,
|
---|
| 96 | <xref linkend="docbook-utils"/>,
|
---|
| 97 | <xref linkend="colord"/>,
|
---|
| 98 | <xref linkend="gobject-introspection"/> (required if you want to build
|
---|
| 99 | <xref linkend="gnome"/>. NB, you will need to install
|
---|
| 100 | <application>Gobject Introspection</application> before you install
|
---|
| 101 | <xref linkend="atk"/>, <xref linkend="pango"/> and
|
---|
| 102 | <xref linkend="gdk-pixbuf"/>.) and
|
---|
| 103 | <xref linkend="gtk-doc"/> (only needed if you want to rebuild the
|
---|
| 104 | documentation).
|
---|
| 105 | </para>
|
---|
| 106 |
|
---|
| 107 | <para condition="html" role="usernotes">
|
---|
| 108 | User Notes: <ulink url="&blfs-wiki;/gtk3"/>
|
---|
| 109 | </para>
|
---|
[76a07db] | 110 | </sect2>
|
---|
| 111 |
|
---|
| 112 | <sect2 role="installation">
|
---|
[89488b4] | 113 | <title>Installation of gtk+-3</title>
|
---|
[76a07db] | 114 |
|
---|
[ce9d22a] | 115 | <para>
|
---|
| 116 | Install <application>Gtk+-3</application> by running the following
|
---|
| 117 | commands:
|
---|
| 118 | </para>
|
---|
[76a07db] | 119 |
|
---|
[60ba44f] | 120 | <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc &&
|
---|
[76a07db] | 121 | make</userinput></screen>
|
---|
| 122 |
|
---|
[ce9d22a] | 123 | <para>
|
---|
| 124 | To test the results:
|
---|
| 125 | </para>
|
---|
[76a07db] | 126 |
|
---|
| 127 | <screen><userinput>rm tests/css/parser/selector.css &&
|
---|
| 128 | rm tests/a11y/pickers.ui &&
|
---|
| 129 | make check</userinput></screen>
|
---|
| 130 |
|
---|
[ce9d22a] | 131 | <para>
|
---|
| 132 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 133 | </para>
|
---|
[76a07db] | 134 |
|
---|
| 135 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 136 | </sect2>
|
---|
| 137 |
|
---|
| 138 | <sect2 role="commands">
|
---|
| 139 | <title>Command Explanations</title>
|
---|
| 140 |
|
---|
[ce9d22a] | 141 | <para>
|
---|
| 142 | <parameter>--disable-packagekit</parameter>: This parameter disables use
|
---|
| 143 | of PackageKit which isn't suitable for BLFS.
|
---|
| 144 | </para>
|
---|
[76a07db] | 145 |
|
---|
[ce9d22a] | 146 | <para>
|
---|
| 147 | <command>rm tests/css/parser/selector.css</command> and
|
---|
| 148 | <command>rm tests/a11y/pickers.ui</command>: This prevents two tests
|
---|
| 149 | being run as they are known to fail.
|
---|
| 150 | </para>
|
---|
[76a07db] | 151 | </sect2>
|
---|
| 152 |
|
---|
| 153 | <sect2 role="configuration">
|
---|
| 154 | <title>Configuring gtk+-3</title>
|
---|
| 155 |
|
---|
| 156 | <sect3 id="gtk3-config">
|
---|
| 157 | <title>Config Files</title>
|
---|
[ce9d22a] | 158 | <para>
|
---|
| 159 | <filename>~/.config/gtk-3.0/settings.ini</filename> and
|
---|
| 160 | <filename>/etc/gtk-3.0/settings.ini</filename>
|
---|
| 161 | </para>
|
---|
[76a07db] | 162 |
|
---|
| 163 | <indexterm zone="gtk3 gtk3-config">
|
---|
| 164 | <primary sortas="e-AA.home-settings.ini">~/.config/gtk-3.0/settings.ini</primary>
|
---|
| 165 | </indexterm>
|
---|
| 166 |
|
---|
| 167 | <indexterm zone="gtk3 gtk3-config">
|
---|
| 168 | <primary sortas="e-etc-path-settings.ini">/etc/gtk-3.0/settings.ini</primary>
|
---|
| 169 | </indexterm>
|
---|
| 170 | </sect3>
|
---|
| 171 |
|
---|
| 172 | <sect3><title>Configuration Information</title>
|
---|
| 173 |
|
---|
[ce9d22a] | 174 | <para>
|
---|
| 175 | Gtk+-3 themes change the way a gtk application looks. An icon theme can
|
---|
| 176 | be used to change the icons that appear on the application's toolbar. If
|
---|
| 177 | you have installed a Gtk+-3 theme (eg
|
---|
| 178 | <xref linkend="gnome-themes-standard"/> or an icon theme (such as
|
---|
| 179 | <xref linkend="gnome-icon-theme"/>) you can set your prefences in
|
---|
| 180 | <filename>~/.config/gtk-3.0/settings.ini</filename>:
|
---|
| 181 | </para>
|
---|
[76a07db] | 182 |
|
---|
| 183 | <screen><userinput>cat > ~/.config/gtk-3.0/settings.ini << "EOF"
|
---|
| 184 | [Settings]
|
---|
| 185 | gtk-theme-name = <replaceable>Adwaita</replaceable>
|
---|
| 186 | gtk-fallback-icon-theme = <replaceable>gnome</replaceable>
|
---|
| 187 | EOF</userinput></screen>
|
---|
| 188 |
|
---|
[ce9d22a] | 189 | <para>
|
---|
| 190 | There are many more themes available at
|
---|
| 191 | <ulink url="http://gnome-look.org/"/> and other places.
|
---|
| 192 | </para>
|
---|
[76a07db] | 193 |
|
---|
[ce9d22a] | 194 | <para>
|
---|
| 195 | Once you've settled on themes you like, you can (as the
|
---|
| 196 | <systemitem class="username">root</systemitem> user) make them the
|
---|
| 197 | default system wide:
|
---|
| 198 | </para>
|
---|
[76a07db] | 199 |
|
---|
| 200 | <screen role="root"><userinput>cat > /etc/gtk-3.0/settings.ini << "EOF"[Settings]
|
---|
| 201 | gtk-theme-name = <replaceable>Clearwaita</replaceable>
|
---|
| 202 | gtk-fallback-icon-theme = <replaceable>elementary</replaceable>
|
---|
| 203 | EOF</userinput></screen>
|
---|
| 204 | </sect3>
|
---|
| 205 | </sect2>
|
---|
| 206 |
|
---|
| 207 | <sect2 role="content">
|
---|
| 208 | <title>Contents</title>
|
---|
| 209 |
|
---|
| 210 | <segmentedlist>
|
---|
| 211 | <segtitle>Installed Programs</segtitle>
|
---|
| 212 | <segtitle>Installed Libraries</segtitle>
|
---|
| 213 | <segtitle>Installed Directories</segtitle>
|
---|
| 214 |
|
---|
| 215 | <seglistitem>
|
---|
| 216 | <seg>gtk3-demo, gtk-query-immodules-3.0, and gtk-update-icon-cache</seg>
|
---|
| 217 | <seg>libgailutil.so, libgdk-3.so, and libgtk-3.so</seg>
|
---|
[ce9d22a] | 218 | <seg>
|
---|
| 219 | /etc/gtk-3.0, /usr/include/gtk-3.0, /usr/include/gail-3.0,
|
---|
| 220 | /usr/lib/gtk-3.0 and /usr/share/gtk-3.0
|
---|
| 221 | </seg>
|
---|
[76a07db] | 222 | </seglistitem>
|
---|
| 223 | </segmentedlist>
|
---|
| 224 |
|
---|
| 225 | <variablelist>
|
---|
| 226 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 227 | <?dbfo list-presentation="list"?>
|
---|
| 228 | <?dbhtml list-presentation="table"?>
|
---|
| 229 |
|
---|
| 230 | <varlistentry id="gtk3-demo">
|
---|
| 231 | <term><command>gtk3-demo</command></term>
|
---|
| 232 | <listitem>
|
---|
[ce9d22a] | 233 | <para>
|
---|
| 234 | is a simple program that demonstrates some of the things that can be
|
---|
| 235 | done with <application>Gtk+-3</application>
|
---|
| 236 | </para>
|
---|
[76a07db] | 237 | <indexterm zone="gtk3 gtk3-demo">
|
---|
| 238 | <primary sortas="b-gtk3-demo">gtk3-demo</primary>
|
---|
| 239 | </indexterm>
|
---|
| 240 | </listitem>
|
---|
| 241 | </varlistentry>
|
---|
| 242 |
|
---|
| 243 | <varlistentry id="gtk-query-immodules-3.0">
|
---|
| 244 | <term><command>gtk-query-immodules-3.0</command></term>
|
---|
| 245 | <listitem>
|
---|
[ce9d22a] | 246 | <para>
|
---|
| 247 | collects information about loadable input method modules for
|
---|
| 248 | <application>Gtk+-3</application> and writes it to the default cache
|
---|
| 249 | file location, or to standard output.
|
---|
| 250 | </para>
|
---|
[76a07db] | 251 | <indexterm zone="gtk3 gtk-query-immodules-3.0">
|
---|
| 252 | <primary sortas="b-gtk-query-immodules-3.0">gtk-query-immodules-3.0</primary>
|
---|
| 253 | </indexterm>
|
---|
| 254 | </listitem>
|
---|
| 255 | </varlistentry>
|
---|
| 256 |
|
---|
| 257 | <varlistentry id="gtk-update-icon-cache3">
|
---|
| 258 | <term><command>gtk-update-icon-cache</command></term>
|
---|
| 259 | <listitem>
|
---|
[ce9d22a] | 260 | <para>
|
---|
| 261 | is an icon theme caching utility that creates mmap()able cache files
|
---|
| 262 | for icon themes.
|
---|
| 263 | </para>
|
---|
[76a07db] | 264 | <indexterm zone="gtk3 gtk-update-icon-cache3">
|
---|
| 265 | <primary sortas="b-gtk-update-icon-cache3">gtk-update-icon-cache</primary>
|
---|
| 266 | </indexterm>
|
---|
| 267 | </listitem>
|
---|
| 268 | </varlistentry>
|
---|
| 269 |
|
---|
| 270 | <varlistentry id="libgailutil">
|
---|
| 271 | <term><filename class='libraryfile'>libgailutil.so</filename></term>
|
---|
| 272 | <listitem>
|
---|
[ce9d22a] | 273 | <para>
|
---|
| 274 | contains functions that implements the accessibility interfaces
|
---|
| 275 | defined by the GNOME Accessibility Toolkit
|
---|
| 276 | </para>
|
---|
[76a07db] | 277 | <indexterm zone="gtk3 libgailutil">
|
---|
| 278 | <primary sortas="c-libgailutil">libgailutil.so</primary>
|
---|
| 279 | </indexterm>
|
---|
| 280 | </listitem>
|
---|
| 281 | </varlistentry>
|
---|
| 282 |
|
---|
| 283 | <varlistentry id="libgdk-3">
|
---|
| 284 | <term><filename class='libraryfile'>libgdk-3.so</filename></term>
|
---|
| 285 | <listitem>
|
---|
[ce9d22a] | 286 | <para>
|
---|
| 287 | contains functions that act as a wrapper around the low-level
|
---|
| 288 | drawing and windowing functions provided by the underlying graphics
|
---|
| 289 | system (libX11 for now, but maybe in the future Wayland).
|
---|
| 290 | </para>
|
---|
[76a07db] | 291 | <indexterm zone="gtk3 libgdk-3">
|
---|
| 292 | <primary sortas="c-libgdk-3">libgdk-3.so</primary>
|
---|
| 293 | </indexterm>
|
---|
| 294 | </listitem>
|
---|
| 295 | </varlistentry>
|
---|
| 296 |
|
---|
| 297 | <varlistentry id="libgtk-3">
|
---|
| 298 | <term><filename class='libraryfile'>libgtk-3.so</filename></term>
|
---|
| 299 | <listitem>
|
---|
[ce9d22a] | 300 | <para>
|
---|
| 301 | contains functions that provide an API to implement graphical user
|
---|
| 302 | interfaces.
|
---|
| 303 | </para>
|
---|
[76a07db] | 304 | <indexterm zone="gtk3 libgtk-3">
|
---|
| 305 | <primary sortas="c-libgtk-3">libgtk-3.so</primary>
|
---|
| 306 | </indexterm>
|
---|
| 307 | </listitem>
|
---|
| 308 | </varlistentry>
|
---|
| 309 | </variablelist>
|
---|
| 310 | </sect2>
|
---|
| 311 | </sect1>
|
---|