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

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 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 92245989 was 92245989, checked in by DJ Lucas <dj@…>, 7 years ago

Merge nosym branch

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

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