source: x/lib/gtk+3.xml@ 17ec08f

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 17ec08f was 17ec08f, checked in by Fernando de Oliveira <fernando@…>, 8 years ago
  • Update to gtk+-3.18.4 (gtk+3.18.4).

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

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