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