source: x/lib/gtk+3-systemd.xml@ d72fae5a

krejzi/svn
Last change on this file since d72fae5a was d72fae5a, checked in by Krejzi <krejzi@…>, 10 years ago

Xorg Libraries chapter updates.

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