source: x/lib/gtk+3.xml@ 8a3feaa

10.0 10.1 11.0 9.1 ken/refactor-virt lazarus qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 8a3feaa was 8a3feaa, checked in by Bruce Dubbs <bdubbs@…>, 2 years ago

Update to libjpeg-turbo-2.0.3.
Update to talloc-2.3.0.
Update to btrfs-progs-v5.2.2.
Update to glib-2.62.0.
Update to vala-0.46.0.
Update to mesa-19.1.6.
Update to cups-filters-1.25.5.

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

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