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