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

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 ae0f6ec0 was ae0f6ec0, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Update to qupzilla-2.1.2.
Update to gtk+3.22.11.
Update to poppler-0.53.0.
Update to atk-2.24.0.
Remove dead ftp url in fetchmail.

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

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