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

10.0 10.1 11.0 7.10 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind ken/refactor-virt lazarus nosym perl-modules qt5new trunk upgradedb xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 8615350 was 8615350, checked in by Douglas R. Reno <renodr@…>, 6 years ago

Updated to GTK+-3.20.6
Tags
(systemd/gnome merge staging) - Updated to adwaita-icon-theme-3.20
(systemd/gnome merge) - Moved rest to trunk for GTK+
(systemd/gnome merge) - Layout modifications

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

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