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