source: x/lib/gtk+3.xml@ 2ab749f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 2ab749f was 142e031, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Update to libtirpc-1.2.6.
Update to qpdf-10.0.1.
Update to gtk+-3.24.18.

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

  • Property mode set to 100644
File size: 18.2 KB
Line 
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
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">
9 <!ENTITY gtk3-md5sum "9b389f70b99ac09be6ceb141abce8f12">
10 <!ENTITY gtk3-size "20 MB">
11 <!ENTITY gtk3-buildsize "486 MB (add 5 MB for tests)">
12 <!ENTITY gtk3-time "1.1 SBU (using parallelism=4, add 0.4 SBU for tests)">
13]>
14
15<sect1 id="gtk3" xreflabel="GTK+-&gtk3-version;">
16 <?dbhtml filename="gtk3.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>GTK+-&gtk3-version;</title>
24
25 <indexterm zone="gtk3">
26 <primary sortas="a-GTK+3">GTK+3</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to GTK+ 3</title>
31
32 <para>
33 The <application>GTK+ 3</application> package contains
34 libraries used for creating graphical user interfaces for
35 applications.
36 </para>
37
38 &lfs91_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&gtk3-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&gtk3-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &gtk3-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &gtk3-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &gtk3-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &gtk3-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">GTK+ 3 Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Required</bridgehead>
77 <para role="required">
78 <xref linkend="at-spi2-atk"/>,
79 <xref linkend="fribidi"/>,
80 <xref linkend="gdk-pixbuf"/>,
81 <xref linkend="libepoxy"/>, and
82 <xref linkend="pango"/>
83<!-- does not seem to be needed anymore
84 <xref linkend="six"/>-->
85 </para>
86
87 <bridgehead renderas="sect4">Recommended</bridgehead>
88 <para role="recommended">
89 <xref linkend="adwaita-icon-theme"/> (default for some gtk+3 settings
90 keys, also needed for tests),
91 <xref linkend="hicolor-icon-theme"/> (needed for tests),
92 <xref linkend="iso-codes"/>,
93 <xref linkend="libxkbcommon"/>,
94 <xref linkend="sassc"/>,
95 <xref linkend="wayland"/>, and
96 <xref linkend="wayland-protocols"/>
97 </para>
98
99 <bridgehead renderas="sect4">Recommended (Required if building GNOME)</bridgehead>
100 <para role="recommended">
101 <xref linkend="gobject-introspection"/>
102 </para>
103
104 <bridgehead renderas="sect4">Optional</bridgehead>
105 <para role="optional">
106 <xref linkend="colord"/>,
107 <xref linkend="cups"/>,
108 <xref linkend="docbook-utils"/>,
109 <xref linkend="gtk-doc"/>,
110 <xref linkend="json-glib"/>,
111 <xref linkend="pyatspi2"/> (for tests),
112 <xref linkend="rest"/>, and
113 <ulink url="http://icl.cs.utk.edu/papi/">PAPI</ulink>
114 </para>
115
116 <para condition="html" role="usernotes">
117 User Notes: <ulink url="&blfs-wiki;/gtk3"/>
118 </para>
119 </sect2>
120
121 <sect2 role="installation">
122 <title>Installation of GTK+ 3</title>
123
124 <!-- This is due to the meson transition -->
125 <caution>
126 <para>
127 If you are upgrading from a version of GTK+3 prior to 3.24.9,
128 you must run the <filename>remove-la-files.sh</filename> script from
129 <xref linkend="la-files"/> after installing GTK+.
130 </para>
131 </caution>
132
133 <para>
134 Install <application>GTK+ 3</application> by running the following
135 commands:
136 </para>
137
138<!-- The build directory already exists since this package allows both Autotools
139 and Meson to be used
140 This may have to be changed in a few versions, or when GTK4 comes out.-->
141<screen><userinput>mkdir build-gtk3 &amp;&amp;
142cd build-gtk3 &amp;&amp;
143
144meson --prefix=/usr \
145 -Dcolord=yes \
146 -Dgtk_doc=false \
147 -Dman=true \
148 -Dbroadway_backend=true .. &amp;&amp;
149ninja</userinput></screen>
150
151 <para>
152 Some tests fail if
153 <filename>/usr/share/glib-2.0/schemas/gschemas.compiled</filename> is not
154 found. If you wish to run the test suite, create (or update) the file
155 using the following command as the
156 <systemitem class="username">root</systemitem> user:
157 <command>glib-compile-schemas /usr/share/glib-2.0/schemas</command>.
158 </para>
159
160 <para>
161 To test the results you need a graphical session, then issue
162 <command>ninja test</command>. <!--There are several tests that
163 have subtests that are known to fail: scrolledwindow, treeview,
164 accessibility-dump, test-css-nodes, and gtk-reftest.
165 Additionally many tests will fail if the current
166 gtk theme (such as current XFCE themes) has deprecated elements.-->
167 Six tests are known to fail in the a11y suite.
168 </para>
169
170 <para>
171 Now, as the <systemitem class="username">root</systemitem> user:
172 </para>
173
174 <screen role="root"><userinput>ninja install</userinput></screen>
175
176 <note>
177 <para>
178 If you installed the package on to your system using a
179 <quote>DESTDIR</quote> method, an important file was not installed and
180 must be copied and/or generated. Generate it using the following
181 command as the <systemitem class="username">root</systemitem> user:
182 </para>
183
184<screen role="root"><userinput>gtk-query-immodules-3.0 --update-cache</userinput></screen>
185 </note>
186
187 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
188 href="../../xincludes/gsettings-destdir.xml"/>
189 </sect2>
190
191 <sect2 role="commands">
192 <title>Command Explanations</title>
193
194 <para>
195 <parameter>-Dbroadway_backend=true</parameter>: This switch enables the
196 HTML5 GTK backend.
197 </para>
198 <!--
199 <para>
200 <parameter>- -enable-x11-backend</parameter>: This switch enables the X11
201 GDK backend.
202 </para>
203 -->
204 <!--
205 <para>
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
209 <xref linkend="wayland"/> and <xref linkend="wayland-protocols"/>
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
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.
216 </para>
217 -->
218 <!--
219 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
220 href="../../xincludes/gtk-doc-rebuild.xml"/>
221 -->
222 <para>
223 <parameter>-Dcolord=yes</parameter>: This switch allows color support
224 in the GTK+ printing backend.
225 </para>
226
227 <para>
228 <parameter>-Dman=true</parameter>: This switch allows generating
229 manual pages.
230 </para>
231
232 <para>
233 <parameter>-Dgtk_doc=false</parameter>: This switch disables building
234 documentation. Replace with -Dgtk_doc=true if you have
235 <xref linkend="gtk-doc"/> installed and wish to generate documentation.
236 </para>
237
238 </sect2>
239
240 <sect2 role="configuration">
241 <title>Configuring GTK+ 3</title>
242
243 <sect3 id="gtk3-config">
244 <title>Config Files</title>
245 <para>
246 <filename>~/.config/gtk-3.0/settings.ini</filename> and
247 <filename>/etc/gtk-3.0/settings.ini</filename>
248 </para>
249
250 <indexterm zone="gtk3 gtk3-config">
251 <primary sortas="e-AA.home-settings.ini">~/.config/gtk-3.0/settings.ini</primary>
252 </indexterm>
253
254 <indexterm zone="gtk3 gtk3-config">
255 <primary sortas="e-etc-path-settings.ini">/etc/gtk-3.0/settings.ini</primary>
256 </indexterm>
257 </sect3>
258
259 <sect3><title>Configuration Information</title>
260
261 <para>
262 <application>GTK+ 3</application> themes change the way a
263 <application>GTK+ 3</application> application looks. An icon theme can
264 be used to change the icons that appear on the application's toolbar.
265 If you have installed a <application>GTK+ 3</application> theme (e.g.
266 the Adwaita theme built in <application>GTK+ 3</application>),
267 an icon theme (such as <xref
268 linkend="oxygen-icons5"/>) and/or a font (<xref linkend="dejavu-fonts"/>),
269 you can set your preferences in <filename>~/.config/gtk-3.0/settings.ini</filename>,
270 or the default system wide configuration file (as the <systemitem
271 class="username">root</systemitem> user), in
272 <filename>/etc/gtk-3.0/settings.ini</filename>. For the local user an
273 example is:
274 </para>
275
276<screen><userinput>mkdir -vp ~/.config/gtk-3.0
277cat &gt; ~/.config/gtk-3.0/settings.ini &lt;&lt; "EOF"
278<literal>[Settings]
279gtk-theme-name = <replaceable>Adwaita</replaceable>
280gtk-icon-theme-name = <replaceable>oxygen</replaceable>
281gtk-font-name = <replaceable>DejaVu Sans 12</replaceable>
282gtk-cursor-theme-size = <replaceable>18</replaceable>
283gtk-toolbar-style = <replaceable>GTK_TOOLBAR_BOTH_HORIZ</replaceable>
284gtk-xft-antialias = <replaceable>1</replaceable>
285gtk-xft-hinting = <replaceable>1</replaceable>
286gtk-xft-hintstyle = <replaceable>hintslight</replaceable>
287gtk-xft-rgba = <replaceable>rgb</replaceable>
288gtk-cursor-theme-name = <replaceable>Adwaita</replaceable></literal>
289EOF</userinput></screen>
290
291 <para>
292 There are many settings keys, some with default values. You can find
293 them at <ulink
294 url="https://developer.gnome.org/gtk3/stable/GtkSettings.html">Settings:
295 GTK+ 3 Reference Manual</ulink>. There are many more themes available at
296 <ulink url="http://gnome-look.org/"/> and other places.
297 </para>
298
299 </sect3>
300 </sect2>
301
302 <sect2 role="content">
303 <title>Contents</title>
304
305 <segmentedlist>
306 <segtitle>Installed Programs</segtitle>
307 <segtitle>Installed Libraries</segtitle>
308 <segtitle>Installed Directories</segtitle>
309
310 <seglistitem>
311 <seg>
312 broadwayd,
313 gtk3-demo,
314 gtk3-demo-application,
315 gtk3-icon-browser,
316 gtk3-widget-factory,
317 gtk-builder-tool,
318 gtk-encode-symbolic-svg,
319 gtk-launch,
320 gtk-query-immodules-3.0,
321 gtk-query-settings, and
322 gtk-update-icon-cache
323 </seg>
324 <seg>
325 libgailutil-3.so, libgdk-3.so, and libgtk-3.so
326 </seg>
327 <seg>
328 /etc/gtk-3.0,
329 /usr/include/{gail,gtk}-3.0,
330 /usr/{lib,share}/gtk-3.0,
331 /usr/share/gtk-doc/html/{gail-libgail-util,gdk,gtk}3, and
332 /usr/share/themes/{Default,Emacs}/gtk-3.0
333 </seg>
334 </seglistitem>
335 </segmentedlist>
336
337 <variablelist>
338 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
339 <?dbfo list-presentation="list"?>
340 <?dbhtml list-presentation="table"?>
341
342 <varlistentry id="broadwayd">
343 <term><command>broadwayd</command></term>
344 <listitem>
345 <para>
346 provides support for displaying
347 <application>GTK+ 3</application> applications in a web browser,
348 using HTML5 and web sockets.
349 </para>
350 <indexterm zone="gtk3 broadwayd">
351 <primary sortas="b-broadwayd">broadwayd</primary>
352 </indexterm>
353 </listitem>
354 </varlistentry>
355
356 <varlistentry id="gtk3-demo">
357 <term><command>gtk3-demo</command></term>
358 <listitem>
359 <para>
360 is a simple program that demonstrates some of the tasks that can be
361 done with <application>GTK+ 3</application>
362 </para>
363 <indexterm zone="gtk3 gtk3-demo">
364 <primary sortas="b-gtk3-demo">gtk3-demo</primary>
365 </indexterm>
366 </listitem>
367 </varlistentry>
368
369 <varlistentry id="gtk3-demo-application">
370 <term><command>gtk3-demo-application</command></term>
371 <listitem>
372 <para>
373 is a simple <application>GTK+ 3</application> application.
374 </para>
375 <indexterm zone="gtk3 gtk3-demo-application">
376 <primary sortas="b-gtk3-demo-application">gtk3-demo-application</primary>
377 </indexterm>
378 </listitem>
379 </varlistentry>
380
381 <varlistentry id="gtk3-icon-browser">
382 <term><command>gtk3-icon-browser</command></term>
383 <listitem>
384 <para>
385 is a utility to explore the icons in the current icon theme. It
386 shows icons in various sizes, their symbolic variants where
387 available, as well as a description of the icon and its context.
388 </para>
389 <indexterm zone="gtk3 gtk3-icon-browser">
390 <primary sortas="b-gtk3-icon-browser">gtk3-icon-browser</primary>
391 </indexterm>
392 </listitem>
393 </varlistentry>
394
395 <varlistentry id="gtk3-widget-factory">
396 <term><command>gtk3-widget-factory</command></term>
397 <listitem>
398 <para>
399 is a program to view <application>GTK+ 3</application> themes and widgets.
400 </para>
401 <indexterm zone="gtk3 gtk3-widget-factory">
402 <primary sortas="b-gtk3-widget-factory">gtk3-widget-factory</primary>
403 </indexterm>
404 </listitem>
405 </varlistentry>
406
407 <varlistentry id="gtk-builder-tool">
408 <term><command>gtk-builder-tool</command></term>
409 <listitem>
410 <para>
411 can perform various operations on GtkBuilder .ui files.
412 </para>
413 <indexterm zone="gtk3 gtk-builder-tool">
414 <primary sortas="b-gtk-builder-tool">gtk-builder-tool</primary>
415 </indexterm>
416 </listitem>
417 </varlistentry>
418
419 <varlistentry id="gtk-encode-symbolic-svg">
420 <term><command>gtk-encode-symbolic-svg</command></term>
421 <listitem>
422 <para>
423 converts symbolic svg icons into specially prepared png files.
424 <application>GTK+ 3</application> can load and recolor these pngs,
425 just like original svgs, but loading them is much faster.
426 </para>
427 <indexterm zone="gtk3 gtk-encode-symbolic-svg">
428 <primary sortas="b-gtk-encode-symbolic-svg">gtk-encode-symbolic-svg</primary>
429 </indexterm>
430 </listitem>
431 </varlistentry>
432
433 <varlistentry id="gtk-launch">
434 <term><command>gtk-launch</command></term>
435 <listitem>
436 <para>
437 launches an application using the given name. The name should match
438 the application desktop file name, as residing in
439 <filename class="directory">/usr/share/applications</filename>, with
440 or without the '.desktop' suffix.
441 </para>
442 <indexterm zone="gtk3 gtk-launch">
443 <primary sortas="b-gtk-launch">gtk-launch</primary>
444 </indexterm>
445 </listitem>
446 </varlistentry>
447
448 <varlistentry id="gtk-query-immodules-3.0">
449 <term><command>gtk-query-immodules-3.0</command></term>
450 <listitem>
451 <para>
452 collects information about loadable input method modules for
453 <application>GTK+ 3</application> and writes it to the default cache
454 file location, or to standard output.
455 </para>
456 <indexterm zone="gtk3 gtk-query-immodules-3.0">
457 <primary sortas="b-gtk-query-immodules-3.0">gtk-query-immodules-3.0</primary>
458 </indexterm>
459 </listitem>
460 </varlistentry>
461
462 <varlistentry id="gtk-query-settings">
463 <term><command>gtk-query-settings</command></term>
464 <listitem>
465 <para>
466 provides a complete listing of all settings related to
467 <application>GTK+ 3</application>
468 </para>
469 <indexterm zone="gtk3 gtk-query-settings">
470 <primary sortas="b-gtk-query-settings">gtk-query-settings</primary>
471 </indexterm>
472 </listitem>
473 </varlistentry>
474
475 <varlistentry id="gtk-update-icon-cache3">
476 <term><command>gtk-update-icon-cache</command></term>
477 <listitem>
478 <para>
479 is an icon theme caching utility that creates mmap()able cache files
480 for icon themes.
481 </para>
482 <indexterm zone="gtk3 gtk-update-icon-cache3">
483 <primary sortas="b-gtk-update-icon-cache3">gtk-update-icon-cache</primary>
484 </indexterm>
485 </listitem>
486 </varlistentry>
487
488 <varlistentry id="libgailutil-3">
489 <term><filename class="libraryfile">libgailutil-3.so</filename></term>
490 <listitem>
491 <para>
492 contains functions that implement the accessibility interfaces
493 defined by the <application>GNOME</application> Accessibility
494 Toolkit.
495 </para>
496 <indexterm zone="gtk3 libgailutil-3">
497 <primary sortas="c-libgailutil-3">libgailutil-3.so</primary>
498 </indexterm>
499 </listitem>
500 </varlistentry>
501
502 <varlistentry id="libgdk-3">
503 <term><filename class="libraryfile">libgdk-3.so</filename></term>
504 <listitem>
505 <para>
506 contains functions that act as a wrapper around the low-level
507 drawing and windowing functions provided by the underlying graphics
508 system.
509 </para>
510 <indexterm zone="gtk3 libgdk-3">
511 <primary sortas="c-libgdk-3">libgdk-3.so</primary>
512 </indexterm>
513 </listitem>
514 </varlistentry>
515
516 <varlistentry id="libgtk-3">
517 <term><filename class="libraryfile">libgtk-3.so</filename></term>
518 <listitem>
519 <para>
520 contains functions that provide an API to implement graphical user
521 interfaces.
522 </para>
523 <indexterm zone="gtk3 libgtk-3">
524 <primary sortas="c-libgtk-3">libgtk-3.so</primary>
525 </indexterm>
526 </listitem>
527 </varlistentry>
528
529 </variablelist>
530
531 </sect2>
532
533</sect1>
Note: See TracBrowser for help on using the repository browser.