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