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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 c1cd6b15 was c1cd6b15, checked in by Ken Moffat <ken@…>, 8 years ago

gtk+-3.18.8 and account for the gir files from gtk+-2.24.30 : No, I do not have introspection on this system, only people building gnome have any use for it and I am sorely tempted to downgrade it from recommended (required...) to optional (required...).

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

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