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