source: x/lib/gtk4.xml@ 0b046ec

lazarus trunk
Last change on this file since 0b046ec was 15d58b1, checked in by Douglas R. Reno <renodr@…>, 2 months ago

Update to gtk-4.14.2

  • Property mode set to 100644
File size: 18.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 gtk4-download-http "&gnome-download-http;/gtk/&gtk4-minor;/gtk-&gtk4-version;.tar.xz">
8 <!ENTITY gtk4-download-ftp " ">
9 <!ENTITY gtk4-md5sum "347219770bd27520209607c4d474c033">
10 <!ENTITY gtk4-size "17 MB">
11 <!ENTITY gtk4-buildsize "711 MB (with docs; add 66 MB for tests)">
12 <!ENTITY gtk4-time "1.3 SBU (using parallelism=4; with docs; add 1.3 SBU for tests)">
13]>
14
15<sect1 id="gtk4" xreflabel="GTK-&gtk4-version;">
16 <?dbhtml filename="gtk4.html"?>
17
18 <title>GTK-&gtk4-version;</title>
19
20 <indexterm zone="gtk4">
21 <primary sortas="a-gtk4">GTK-4</primary>
22 </indexterm>
23
24 <sect2 role="package">
25 <title>Introduction to GTK 4</title>
26
27 <para>
28 The <application>GTK 4</application> package contains libraries used for
29 creating graphical user interfaces for applications.
30 </para>
31
32 &lfs121_checked;
33
34 <bridgehead renderas="sect3">Package Information</bridgehead>
35 <itemizedlist spacing="compact">
36 <listitem>
37 <para>
38 Download (HTTP): <ulink url="&gtk4-download-http;"/>
39 </para>
40 </listitem>
41 <listitem>
42 <para>
43 Download (FTP): <ulink url="&gtk4-download-ftp;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download MD5 sum: &gtk4-md5sum;
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download size: &gtk4-size;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Estimated disk space required: &gtk4-buildsize;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated build time: &gtk4-time;
64 </para>
65 </listitem>
66 </itemizedlist>
67
68 <bridgehead renderas="sect3">GTK 4 Dependencies</bridgehead>
69
70 <bridgehead renderas="sect4">Required</bridgehead>
71 <para role="required">
72 <xref linkend="fribidi"/>,
73 <xref linkend="gdk-pixbuf"/>,
74 <xref linkend="graphene"/>,
75 <xref linkend="iso-codes"/>,
76 <xref linkend="libepoxy"/>,
77 <xref linkend="libxkbcommon"/>,
78 <xref linkend="pango"/>,
79 <xref linkend="pygobject3"/>, and
80 <xref linkend="wayland-protocols"/>
81 </para>
82
83 <bridgehead renderas="sect4">Recommended</bridgehead>
84 <para role="recommended">
85 <xref linkend="adwaita-icon-theme"/> (default for some gtk4 settings keys),
86 <xref linkend="gst10-plugins-bad"/>,
87 <xref role='runtime' linkend="gst10-plugins-good"/> (runtime,
88 built with <xref role='nodep' linkend='libvpx'/>),
89 <xref linkend="hicolor-icon-theme"/> (needed for tests and for defaults), and
90 <xref linkend="librsvg"/>
91 </para>
92
93 <bridgehead renderas="sect4">Recommended (Required if building GNOME)</bridgehead>
94 <para role="recommended">
95 &gobject-introspection;
96 </para>
97
98 <bridgehead renderas="sect4">Optional</bridgehead>
99 <para role="optional">
100 <xref linkend="colord"/>,
101 <xref linkend="cups"/>,
102 <xref linkend="docutils"/>,
103 <xref linkend="ffmpeg"/> (built with
104 <xref role='nodep' linkend='libvpx'/>),
105 <xref linkend="gi-docgen"/>,
106 <xref role="runtime" linkend="highlight"/>
107 (runtime, only used by <command>gtk4-demo</command> for syntax
108 highlighting of demo source code),
109 <xref linkend="libcloudproviders"/>,
110 <xref linkend="sassc"/>,
111 <xref linkend="tracker3"/>,
112 <xref linkend="vulkan-loader"/>,
113 <ulink url="https://github.com/OpenPrinting/cpdb-libs">cpdb</ulink>,
114 <ulink url="https://github.com/google/shaderc">glslc</ulink>, and
115 <ulink url="&sysprof-url;">sysprof</ulink>
116 <!--<ulink url="https://vulkan.lunarg.com/sdk/home">vulkan</ulink>-->
117 </para>
118
119 </sect2>
120
121 <sect2 role="installation">
122 <title>Installation of GTK 4</title>
123
124 <para>
125 Install <application>GTK 4</application> by running the following
126 commands:
127 </para>
128
129<screen><userinput>mkdir build &amp;&amp;
130cd build &amp;&amp;
131
132meson setup --prefix=/usr \
133 --buildtype=release \
134 -Dbroadway-backend=true \
135 -Dintrospection=enabled \
136 -Dvulkan=disabled \
137 .. &amp;&amp;
138ninja</userinput></screen>
139
140 <para>
141 If you have <xref linkend='gi-docgen'/> installed and wish to build
142 the API documentation for this package, issue:
143 </para>
144
145<screen remap='doc'><userinput>sed "s@'doc'@&amp; / 'gtk-&gtk4-version;'@" -i ../docs/reference/meson.build &amp;&amp;
146meson configure -Ddocumentation=true &amp;&amp;
147ninja</userinput></screen>
148
149 <para>
150 To run the tests, issue: <command>dbus-run-session meson test --setup
151 x11</command>. If you are in a Wayland session, replace x11 with wayland.
152 Nine tests are known to fail if
153 <ulink url="https://gitlab.gnome.org/GNOME/cantarell-fonts">Cantrell fonts</ulink>
154 are not installed. Many tests will fail if
155 <filename>~/.config/gtk-4.0/settings.ini</filename> exists and the gtk-modules
156 line is not commented out.
157 On systems with NVIDIA graphics cards, the tests may take significantly
158 longer than the above test time.
159 </para>
160<!-- [pierre]: 4.6.0, wayland: 727 ok; 2 Expected Fail; 1 Fail; 1 Skipped
161 [bdubbs]: 4.6.3, x11, 724 OK, 2 Expected Fail, 12 Fail. 1 Skipped
162 [pierre]: 4.6.6, wayland, 738 OK, 2 Expected Fail, 1 Fail. 1 Skipped
163 [pierre]: 4.6.7, wayland, 737 OK, 2 Expected Fail, 1 Fail. 1 Skipped. 1 Timeout
164 [bdubbs]: 4.6.7, x11, 758 OK, 2 Expected Fail, 9 Fail. 1 Skipped. 1 Timeout
165 [pierre]: 4.8.1, wayland, 765 OK, 2 Expected Fail, 2 Fail. 1 Skipped
166 [bdubbs]: 4.8.2, x11, 753 OK, 2 Expected Fail, 14 Fail. 1 Skipped
167 [pierre]: 4.8.3, wayland, 760 OK, 2 Expected Fail, 5 Fail. 3 Skipped
168 [bdubbs]: 4.10.0, x11, 701 OK, 0 Expected Fail, 15 Fail. 1 Skipped, 2 Timeout
169 above over ssh
170 [bdubbs]: 4.10.0, x11, 712 OK, 0 Expected Fail, 6 Fail. 1 Skipped, 0 Timeout
171 above on native x11
172 [bdubbs]: 4.12.0, x11, 1453 OK, 0 Expected Fail, 9 Fail. 5 Skipped, 0 Timeout
173 above on native x11
174 [bdubbs]: 4.12.1, x11, 1455 OK, 0 Expected Fail, 7 Fail. 5 Skipped, 0 Timeout
175 above on native x11
176 [renodr]: 4.12.4, x11, 1535 OK, 0 Expected Fail, 8 Fail, 5 Skipped, 0 Timeout
177 above on native X11
178 [rahul]: 4.14.1, wayland, 4174 OK, 0 Expected Fail, 81 Fail, 2 Skipped, 0 Timeout
179 above on native wayland (Plasma 6)
180 [renodr]: 4.14.2, wayland, 4211 OK, 0 Expected Fail, 43 Fail, 2 Skipped, 0 Timeout
181 above on wayland in GNOME
182-->
183
184 <para>
185 Now, as the <systemitem class="username">root</systemitem> user:
186 </para>
187
188<screen role="root"><userinput>ninja install</userinput></screen>
189 </sect2>
190
191 <sect2 role="commands">
192 <title>Command Explanations</title>
193
194 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
195 href="../../xincludes/meson-buildtype-release.xml"/>
196
197 <para>
198 <parameter>-Dbroadway-backend=true</parameter>: This switch enables the
199 HTML5 GDK backend.
200 </para>
201
202 <para>
203 <parameter>-Dintrospection=enabled</parameter>: This switch enables
204 using GObject Introspection to generate GIR bindings
205 of this packages. These bindings are required by GNOME.
206 </para>
207
208 <para>
209 <option>-Dcloudproviders=enabled</option>: Use this switch if you have
210 <xref linkend="libcloudproviders" role="nodep"/> installed and wish to
211 enable support for cloud providers in a file chooser window.
212 </para>
213
214 <para>
215 <option>-Dtracker=enabled</option>: Use this switch if you have
216 <xref linkend="tracker3"/> installed and wish to use search functionality
217 when running a file chooser.
218 </para>
219
220 <para>
221 <option>-Dcolord=enabled</option>: Use this switch if you have
222 <xref linkend="colord"/> installed and wish to use colord with the CUPS
223 printing backend.
224 </para>
225
226 <para>
227 <option>-Dman-pages=true</option>: Use this switch if you have
228 <xref linkend='docutils'/> installed and wish to generate the man
229 pages.
230 </para>
231
232 <para>
233 <option>-Dsysprof=enabled</option>: Use this switch if you have
234 <ulink url="&sysprof-url;">sysprof</ulink> installed and wish to enable
235 tracing support for GTK4-based applications.
236 </para>
237
238 <para>
239 <option>-Dvulkan=enabled</option>: Use this switch if you have
240 <xref linkend="vulkan-loader"/> installed and wish to build the
241 experimental Vulkan backend. Note that you must have
242 <ulink url="https://github.com/google/shaderc/blob/main/downloads.md">glslc</ulink>
243 installed if you decide to enable this option.
244 </para>
245
246 </sect2>
247
248 <sect2 role="configuration">
249 <title>Configuring GTK 4</title>
250
251 <sect3 id="gtk4-config">
252 <title>Config Files</title>
253 <para>
254 <filename>~/.config/gtk-4.0/settings.ini</filename> and
255 <filename>/usr/share/gtk-4.0/settings.ini</filename>
256 </para>
257
258 <indexterm zone="gtk4 gtk4-config">
259 <primary sortas="e-AA.home-gtk4-settings.ini">~/.config/gtk-4.0/settings.ini</primary>
260 </indexterm>
261
262 <indexterm zone="gtk4 gtk4-config">
263 <primary
264 sortas="e-usr-share-path-settings.ini">/usr/share/gtk-4.0/settings.ini</primary>
265 </indexterm>
266 </sect3>
267
268 <sect3><title>Configuration Information</title>
269
270 <para>
271 <application>GTK 4</application> themes change the way a
272 <application>GTK 4</application> application looks. An icon theme can
273 be used to change the icons that appear on the application's toolbar.
274 If you have installed a <application>GTK 4</application> theme (e.g.
275 the Adwaita theme built in <application>GTK 4</application>),
276 an icon theme (such as <xref linkend="oxygen-icons"/>) and/or a font
277 (<xref linkend="dejavu-fonts"/>), you can set your preferences in
278 <filename>~/.config/gtk-4.0/settings.ini</filename>, or the default
279 system-wide configuration file (as the
280 <systemitem class="username">root</systemitem> user), in
281 <filename>/usr/share/gtk-4.0/settings.ini</filename>. For the local
282 user, an example is:
283 </para>
284
285<screen><userinput>mkdir -pv ~/.config/gtk-4.0
286cat &gt; ~/.config/gtk-4.0/settings.ini &lt;&lt; "EOF"
287<literal>[Settings]
288gtk-theme-name = <replaceable>Adwaita</replaceable>
289gtk-icon-theme-name = <replaceable>oxygen</replaceable>
290gtk-font-name = <replaceable>DejaVu Sans 12</replaceable>
291gtk-cursor-theme-size = <replaceable>18</replaceable>
292gtk-xft-antialias = <replaceable>1</replaceable>
293gtk-xft-hinting = <replaceable>1</replaceable>
294gtk-xft-hintstyle = <replaceable>hintslight</replaceable>
295gtk-xft-rgba = <replaceable>rgb</replaceable>
296gtk-cursor-theme-name = <replaceable>Adwaita</replaceable></literal>
297EOF</userinput></screen>
298
299 <para>
300 There are many settings keys, some with default values. You can find
301 them at <ulink
302 url="https://developer.gnome.org/gtk4/stable/GtkSettings.html">Settings:
303 GTK 4 Reference Manual</ulink>.
304 </para>
305
306 </sect3>
307 </sect2>
308
309 <sect2 role="content">
310 <title>Contents</title>
311
312 <segmentedlist>
313 <segtitle>Installed Programs</segtitle>
314 <segtitle>Installed Libraries</segtitle>
315 <segtitle>Installed Directories</segtitle>
316
317 <seglistitem>
318 <seg>
319 gtk4-broadwayd,
320 gtk4-builder-tool,
321 gtk4-demo,
322 gtk4-demo-application,
323 gtk4-encode-symbolic-svg,
324 gtk4-icon-browser,
325 gtk4-launch,
326 gtk4-node-editor,
327 gtk4-print-editor,
328 gtk4-query-settings,
329 gtk4-update-icon-cache, and
330 gtk4-widget-factory
331 </seg>
332 <seg>
333 libgtk-4.so
334 </seg>
335 <seg>
336 /usr/include/gtk-4.0,
337 /usr/lib/gtk-4.0, and
338 /usr/share/gtk-4.0
339 </seg>
340 </seglistitem>
341 </segmentedlist>
342
343 <variablelist>
344 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
345 <?dbfo list-presentation="list"?>
346 <?dbhtml list-presentation="table"?>
347
348 <varlistentry id="gtk4-broadwayd">
349 <term><command>gtk4-broadwayd</command></term>
350 <listitem>
351 <para>
352 provides support for displaying GTK 4 applications in a web
353 browser using HTML5 and web sockets
354 </para>
355 <indexterm zone="gtk4 gtk4-broadwayd">
356 <primary sortas="b-gtk4-broadwayd">gtk4-broadwayd</primary>
357 </indexterm>
358 </listitem>
359 </varlistentry>
360
361 <varlistentry id="gtk4-builder-tool">
362 <term><command>gtk4-builder-tool</command></term>
363 <listitem>
364 <para>
365 performs various operations on GtkBuilder .ui files
366 </para>
367 <indexterm zone="gtk4 gtk4-builder-tool">
368 <primary sortas="b-gtk4-builder-tool">gtk4-builder-tool</primary>
369 </indexterm>
370 </listitem>
371 </varlistentry>
372
373 <varlistentry id="gtk4-demo">
374 <term><command>gtk4-demo</command></term>
375 <listitem>
376 <para>
377 is a simple program that demonstrates some of the tasks that can be
378 done with GTK 4
379 </para>
380 <indexterm zone="gtk4 gtk4-demo">
381 <primary sortas="b-gtk4-demo">gtk4-demo</primary>
382 </indexterm>
383 </listitem>
384 </varlistentry>
385
386 <varlistentry id="gtk4-demo-application">
387 <term><command>gtk4-demo-application</command></term>
388 <listitem>
389 <para>
390 is a simple GTK 4 application which is useful for testing
391 </para>
392 <indexterm zone="gtk4 gtk4-demo-application">
393 <primary sortas="b-gtk4-demo-application">gtk4-demo-application</primary>
394 </indexterm>
395 </listitem>
396 </varlistentry>
397
398 <varlistentry id="gtk4-encode-symbolic-svg">
399 <term><command>gtk4-encode-symbolic-svg</command></term>
400 <listitem>
401 <para>
402 converts symbolic SVG icons into special PNG files. GTK 4 can load
403 and recolor these PNGs, just like original SVGs, but loading them
404 is much faster
405 </para>
406 <indexterm zone="gtk4 gtk4-encode-symbolic-svg">
407 <primary sortas="b-gtk4-encode-symbolic-svg">gtk4-encode-symbolic-svg</primary>
408 </indexterm>
409 </listitem>
410 </varlistentry>
411
412 <varlistentry id="gtk4-icon-browser">
413 <term><command>gtk4-icon-browser</command></term>
414 <listitem>
415 <para>
416 is a utility to explore the icons in the current icon theme. It
417 shows icons in various sizes, their symbolic variants when
418 available, as well as a description of the icon and its context
419 </para>
420 <indexterm zone="gtk4 gtk4-icon-browser">
421 <primary sortas="b-gtk4-icon-browser">gtk4-icon-browser</primary>
422 </indexterm>
423 </listitem>
424 </varlistentry>
425
426 <varlistentry id="gtk4-launch">
427 <term><command>gtk4-launch</command></term>
428 <listitem>
429 <para>
430 launches an application using the given name. The name should match
431 the application .desktop file name (as seen in
432 <filename class="directory">/usr/share/applications</filename>),
433 with or without the '.desktop' extension
434 </para>
435 <indexterm zone="gtk4 gtk-launch">
436 <primary sortas="b-gtk4-launch">gtk4-launch</primary>
437 </indexterm>
438 </listitem>
439 </varlistentry>
440
441 <varlistentry id="gtk4-node-editor">
442 <term><command>gtk4-node-editor</command></term>
443 <listitem>
444 <para>
445 is a utility to show and edit render node files. Such render
446 node files can be obtained e.g. from the GTK inspector
447 </para>
448 <indexterm zone="gtk4 gtk4-node-editor">
449 <primary sortas="b-gtk4-node-editor">gtk4-node-editor</primary>
450 </indexterm>
451 </listitem>
452 </varlistentry>
453
454 <varlistentry id="gtk4-print-editor">
455 <term><command>gtk4-print-editor</command></term>
456 <listitem>
457 <para>
458 is a simple program to demonstrate printing using GTK 4
459 applications
460 </para>
461 <indexterm zone="gtk4 gtk4-print-editor">
462 <primary sortas="b-gtk4-print-editor">gtk4-print-editor</primary>
463 </indexterm>
464 </listitem>
465 </varlistentry>
466
467 <varlistentry id="gtk4-query-settings">
468 <term><command>gtk4-query-settings</command></term>
469 <listitem>
470 <para>
471 provides a complete listing of all settings related to GTK 4
472 </para>
473 <indexterm zone="gtk4 gtk4-query-settings">
474 <primary sortas="b-gtk4-query-settings">gtk4-query-settings</primary>
475 </indexterm>
476 </listitem>
477 </varlistentry>
478
479 <varlistentry id="gtk4-update-icon-cache">
480 <term><command>gtk4-update-icon-cache</command></term>
481 <listitem>
482 <para>
483 is an icon theme caching utility that creates mmap()able cache
484 files for icon themes
485 </para>
486 <indexterm zone="gtk4 gtk4-update-icon-cache">
487 <primary sortas="b-gtk4-update-icon-cache">gtk4-update-icon-cache</primary>
488 </indexterm>
489 </listitem>
490 </varlistentry>
491
492 <varlistentry id="gtk4-widget-factory">
493 <term><command>gtk4-widget-factory</command></term>
494 <listitem>
495 <para>
496 is a program to view GTK 4 themes and widgets
497 </para>
498 <indexterm zone="gtk4 gtk4-widget-factory">
499 <primary sortas="b-gtk4-widget-factory">gtk4-widget-factory</primary>
500 </indexterm>
501 </listitem>
502 </varlistentry>
503
504 <varlistentry id="libgtk-4">
505 <term><filename class="libraryfile">libgtk-4.so</filename></term>
506 <listitem>
507 <para>
508 contains functions that provide an API to implement graphical user
509 interfaces
510 </para>
511 <indexterm zone="gtk4 libgtk-4">
512 <primary sortas="c-libgtk-4">libgtk-4.so</primary>
513 </indexterm>
514 </listitem>
515 </varlistentry>
516 </variablelist>
517 </sect2>
518</sect1>
Note: See TracBrowser for help on using the repository browser.