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

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

Update to gnome-themes-standard-3.22.2
Update to gnome-backgrounds-3.22.1
Update to gtk+-3.22.1
Added a link to gtk-engines in the GTK+-2 page and made it available to sysv again

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

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