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