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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.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 c361a46 was c361a46, checked in by Douglas R. Reno <renodr@…>, 4 years ago

Update to Mesa-19.2.6
gtk3: Remove obsolete sed command
gtk2: Document test suite failure due to new GdkPixbuf

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

  • Property mode set to 100644
File size: 18.3 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 "a221b0c6224c6d5c1c5f15d6d2cabc97">
10 <!ENTITY gtk3-size "20 MB">
11 <!ENTITY gtk3-buildsize "460 MB (add 2 MB for tests)">
12 <!ENTITY gtk3-time "1.1 SBU (using parallelism=4, add 0.1 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 &lfs90_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>If you are upgrading from a version of GTK+3 prior to 3.24.9,
127 you must run the <filename>remove-la-files.sh</filename> script from
128 <xref linkend="la-files"/> after installing GTK+.</para>
129 </caution>
130
131 <!--
132 <para>First, fix a minor problem in the meson configuration:</para>
133
134 <screen><userinput>sed -i 's/3.24.10/3.24.11/' meson.build</userinput></screen>
135 -->
136
137 <para>
138 Install <application>GTK+ 3</application> by running the following
139 commands:
140 </para>
141
142<!-- The build directory already exists since this package allows both Autotools
143 and Meson to be used
144 This may have to be changed in a few versions, or when GTK4 comes out.-->
145<screen><userinput>mkdir build-gtk3 &amp;&amp;
146cd build-gtk3 &amp;&amp;
147
148meson --prefix=/usr \
149 -Dcolord=yes \
150 -Dgtk_doc=false \
151 -Dman=true \
152 -Dbroadway_backend=true .. &amp;&amp;
153ninja</userinput></screen>
154
155 <para>
156 Some tests fail if
157 <filename>/usr/share/glib-2.0/schemas/gschemas.compiled</filename> is not
158 found. If you wish to run the test suite, create (or update) the file
159 using the following command as the
160 <systemitem class="username">root</systemitem> user:
161 <command>glib-compile-schemas /usr/share/glib-2.0/schemas</command>.
162 </para>
163
164 <para>
165 To test the results you need a graphical session, then issue
166 <command>ninja test</command>. <!--There are several tests that
167 have subtests that are known to fail: scrolledwindow, treeview,
168 accessibility-dump, test-css-nodes, and gtk-reftest.
169 Additionally many tests will fail if the current
170 gtk theme (such as current XFCE themes) has deprecated elements.-->
171 seven tests are known to fail in the a11y suite.
172 </para>
173
174 <para>
175 Now, as the <systemitem class="username">root</systemitem> user:
176 </para>
177
178 <screen role="root"><userinput>ninja install</userinput></screen>
179
180 <note>
181 <para>
182 If you installed the package on to your system using a
183 <quote>DESTDIR</quote> method, an important file was not installed and
184 must be copied and/or generated. Generate it using the following
185 command as the <systemitem class="username">root</systemitem> user:
186 </para>
187
188<screen role="root"><userinput>gtk-query-immodules-3.0 --update-cache</userinput></screen>
189 </note>
190
191 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
192 href="../../xincludes/gsettings-destdir.xml"/>
193 </sect2>
194
195 <sect2 role="commands">
196 <title>Command Explanations</title>
197
198 <para>
199 <parameter>-Dbroadway_backend=true</parameter>: This switch enables the
200 HTML5 GTK backend.
201 </para>
202 <!--
203 <para>
204 <parameter>- -enable-x11-backend</parameter>: This switch enables the X11
205 GDK backend.
206 </para>
207 -->
208 <!--
209 <para>
210 <parameter>- -enable-wayland-backend</parameter>: This switch
211 enables the Wayland GDK backend. Replace with
212 <option>- -disable-wayland-backend</option> if you do not have
213 <xref linkend="wayland"/> and <xref linkend="wayland-protocols"/>
214 or you do not wish to build <application>GNOME</application> with Wayland
215 support. Other changes may be needed to allow the build to complete
216 without the wayland backend enabled. Note that a previous installation
217 of gtk+3 built with wayland will interfere with installation without
218 wayland. If this is desired, remove /usr/lib//usr/lib/libgtk-3* before
219 installation.
220 </para>
221 -->
222 <!--
223 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
224 href="../../xincludes/gtk-doc-rebuild.xml"/>
225 -->
226 <para>
227 <parameter>-Dcolord=yes</parameter>: This switch allows color support
228 in the GTK+ printing backend.
229 </para>
230
231 <para>
232 <parameter>-Dman=true</parameter>: This switch allows generating
233 manual pages.
234 </para>
235
236 <para>
237 <parameter>-Dgtk_doc=false</parameter>: This switch disables building
238 documentation. Replace with -Dgtk_doc=true if you have
239 <xref linkend="gtk-doc"/> installed and wish to generate documentation.
240 </para>
241
242 </sect2>
243
244 <sect2 role="configuration">
245 <title>Configuring GTK+ 3</title>
246
247 <sect3 id="gtk3-config">
248 <title>Config Files</title>
249 <para>
250 <filename>~/.config/gtk-3.0/settings.ini</filename> and
251 <filename>/etc/gtk-3.0/settings.ini</filename>
252 </para>
253
254 <indexterm zone="gtk3 gtk3-config">
255 <primary sortas="e-AA.home-settings.ini">~/.config/gtk-3.0/settings.ini</primary>
256 </indexterm>
257
258 <indexterm zone="gtk3 gtk3-config">
259 <primary sortas="e-etc-path-settings.ini">/etc/gtk-3.0/settings.ini</primary>
260 </indexterm>
261 </sect3>
262
263 <sect3><title>Configuration Information</title>
264
265 <para>
266 <application>GTK+ 3</application> themes change the way a
267 <application>GTK+ 3</application> application looks. An icon theme can
268 be used to change the icons that appear on the application's toolbar.
269 If you have installed a <application>GTK+ 3</application> theme (e.g.
270 <xref linkend="gnome-themes-extra"/>), an icon theme (such as <xref
271 linkend="oxygen-icons5"/>) and/or a font (<xref linkend="dejavu-fonts"/>),
272 you can set your preferences in <filename>~/.config/gtk-3.0/settings.ini</filename>,
273 or the default system wide configuration file (as the <systemitem
274 class="username">root</systemitem> user), in
275 <filename>/etc/gtk-3.0/settings.ini</filename>. For the local user an
276 example is:
277 </para>
278
279<screen><userinput>mkdir -vp ~/.config/gtk-3.0
280cat &gt; ~/.config/gtk-3.0/settings.ini &lt;&lt; "EOF"
281<literal>[Settings]
282gtk-theme-name = <replaceable>Adwaita</replaceable>
283gtk-icon-theme-name = <replaceable>oxygen</replaceable>
284gtk-font-name = <replaceable>DejaVu Sans 12</replaceable>
285gtk-cursor-theme-size = <replaceable>18</replaceable>
286gtk-toolbar-style = <replaceable>GTK_TOOLBAR_BOTH_HORIZ</replaceable>
287gtk-xft-antialias = <replaceable>1</replaceable>
288gtk-xft-hinting = <replaceable>1</replaceable>
289gtk-xft-hintstyle = <replaceable>hintslight</replaceable>
290gtk-xft-rgba = <replaceable>rgb</replaceable>
291gtk-cursor-theme-name = <replaceable>Adwaita</replaceable></literal>
292EOF</userinput></screen>
293
294 <para>
295 There are many settings keys, some with default values. You can find
296 them at <ulink
297 url="https://developer.gnome.org/gtk3/stable/GtkSettings.html">Settings:
298 GTK+ 3 Reference Manual</ulink>. There are many more themes available at
299 <ulink url="http://gnome-look.org/"/> and other places.
300 </para>
301
302 </sect3>
303 </sect2>
304
305 <sect2 role="content">
306 <title>Contents</title>
307
308 <segmentedlist>
309 <segtitle>Installed Programs</segtitle>
310 <segtitle>Installed Libraries</segtitle>
311 <segtitle>Installed Directories</segtitle>
312
313 <seglistitem>
314 <seg>
315 broadwayd,
316 gtk3-demo,
317 gtk3-demo-application,
318 gtk3-icon-browser,
319 gtk3-widget-factory,
320 gtk-builder-tool,
321 gtk-encode-symbolic-svg,
322 gtk-launch,
323 gtk-query-immodules-3.0,
324 gtk-query-settings, and
325 gtk-update-icon-cache
326 </seg>
327 <seg>
328 libgailutil-3.so, libgdk-3.so, and libgtk-3.so
329 </seg>
330 <seg>
331 /etc/gtk-3.0,
332 /usr/include/{gail,gtk}-3.0,
333 /usr/{lib,share}/gtk-3.0,
334 /usr/share/gtk-doc/html/{gail-libgail-util,gdk,gtk}3, and
335 /usr/share/themes/{Default,Emacs}/gtk-3.0
336 </seg>
337 </seglistitem>
338 </segmentedlist>
339
340 <variablelist>
341 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
342 <?dbfo list-presentation="list"?>
343 <?dbhtml list-presentation="table"?>
344
345 <varlistentry id="broadwayd">
346 <term><command>broadwayd</command></term>
347 <listitem>
348 <para>
349 provides support for displaying
350 <application>GTK+ 3</application> applications in a web browser,
351 using HTML5 and web sockets.
352 </para>
353 <indexterm zone="gtk3 broadwayd">
354 <primary sortas="b-broadwayd">broadwayd</primary>
355 </indexterm>
356 </listitem>
357 </varlistentry>
358
359 <varlistentry id="gtk3-demo">
360 <term><command>gtk3-demo</command></term>
361 <listitem>
362 <para>
363 is a simple program that demonstrates some of the tasks that can be
364 done with <application>GTK+ 3</application>
365 </para>
366 <indexterm zone="gtk3 gtk3-demo">
367 <primary sortas="b-gtk3-demo">gtk3-demo</primary>
368 </indexterm>
369 </listitem>
370 </varlistentry>
371
372 <varlistentry id="gtk3-demo-application">
373 <term><command>gtk3-demo-application</command></term>
374 <listitem>
375 <para>
376 is a simple <application>GTK+ 3</application> application.
377 </para>
378 <indexterm zone="gtk3 gtk3-demo-application">
379 <primary sortas="b-gtk3-demo-application">gtk3-demo-application</primary>
380 </indexterm>
381 </listitem>
382 </varlistentry>
383
384 <varlistentry id="gtk3-icon-browser">
385 <term><command>gtk3-icon-browser</command></term>
386 <listitem>
387 <para>
388 is a utility to explore the icons in the current icon theme. It
389 shows icons in various sizes, their symbolic variants where
390 available, as well as a description of the icon and its context.
391 </para>
392 <indexterm zone="gtk3 gtk3-icon-browser">
393 <primary sortas="b-gtk3-icon-browser">gtk3-icon-browser</primary>
394 </indexterm>
395 </listitem>
396 </varlistentry>
397
398 <varlistentry id="gtk3-widget-factory">
399 <term><command>gtk3-widget-factory</command></term>
400 <listitem>
401 <para>
402 is a program to view <application>GTK+ 3</application> themes and widgets.
403 </para>
404 <indexterm zone="gtk3 gtk3-widget-factory">
405 <primary sortas="b-gtk3-widget-factory">gtk3-widget-factory</primary>
406 </indexterm>
407 </listitem>
408 </varlistentry>
409
410 <varlistentry id="gtk-builder-tool">
411 <term><command>gtk-builder-tool</command></term>
412 <listitem>
413 <para>
414 can perform various operations on GtkBuilder .ui files.
415 </para>
416 <indexterm zone="gtk3 gtk-builder-tool">
417 <primary sortas="b-gtk-builder-tool">gtk-builder-tool</primary>
418 </indexterm>
419 </listitem>
420 </varlistentry>
421
422 <varlistentry id="gtk-encode-symbolic-svg">
423 <term><command>gtk-encode-symbolic-svg</command></term>
424 <listitem>
425 <para>
426 converts symbolic svg icons into specially prepared png files.
427 <application>GTK+ 3</application> can load and recolor these pngs,
428 just like original svgs, but loading them is much faster.
429 </para>
430 <indexterm zone="gtk3 gtk-encode-symbolic-svg">
431 <primary sortas="b-gtk-encode-symbolic-svg">gtk-encode-symbolic-svg</primary>
432 </indexterm>
433 </listitem>
434 </varlistentry>
435
436 <varlistentry id="gtk-launch">
437 <term><command>gtk-launch</command></term>
438 <listitem>
439 <para>
440 launches an application using the given name. The name should match
441 the application desktop file name, as residing in
442 <filename class="directory">/usr/share/applications</filename>, with
443 or without the '.desktop' suffix.
444 </para>
445 <indexterm zone="gtk3 gtk-launch">
446 <primary sortas="b-gtk-launch">gtk-launch</primary>
447 </indexterm>
448 </listitem>
449 </varlistentry>
450
451 <varlistentry id="gtk-query-immodules-3.0">
452 <term><command>gtk-query-immodules-3.0</command></term>
453 <listitem>
454 <para>
455 collects information about loadable input method modules for
456 <application>GTK+ 3</application> and writes it to the default cache
457 file location, or to standard output.
458 </para>
459 <indexterm zone="gtk3 gtk-query-immodules-3.0">
460 <primary sortas="b-gtk-query-immodules-3.0">gtk-query-immodules-3.0</primary>
461 </indexterm>
462 </listitem>
463 </varlistentry>
464
465 <varlistentry id="gtk-query-settings">
466 <term><command>gtk-query-settings</command></term>
467 <listitem>
468 <para>
469 provides a complete listing of all settings related to
470 <application>GTK+ 3</application>
471 </para>
472 <indexterm zone="gtk3 gtk-query-settings">
473 <primary sortas="b-gtk-query-settings">gtk-query-settings</primary>
474 </indexterm>
475 </listitem>
476 </varlistentry>
477
478 <varlistentry id="gtk-update-icon-cache3">
479 <term><command>gtk-update-icon-cache</command></term>
480 <listitem>
481 <para>
482 is an icon theme caching utility that creates mmap()able cache files
483 for icon themes.
484 </para>
485 <indexterm zone="gtk3 gtk-update-icon-cache3">
486 <primary sortas="b-gtk-update-icon-cache3">gtk-update-icon-cache</primary>
487 </indexterm>
488 </listitem>
489 </varlistentry>
490
491 <varlistentry id="libgailutil-3">
492 <term><filename class="libraryfile">libgailutil-3.so</filename></term>
493 <listitem>
494 <para>
495 contains functions that implement the accessibility interfaces
496 defined by the <application>GNOME</application> Accessibility
497 Toolkit.
498 </para>
499 <indexterm zone="gtk3 libgailutil-3">
500 <primary sortas="c-libgailutil-3">libgailutil-3.so</primary>
501 </indexterm>
502 </listitem>
503 </varlistentry>
504
505 <varlistentry id="libgdk-3">
506 <term><filename class="libraryfile">libgdk-3.so</filename></term>
507 <listitem>
508 <para>
509 contains functions that act as a wrapper around the low-level
510 drawing and windowing functions provided by the underlying graphics
511 system.
512 </para>
513 <indexterm zone="gtk3 libgdk-3">
514 <primary sortas="c-libgdk-3">libgdk-3.so</primary>
515 </indexterm>
516 </listitem>
517 </varlistentry>
518
519 <varlistentry id="libgtk-3">
520 <term><filename class="libraryfile">libgtk-3.so</filename></term>
521 <listitem>
522 <para>
523 contains functions that provide an API to implement graphical user
524 interfaces.
525 </para>
526 <indexterm zone="gtk3 libgtk-3">
527 <primary sortas="c-libgtk-3">libgtk-3.so</primary>
528 </indexterm>
529 </listitem>
530 </varlistentry>
531
532 </variablelist>
533
534 </sect2>
535
536</sect1>
Note: See TracBrowser for help on using the repository browser.