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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules 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 eab496c5 was 0cce0593, checked in by Ken Moffat <ken@…>, 6 years ago

Update to pcre2-10.31 and gtk+-3.22.28.

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

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