source: x/lib/gtk4.xml@ 3bdc4eb

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 xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 3bdc4eb was 96d2f90, checked in by Pierre Labastie <pierre.labastie@…>, 18 months ago

Typo

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