[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
|
---|
[b314b388] | 8 | "&gnome-download-http;/gtk+/3.4/gtk+->k3-version;.tar.xz">
|
---|
[ce9d22a] | 9 | <!ENTITY gtk3-download-ftp
|
---|
[b314b388] | 10 | "&gnome-download-ftp;/gtk+/3.4/gtk+->k3-version;.tar.xz">
|
---|
| 11 | <!ENTITY gtk3-md5sum "2cbf02394c2c42cc597405eadabcac3e">
|
---|
| 12 | <!ENTITY gtk3-size "13 MB">
|
---|
| 13 | <!ENTITY gtk3-buildsize "330 MB">
|
---|
[ce9d22a] | 14 | <!ENTITY gtk3-time "2.9 SBU">
|
---|
[76a07db] | 15 | ]>
|
---|
| 16 |
|
---|
[742b99e] | 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 |
|
---|
[742b99e] | 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">
|
---|
[742b99e] | 32 | <title>Introduction to GTK+-3</title>
|
---|
[76a07db] | 33 |
|
---|
[ce9d22a] | 34 | <para>
|
---|
[742b99e] | 35 | The <application>GTK+-3</application> package contains
|
---|
| 36 | <application>GTK+-3</application> libraries. These are used for creating
|
---|
[ce9d22a] | 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 |
|
---|
[742b99e] | 76 | <bridgehead renderas="sect3">GTK+-3 Dependencies</bridgehead>
|
---|
[76a07db] | 77 |
|
---|
| 78 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[ce9d22a] | 79 | <para role="required">
|
---|
| 80 | <xref linkend="atk"/>,
|
---|
| 81 | <xref linkend="gdk-pixbuf"/> and
|
---|
[742b99e] | 82 | <xref linkend="pango"/>
|
---|
| 83 | </para>
|
---|
| 84 |
|
---|
| 85 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 86 | <para role="recommended">
|
---|
[ce9d22a] | 87 | </para>
|
---|
[76a07db] | 88 |
|
---|
| 89 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[ce9d22a] | 90 | <para role="optional">
|
---|
[b7a80c66] | 91 | <xref linkend="colord"/>,
|
---|
[ce9d22a] | 92 | <xref linkend="cups"/>,
|
---|
| 93 | <xref linkend="docbook-utils"/>,
|
---|
[b7a80c66] | 94 | <xref linkend="gobject-introspection"/> (required if building Gnome) and
|
---|
| 95 | <xref linkend="gtk-doc"/>.
|
---|
[ce9d22a] | 96 | </para>
|
---|
| 97 |
|
---|
| 98 | <para condition="html" role="usernotes">
|
---|
| 99 | User Notes: <ulink url="&blfs-wiki;/gtk3"/>
|
---|
| 100 | </para>
|
---|
[76a07db] | 101 | </sect2>
|
---|
| 102 |
|
---|
| 103 | <sect2 role="installation">
|
---|
[742b99e] | 104 | <title>Installation of GTK+-3</title>
|
---|
[76a07db] | 105 |
|
---|
[ce9d22a] | 106 | <para>
|
---|
[742b99e] | 107 | Install <application>GTK+-3</application> by running the following
|
---|
[ce9d22a] | 108 | commands:
|
---|
| 109 | </para>
|
---|
[76a07db] | 110 |
|
---|
[60ba44f] | 111 | <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc &&
|
---|
[76a07db] | 112 | make</userinput></screen>
|
---|
| 113 |
|
---|
[ce9d22a] | 114 | <para>
|
---|
| 115 | To test the results:
|
---|
| 116 | </para>
|
---|
[76a07db] | 117 |
|
---|
| 118 | <screen><userinput>rm tests/css/parser/selector.css &&
|
---|
| 119 | rm tests/a11y/pickers.ui &&
|
---|
| 120 | make check</userinput></screen>
|
---|
| 121 |
|
---|
[ce9d22a] | 122 | <para>
|
---|
| 123 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 124 | </para>
|
---|
[76a07db] | 125 |
|
---|
| 126 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 127 | </sect2>
|
---|
| 128 |
|
---|
| 129 | <sect2 role="commands">
|
---|
| 130 | <title>Command Explanations</title>
|
---|
| 131 |
|
---|
[ce9d22a] | 132 | <para>
|
---|
| 133 | <parameter>--disable-packagekit</parameter>: This parameter disables use
|
---|
| 134 | of PackageKit which isn't suitable for BLFS.
|
---|
| 135 | </para>
|
---|
[76a07db] | 136 |
|
---|
[ce9d22a] | 137 | <para>
|
---|
| 138 | <command>rm tests/css/parser/selector.css</command> and
|
---|
| 139 | <command>rm tests/a11y/pickers.ui</command>: This prevents two tests
|
---|
| 140 | being run as they are known to fail.
|
---|
| 141 | </para>
|
---|
[76a07db] | 142 | </sect2>
|
---|
| 143 |
|
---|
| 144 | <sect2 role="configuration">
|
---|
[742b99e] | 145 | <title>Configuring GTK+-3</title>
|
---|
[76a07db] | 146 |
|
---|
| 147 | <sect3 id="gtk3-config">
|
---|
| 148 | <title>Config Files</title>
|
---|
[ce9d22a] | 149 | <para>
|
---|
| 150 | <filename>~/.config/gtk-3.0/settings.ini</filename> and
|
---|
| 151 | <filename>/etc/gtk-3.0/settings.ini</filename>
|
---|
| 152 | </para>
|
---|
[76a07db] | 153 |
|
---|
| 154 | <indexterm zone="gtk3 gtk3-config">
|
---|
| 155 | <primary sortas="e-AA.home-settings.ini">~/.config/gtk-3.0/settings.ini</primary>
|
---|
| 156 | </indexterm>
|
---|
| 157 |
|
---|
| 158 | <indexterm zone="gtk3 gtk3-config">
|
---|
| 159 | <primary sortas="e-etc-path-settings.ini">/etc/gtk-3.0/settings.ini</primary>
|
---|
| 160 | </indexterm>
|
---|
| 161 | </sect3>
|
---|
| 162 |
|
---|
| 163 | <sect3><title>Configuration Information</title>
|
---|
| 164 |
|
---|
[ce9d22a] | 165 | <para>
|
---|
[742b99e] | 166 | GTK+-3 themes change the way a gtk application looks. An icon theme can
|
---|
[ce9d22a] | 167 | be used to change the icons that appear on the application's toolbar. If
|
---|
[742b99e] | 168 | you have installed a GTK+-3 theme (eg
|
---|
[ce9d22a] | 169 | <xref linkend="gnome-themes-standard"/> or an icon theme (such as
|
---|
| 170 | <xref linkend="gnome-icon-theme"/>) you can set your prefences in
|
---|
| 171 | <filename>~/.config/gtk-3.0/settings.ini</filename>:
|
---|
| 172 | </para>
|
---|
[76a07db] | 173 |
|
---|
| 174 | <screen><userinput>cat > ~/.config/gtk-3.0/settings.ini << "EOF"
|
---|
| 175 | [Settings]
|
---|
| 176 | gtk-theme-name = <replaceable>Adwaita</replaceable>
|
---|
| 177 | gtk-fallback-icon-theme = <replaceable>gnome</replaceable>
|
---|
| 178 | EOF</userinput></screen>
|
---|
| 179 |
|
---|
[ce9d22a] | 180 | <para>
|
---|
| 181 | There are many more themes available at
|
---|
| 182 | <ulink url="http://gnome-look.org/"/> and other places.
|
---|
| 183 | </para>
|
---|
[76a07db] | 184 |
|
---|
[ce9d22a] | 185 | <para>
|
---|
| 186 | Once you've settled on themes you like, you can (as the
|
---|
| 187 | <systemitem class="username">root</systemitem> user) make them the
|
---|
| 188 | default system wide:
|
---|
| 189 | </para>
|
---|
[76a07db] | 190 |
|
---|
| 191 | <screen role="root"><userinput>cat > /etc/gtk-3.0/settings.ini << "EOF"[Settings]
|
---|
| 192 | gtk-theme-name = <replaceable>Clearwaita</replaceable>
|
---|
| 193 | gtk-fallback-icon-theme = <replaceable>elementary</replaceable>
|
---|
| 194 | EOF</userinput></screen>
|
---|
| 195 | </sect3>
|
---|
| 196 | </sect2>
|
---|
| 197 |
|
---|
| 198 | <sect2 role="content">
|
---|
| 199 | <title>Contents</title>
|
---|
| 200 |
|
---|
| 201 | <segmentedlist>
|
---|
| 202 | <segtitle>Installed Programs</segtitle>
|
---|
| 203 | <segtitle>Installed Libraries</segtitle>
|
---|
| 204 | <segtitle>Installed Directories</segtitle>
|
---|
| 205 |
|
---|
| 206 | <seglistitem>
|
---|
[ce9d22a] | 207 | <seg>
|
---|
[742b99e] | 208 | gtk3-demo, gtk-query-immodules-3.0 and gtk-update-icon-cache
|
---|
| 209 | </seg>
|
---|
| 210 | <seg>
|
---|
| 211 | libgailutil.so, libgdk-3.so and libgtk-3.so
|
---|
| 212 | </seg>
|
---|
| 213 | <seg>
|
---|
| 214 | /etc/gtk-3.0, /usr/include/{gail-3.0,gtk-3.0},
|
---|
| 215 | /usr/lib/gtk-3.0, /usr/share/gtk-3.0 and
|
---|
| 216 | /usr/share/gtk-doc/html/{gail-libgail-util3,gdk3,gtk3}
|
---|
[ce9d22a] | 217 | </seg>
|
---|
[76a07db] | 218 | </seglistitem>
|
---|
| 219 | </segmentedlist>
|
---|
| 220 |
|
---|
| 221 | <variablelist>
|
---|
| 222 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 223 | <?dbfo list-presentation="list"?>
|
---|
| 224 | <?dbhtml list-presentation="table"?>
|
---|
| 225 |
|
---|
| 226 | <varlistentry id="gtk3-demo">
|
---|
| 227 | <term><command>gtk3-demo</command></term>
|
---|
| 228 | <listitem>
|
---|
[ce9d22a] | 229 | <para>
|
---|
| 230 | is a simple program that demonstrates some of the things that can be
|
---|
[742b99e] | 231 | done with <application>GTK+-3</application>
|
---|
[ce9d22a] | 232 | </para>
|
---|
[76a07db] | 233 | <indexterm zone="gtk3 gtk3-demo">
|
---|
| 234 | <primary sortas="b-gtk3-demo">gtk3-demo</primary>
|
---|
| 235 | </indexterm>
|
---|
| 236 | </listitem>
|
---|
| 237 | </varlistentry>
|
---|
| 238 |
|
---|
| 239 | <varlistentry id="gtk-query-immodules-3.0">
|
---|
| 240 | <term><command>gtk-query-immodules-3.0</command></term>
|
---|
| 241 | <listitem>
|
---|
[ce9d22a] | 242 | <para>
|
---|
| 243 | collects information about loadable input method modules for
|
---|
[742b99e] | 244 | <application>GTK+-3</application> and writes it to the default cache
|
---|
[ce9d22a] | 245 | file location, or to standard output.
|
---|
| 246 | </para>
|
---|
[76a07db] | 247 | <indexterm zone="gtk3 gtk-query-immodules-3.0">
|
---|
| 248 | <primary sortas="b-gtk-query-immodules-3.0">gtk-query-immodules-3.0</primary>
|
---|
| 249 | </indexterm>
|
---|
| 250 | </listitem>
|
---|
| 251 | </varlistentry>
|
---|
| 252 |
|
---|
| 253 | <varlistentry id="gtk-update-icon-cache3">
|
---|
| 254 | <term><command>gtk-update-icon-cache</command></term>
|
---|
| 255 | <listitem>
|
---|
[ce9d22a] | 256 | <para>
|
---|
| 257 | is an icon theme caching utility that creates mmap()able cache files
|
---|
| 258 | for icon themes.
|
---|
| 259 | </para>
|
---|
[76a07db] | 260 | <indexterm zone="gtk3 gtk-update-icon-cache3">
|
---|
| 261 | <primary sortas="b-gtk-update-icon-cache3">gtk-update-icon-cache</primary>
|
---|
| 262 | </indexterm>
|
---|
| 263 | </listitem>
|
---|
| 264 | </varlistentry>
|
---|
| 265 |
|
---|
| 266 | <varlistentry id="libgailutil">
|
---|
| 267 | <term><filename class='libraryfile'>libgailutil.so</filename></term>
|
---|
| 268 | <listitem>
|
---|
[ce9d22a] | 269 | <para>
|
---|
| 270 | contains functions that implements the accessibility interfaces
|
---|
| 271 | defined by the GNOME Accessibility Toolkit
|
---|
| 272 | </para>
|
---|
[76a07db] | 273 | <indexterm zone="gtk3 libgailutil">
|
---|
| 274 | <primary sortas="c-libgailutil">libgailutil.so</primary>
|
---|
| 275 | </indexterm>
|
---|
| 276 | </listitem>
|
---|
| 277 | </varlistentry>
|
---|
| 278 |
|
---|
| 279 | <varlistentry id="libgdk-3">
|
---|
| 280 | <term><filename class='libraryfile'>libgdk-3.so</filename></term>
|
---|
| 281 | <listitem>
|
---|
[ce9d22a] | 282 | <para>
|
---|
| 283 | contains functions that act as a wrapper around the low-level
|
---|
| 284 | drawing and windowing functions provided by the underlying graphics
|
---|
[742b99e] | 285 | system.
|
---|
[ce9d22a] | 286 | </para>
|
---|
[76a07db] | 287 | <indexterm zone="gtk3 libgdk-3">
|
---|
| 288 | <primary sortas="c-libgdk-3">libgdk-3.so</primary>
|
---|
| 289 | </indexterm>
|
---|
| 290 | </listitem>
|
---|
| 291 | </varlistentry>
|
---|
| 292 |
|
---|
| 293 | <varlistentry id="libgtk-3">
|
---|
| 294 | <term><filename class='libraryfile'>libgtk-3.so</filename></term>
|
---|
| 295 | <listitem>
|
---|
[ce9d22a] | 296 | <para>
|
---|
| 297 | contains functions that provide an API to implement graphical user
|
---|
| 298 | interfaces.
|
---|
| 299 | </para>
|
---|
[76a07db] | 300 | <indexterm zone="gtk3 libgtk-3">
|
---|
| 301 | <primary sortas="c-libgtk-3">libgtk-3.so</primary>
|
---|
| 302 | </indexterm>
|
---|
| 303 | </listitem>
|
---|
| 304 | </varlistentry>
|
---|
| 305 | </variablelist>
|
---|
| 306 | </sect2>
|
---|
| 307 | </sect1>
|
---|