source: x/lib/gtk+3.xml@ 31ee0ed

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.1 bdubbs/svn kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 31ee0ed was 31ee0ed, checked in by Pierre Labastie <pieere@…>, 5 years ago

Remove dependency on six in libtasn1 and gtk3

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