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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.9 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 b800b517 was b800b517, checked in by Fernando de Oliveira <fernando@…>, 8 years ago
  • Update to mercurial-3.6.1.
  • Update to gtk+-3.18.3 (gtk+3.18.3).

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

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