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

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

Update to libuv-v1.24.1.
Update to c-ares-1.15.0.
Update to gtk+-3.24.2.

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

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