source: x/lib/gtk+3.xml@ 3af9e1e9

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 3af9e1e9 was 3af9e1e9, checked in by Fernando de Oliveira <fernando@…>, 8 years ago
  • Update to gnupg-2.1.10.
  • Update to Archive-Zip-1.55 (perl module).
  • Update to XML-Simple-2.22 (perl module).
  • Update to gtk+-3.18.6 (gtk+3.18.6).

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16709 af4574ff-66df-0310-9fd7-8a98e5e911e0

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