source: x/lib/gtk+3.xml@ 057a050

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

Update to gtk+-3.22.10
Update to JSON-Glib-1.2.6

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

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