source: x/lib/gtk+3.xml@ b2c7637

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.1 bdubbs/svn kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since b2c7637 was b2c7637, checked in by Douglas R. Reno <renodr@…>, 5 years ago

Update to gtk+-3.24.3
Add a workaround for xf86-video-intel on i686

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@20976 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 17.8 KB
RevLine 
[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
[316d2235]7 <!ENTITY gtk3-download-http "&gnome-download-http;/gtk+/&gnome-minor-24;/gtk+-&gtk3-version;.tar.xz">
8 <!ENTITY gtk3-download-ftp "&gnome-download-ftp;/gtk+/&gnome-minor-24;/gtk+-&gtk3-version;.tar.xz">
[b2c7637]9 <!ENTITY gtk3-md5sum "795fdc22e031a1a8774fa1aeaf0822e1">
10 <!ENTITY gtk3-size "20 MB">
11 <!ENTITY gtk3-buildsize "591 MB (add 11 MB for tests)">
12 <!ENTITY gtk3-time "2.8 SBU (using parallelism=4, add 0.6 SBU for tests)">
[76a07db]13]>
14
[a2912ff]15<sect1 id="gtk3" xreflabel="GTK+-&gtk3-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+-&gtk3-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>
[01c8c8f4]33 The <application>GTK+ 3</application> package contains
[a2912ff]34 libraries used for creating graphical user interfaces for
35 applications.
[ce9d22a]36 </para>
[76a07db]37
[eb1089d]38 &lfs83_checked;
[76a07db]39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
[ce9d22a]43 <para>
44 Download (HTTP): <ulink url="&gtk3-download-http;"/>
45 </para>
[76a07db]46 </listitem>
47 <listitem>
[ce9d22a]48 <para>
49 Download (FTP): <ulink url="&gtk3-download-ftp;"/>
50 </para>
[76a07db]51 </listitem>
52 <listitem>
[ce9d22a]53 <para>
54 Download MD5 sum: &gtk3-md5sum;
55 </para>
[76a07db]56 </listitem>
57 <listitem>
[ce9d22a]58 <para>
59 Download size: &gtk3-size;
60 </para>
[76a07db]61 </listitem>
62 <listitem>
[ce9d22a]63 <para>
64 Estimated disk space required: &gtk3-buildsize;
65 </para>
[76a07db]66 </listitem>
67 <listitem>
[ce9d22a]68 <para>
69 Estimated build time: &gtk3-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"/>,
[0c16838]79 <xref linkend="gdk-pixbuf"/>,
[36464cc]80 <xref linkend="libepoxy"/>,
81 <xref linkend="pango"/>, and
82 <xref linkend="six"/>
[742b99e]83 </para>
84
[dda4b24]85 <bridgehead renderas="sect4">Recommended</bridgehead>
86 <para role="recommended">
87 <xref linkend="adwaita-icon-theme"/> (default for some gtk+3 settings
[fe5d91f]88 keys, also needed for tests),
89 <xref linkend="hicolor-icon-theme"/> (needed for tests),
[42ae206]90 <xref linkend="iso-codes"/>,
[03571cd]91 <xref linkend="libxkbcommon"/>,
[03c5583c]92 <xref linkend="wayland"/>, and
93 <xref linkend="wayland-protocols"/>
[dda4b24]94 </para>
95
[39ffbd0]96 <bridgehead renderas="sect4">Recommended (Required if building GNOME)</bridgehead>
97 <para role="recommended">
[4c2be438]98 <xref linkend="gobject-introspection"/>
99 </para>
100
[76a07db]101 <bridgehead renderas="sect4">Optional</bridgehead>
[8615350]102 <para role="optional" revision="sysv">
[b7a80c66]103 <xref linkend="colord"/>,
[ce9d22a]104 <xref linkend="cups"/>,
[7ea83d7]105 <xref linkend="docbook-utils"/>,
106 <xref linkend="gtk-doc"/>,
[7007944]107 <xref linkend="json-glib"/>,
[057a050]108 <ulink url="http://icl.cs.utk.edu/papi/">PAPI</ulink>, and
[8615350]109 <ulink url="http://ftp.acc.umu.se/pub/gnome/sources/rest/">rest</ulink>
110 </para>
111 <para role="optional" revision="systemd">
112 <xref linkend="colord"/>,
113 <xref linkend="cups"/>,
114 <xref linkend="docbook-utils"/>,
115 <xref linkend="gtk-doc"/>,
116 <xref linkend="json-glib"/>,
[93883ec]117 <xref linkend="pyatspi2"/> (for tests),
[fe5d91f]118 <xref linkend="rest"/>, and
[057a050]119 <ulink url="http://icl.cs.utk.edu/papi/">PAPI</ulink>
[ce9d22a]120 </para>
121
122 <para condition="html" role="usernotes">
123 User Notes: <ulink url="&blfs-wiki;/gtk3"/>
124 </para>
[76a07db]125 </sect2>
126
127 <sect2 role="installation">
[a2912ff]128 <title>Installation of GTK+ 3</title>
[287130e]129<!--
[b84342d6]130 <note>
131 <para>
[a2912ff]132 <application>GTK+ 3</application> will overwrite
[d432b7a]133 <command>gtk-update-icon-cache</command> from <xref linkend="gtk2"/> if
134 it is installed. There is nothing wrong about that assuming that both
135 programs provide same functionality. If you wish to keep one from
[a2912ff]136 <application>GTK+ 2</application> you can add
[287130e]137 <option>- -enable-gtk2-dependency</option> to the
[b84342d6]138 <command>configure</command> command.
139 </para>
140 </note>
[287130e]141-->
[ce9d22a]142 <para>
[a2912ff]143 Install <application>GTK+ 3</application> by running the following
[ce9d22a]144 commands:
145 </para>
[76a07db]146
[b2c7637]147<screen><userinput>./configure --prefix=/usr \
[a8e57cb]148 --sysconfdir=/etc \
[f82ac3f]149 --enable-broadway-backend \
[a8e57cb]150 --enable-x11-backend \
[fe5d91f]151 --enable-wayland-backend &amp;&amp;
[76a07db]152make</userinput></screen>
153
[b4ec1126]154 <para>
155 Some tests fail if
156 <filename>/usr/share/glib-2.0/schemas/gschemas.compiled</filename> is not
157 found. If you wish to run the test suite, create (or update) the file
158 using the following command as the
159 <systemitem class="username">root</systemitem> user:
[3af9e1e9]160 <command>glib-compile-schemas /usr/share/glib-2.0/schemas</command>.
[b4ec1126]161 </para>
162
[ce9d22a]163 <para>
[27236c5]164 To test the results you need a graphical session, then issue
[3f2f363]165 <command>make -k check</command>.
[fe80e96]166 The colorchooser.ui portion of the accessibility-dump test is
167 known to fail. Additioanlly many tests will fail if the current
168 gtk theme (such as current XFCE themes) has deprecated elements.
[ce9d22a]169 </para>
[76a07db]170
[ce9d22a]171 <para>
172 Now, as the <systemitem class="username">root</systemitem> user:
173 </para>
[76a07db]174
175<screen role="root"><userinput>make install</userinput></screen>
[2ffe965]176
177 <note>
178 <para>
179 If you installed the package on to your system using a
[6c13e98]180 <quote>DESTDIR</quote> method, an important file was not installed and
[2ffe965]181 must be copied and/or generated. Generate it using the following
182 command as the <systemitem class="username">root</systemitem> user:
183 </para>
184
185<screen role="root"><userinput>gtk-query-immodules-3.0 --update-cache</userinput></screen>
186 </note>
[bc9797f]187
188 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
189 href="../../xincludes/gsettings-destdir.xml"/>
[76a07db]190 </sect2>
191
192 <sect2 role="commands">
193 <title>Command Explanations</title>
194
[ce9d22a]195 <para>
[de4d07a]196 <parameter>--enable-broadway-backend</parameter>: This switch enables the
[a5524c14]197 HTML5 GTK backend.
[a8e57cb]198 </para>
199
200 <para>
[de4d07a]201 <parameter>--enable-x11-backend</parameter>: This switch enables the X11
202 GDK backend.
[ce9d22a]203 </para>
[76a07db]204
[ce9d22a]205 <para>
[fe5d91f]206 <parameter>--enable-wayland-backend</parameter>: This switch
207 enables the Wayland GDK backend. Replace with
208 <option>--disable-wayland-backend</option> if you do not have
[f7841987]209 <xref linkend="wayland"/> and <xref linkend="wayland-protocols"/>
[fe5d91f]210 or you do not wish to build <application>GNOME</application> with Wayland
211 support. Other changes may be needed to allow the build to complete
[cd7dab9]212 without the wayland backend enabled. Note that a previous installation
213 of gtk+3 built with wayland will interfere with installation without
214 wayland. If this is desired, remove /usr/lib//usr/lib/libgtk-3* before
215 installation.
[ce9d22a]216 </para>
[2ffe965]217
[94936bac]218 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
219 href="../../xincludes/gtk-doc-rebuild.xml"/>
220
[76a07db]221 </sect2>
222
223 <sect2 role="configuration">
[a2912ff]224 <title>Configuring GTK+ 3</title>
[76a07db]225
226 <sect3 id="gtk3-config">
227 <title>Config Files</title>
[ce9d22a]228 <para>
229 <filename>~/.config/gtk-3.0/settings.ini</filename> and
230 <filename>/etc/gtk-3.0/settings.ini</filename>
231 </para>
[76a07db]232
233 <indexterm zone="gtk3 gtk3-config">
234 <primary sortas="e-AA.home-settings.ini">~/.config/gtk-3.0/settings.ini</primary>
235 </indexterm>
236
237 <indexterm zone="gtk3 gtk3-config">
238 <primary sortas="e-etc-path-settings.ini">/etc/gtk-3.0/settings.ini</primary>
239 </indexterm>
240 </sect3>
241
242 <sect3><title>Configuration Information</title>
243
[ce9d22a]244 <para>
[a2912ff]245 <application>GTK+ 3</application> themes change the way a
[080a144]246 <application>GTK+ 3</application> application looks. An icon theme can
247 be used to change the icons that appear on the application's toolbar.
[de4d07a]248 If you have installed a <application>GTK+ 3</application> theme (e.g.
[42ae206]249 <xref linkend="gnome-themes-extra"/>), an icon theme (such as <xref
250 linkend="oxygen-icons5"/>) and/or a font (<xref linkend="dejavu-fonts"/>),
251 you can set your preferences in <filename>~/.config/gtk-3.0/settings.ini</filename>,
[0dcc2bd2]252 or the default system wide configuration file (as the <systemitem
253 class="username">root</systemitem> user), in
254 <filename>/etc/gtk-3.0/settings.ini</filename>. For the local user an
255 example is:
[ce9d22a]256 </para>
[76a07db]257
[dda4b24]258<screen><userinput>mkdir -vp ~/.config/gtk-3.0
[4520f55]259cat &gt; ~/.config/gtk-3.0/settings.ini &lt;&lt; "EOF"
[dda4b24]260<literal>[Settings]
[76a07db]261gtk-theme-name = <replaceable>Adwaita</replaceable>
[dda4b24]262gtk-icon-theme-name = <replaceable>oxygen</replaceable>
263gtk-font-name = <replaceable>DejaVu Sans 12</replaceable>
264gtk-cursor-theme-size = <replaceable>18</replaceable>
265gtk-toolbar-style = <replaceable>GTK_TOOLBAR_BOTH_HORIZ</replaceable>
266gtk-xft-antialias = <replaceable>1</replaceable>
267gtk-xft-hinting = <replaceable>1</replaceable>
268gtk-xft-hintstyle = <replaceable>hintslight</replaceable>
269gtk-xft-rgba = <replaceable>rgb</replaceable>
270gtk-cursor-theme-name = <replaceable>Adwaita</replaceable></literal>
[76a07db]271EOF</userinput></screen>
272
[ce9d22a]273 <para>
[dda4b24]274 There are many settings keys, some with default values. You can find
275 them at <ulink
276 url="https://developer.gnome.org/gtk3/stable/GtkSettings.html">Settings:
277 GTK+ 3 Reference Manual</ulink>. There are many more themes available at
[ce9d22a]278 <ulink url="http://gnome-look.org/"/> and other places.
279 </para>
[76a07db]280
281 </sect3>
282 </sect2>
283
284 <sect2 role="content">
285 <title>Contents</title>
286
287 <segmentedlist>
288 <segtitle>Installed Programs</segtitle>
289 <segtitle>Installed Libraries</segtitle>
290 <segtitle>Installed Directories</segtitle>
291
292 <seglistitem>
[ce9d22a]293 <seg>
[c870dc3]294 broadwayd,
295 gtk3-demo,
296 gtk3-demo-application,
297 gtk3-icon-browser,
298 gtk3-widget-factory,
299 gtk-builder-tool,
300 gtk-encode-symbolic-svg,
301 gtk-launch,
[8615350]302 gtk-query-immodules-3.0,
303 gtk-query-settings, and
[ed2179c9]304 gtk-update-icon-cache
[742b99e]305 </seg>
306 <seg>
[6d5310f]307 libgailutil-3.so, libgdk-3.so, and libgtk-3.so
[742b99e]308 </seg>
309 <seg>
[0d7900a]310 /etc/gtk-3.0,
[77f6b3c]311 /usr/include/{gail,gtk}-3.0,
[c870dc3]312 /usr/{lib,share}/gtk-3.0,
[b800b517]313 /usr/share/gtk-doc/html/{gail-libgail-util,gdk,gtk}3, and
[e68334e]314 /usr/share/themes/{Default,Emacs}/gtk-3.0
[ce9d22a]315 </seg>
[76a07db]316 </seglistitem>
317 </segmentedlist>
318
319 <variablelist>
320 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
321 <?dbfo list-presentation="list"?>
322 <?dbhtml list-presentation="table"?>
323
[e68334e]324 <varlistentry id="broadwayd">
325 <term><command>broadwayd</command></term>
326 <listitem>
327 <para>
[c197636]328 provides support for displaying
[e68334e]329 <application>GTK+ 3</application> applications in a web browser,
330 using HTML5 and web sockets.
331 </para>
332 <indexterm zone="gtk3 broadwayd">
333 <primary sortas="b-broadwayd">broadwayd</primary>
334 </indexterm>
335 </listitem>
336 </varlistentry>
337
[c870dc3]338 <varlistentry id="gtk3-demo">
339 <term><command>gtk3-demo</command></term>
[6d5310f]340 <listitem>
341 <para>
[170773d3]342 is a simple program that demonstrates some of the tasks that can be
[c870dc3]343 done with <application>GTK+ 3</application>
[6d5310f]344 </para>
[c870dc3]345 <indexterm zone="gtk3 gtk3-demo">
346 <primary sortas="b-gtk3-demo">gtk3-demo</primary>
[6d5310f]347 </indexterm>
348 </listitem>
349 </varlistentry>
350
[c870dc3]351 <varlistentry id="gtk3-demo-application">
352 <term><command>gtk3-demo-application</command></term>
[d356833]353 <listitem>
354 <para>
[c870dc3]355 is a simple <application>GTK+ 3</application> application.
[d356833]356 </para>
[c870dc3]357 <indexterm zone="gtk3 gtk3-demo-application">
358 <primary sortas="b-gtk3-demo-application">gtk3-demo-application</primary>
[d356833]359 </indexterm>
360 </listitem>
361 </varlistentry>
362
[c870dc3]363 <varlistentry id="gtk3-icon-browser">
364 <term><command>gtk3-icon-browser</command></term>
[76a07db]365 <listitem>
[ce9d22a]366 <para>
[c870dc3]367 is a utility to explore the icons in the current icon theme. It
368 shows icons in various sizes, their symbolic variants where
369 available, as well as a description of the icon and its context.
[ce9d22a]370 </para>
[c870dc3]371 <indexterm zone="gtk3 gtk3-icon-browser">
372 <primary sortas="b-gtk3-icon-browser">gtk3-icon-browser</primary>
[76a07db]373 </indexterm>
374 </listitem>
375 </varlistentry>
376
[c870dc3]377 <varlistentry id="gtk3-widget-factory">
378 <term><command>gtk3-widget-factory</command></term>
[76a07db]379 <listitem>
[ce9d22a]380 <para>
[c870dc3]381 is a program to view <application>GTK+ 3</application> themes and widgets.
[ce9d22a]382 </para>
[c870dc3]383 <indexterm zone="gtk3 gtk3-widget-factory">
384 <primary sortas="b-gtk3-widget-factory">gtk3-widget-factory</primary>
[76a07db]385 </indexterm>
386 </listitem>
387 </varlistentry>
388
[c870dc3]389 <varlistentry id="gtk-builder-tool">
390 <term><command>gtk-builder-tool</command></term>
[35d0635]391 <listitem>
392 <para>
[c870dc3]393 can perform various operations on GtkBuilder .ui files.
[35d0635]394 </para>
[c870dc3]395 <indexterm zone="gtk3 gtk-builder-tool">
396 <primary sortas="b-gtk-builder-tool">gtk-builder-tool</primary>
[35d0635]397 </indexterm>
398 </listitem>
399 </varlistentry>
400
[c870dc3]401 <varlistentry id="gtk-encode-symbolic-svg">
402 <term><command>gtk-encode-symbolic-svg</command></term>
[35d0635]403 <listitem>
404 <para>
[c870dc3]405 converts symbolic svg icons into specially prepared png files.
406 <application>GTK+ 3</application> can load and recolor these pngs,
407 just like original svgs, but loading them is much faster.
[35d0635]408 </para>
[c870dc3]409 <indexterm zone="gtk3 gtk-encode-symbolic-svg">
410 <primary sortas="b-gtk-encode-symbolic-svg">gtk-encode-symbolic-svg</primary>
[35d0635]411 </indexterm>
412 </listitem>
413 </varlistentry>
414
[c870dc3]415 <varlistentry id="gtk-launch">
416 <term><command>gtk-launch</command></term>
[6d5310f]417 <listitem>
418 <para>
[c870dc3]419 launches an application using the given name. The name should match
[8615350]420 the application desktop file name, as residing in
421 <filename class="directory">/usr/share/applications</filename>, with
[c870dc3]422 or without the '.desktop' suffix.
[6d5310f]423 </para>
[c870dc3]424 <indexterm zone="gtk3 gtk-launch">
425 <primary sortas="b-gtk-launch">gtk-launch</primary>
[6d5310f]426 </indexterm>
427 </listitem>
428 </varlistentry>
429
[c870dc3]430 <varlistentry id="gtk-query-immodules-3.0">
431 <term><command>gtk-query-immodules-3.0</command></term>
[35d0635]432 <listitem>
433 <para>
[c870dc3]434 collects information about loadable input method modules for
435 <application>GTK+ 3</application> and writes it to the default cache
436 file location, or to standard output.
[35d0635]437 </para>
[c870dc3]438 <indexterm zone="gtk3 gtk-query-immodules-3.0">
439 <primary sortas="b-gtk-query-immodules-3.0">gtk-query-immodules-3.0</primary>
440 </indexterm>
441 </listitem>
[8615350]442 </varlistentry>
443
444 <varlistentry id="gtk-query-settings">
445 <term><command>gtk-query-settings</command></term>
446 <listitem>
447 <para>
448 provides a complete listing of all settings related to
449 <application>GTK+ 3</application>
450 </para>
451 <indexterm zone="gtk3 gtk-query-settings">
452 <primary sortas="b-gtk-query-settings">gtk-query-settings</primary>
453 </indexterm>
454 </listitem>
[c870dc3]455 </varlistentry>
456
457 <varlistentry id="gtk-update-icon-cache3">
458 <term><command>gtk-update-icon-cache</command></term>
459 <listitem>
460 <para>
461 is an icon theme caching utility that creates mmap()able cache files
462 for icon themes.
463 </para>
464 <indexterm zone="gtk3 gtk-update-icon-cache3">
465 <primary sortas="b-gtk-update-icon-cache3">gtk-update-icon-cache</primary>
[35d0635]466 </indexterm>
467 </listitem>
468 </varlistentry>
469
[d356833]470 <varlistentry id="libgailutil-3">
471 <term><filename class="libraryfile">libgailutil-3.so</filename></term>
[76a07db]472 <listitem>
[ce9d22a]473 <para>
[3fdc9b0]474 contains functions that implement the accessibility interfaces
[d356833]475 defined by the <application>GNOME</application> Accessibility
476 Toolkit.
[ce9d22a]477 </para>
[d356833]478 <indexterm zone="gtk3 libgailutil-3">
479 <primary sortas="c-libgailutil-3">libgailutil-3.so</primary>
[76a07db]480 </indexterm>
481 </listitem>
482 </varlistentry>
483
484 <varlistentry id="libgdk-3">
[d356833]485 <term><filename class="libraryfile">libgdk-3.so</filename></term>
[76a07db]486 <listitem>
[ce9d22a]487 <para>
488 contains functions that act as a wrapper around the low-level
489 drawing and windowing functions provided by the underlying graphics
[742b99e]490 system.
[ce9d22a]491 </para>
[76a07db]492 <indexterm zone="gtk3 libgdk-3">
493 <primary sortas="c-libgdk-3">libgdk-3.so</primary>
494 </indexterm>
495 </listitem>
496 </varlistentry>
497
498 <varlistentry id="libgtk-3">
[d356833]499 <term><filename class="libraryfile">libgtk-3.so</filename></term>
[76a07db]500 <listitem>
[ce9d22a]501 <para>
502 contains functions that provide an API to implement graphical user
503 interfaces.
504 </para>
[76a07db]505 <indexterm zone="gtk3 libgtk-3">
506 <primary sortas="c-libgtk-3">libgtk-3.so</primary>
507 </indexterm>
508 </listitem>
509 </varlistentry>
[a2912ff]510
[76a07db]511 </variablelist>
[b84342d6]512
[76a07db]513 </sect2>
[b84342d6]514
[76a07db]515</sect1>
Note: See TracBrowser for help on using the repository browser.