source: x/lib/gtk3.xml@ dd9e0c3

systemd-13485
Last change on this file since dd9e0c3 was f080ae0e, checked in by Douglas R. Reno <renodr@…>, 8 years ago

Merge to trunk r17352

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