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