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