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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.7 7.8 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 krejzi/svn 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 40800638 was 080a144, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

GTK+-2.24.24, GTK+-3.14.1, Nautilus-3.14.0, and PCManFM-1.2.2: add, or replace gnome-icon-theme by, adwaita-icon-theme.

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

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