source: x/lib/gtk+3.xml@ 6d5310f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.7 7.8 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 krejzi/svn 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 6d5310f was 6d5310f, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Update to pygobject-3.14.0.
Update to atk-2.14.0.
Update to at-spi2-core-2.14.0.
Update to at-spi2-atk-2.14.0.
Update to clutter-1.20.0.
Update to clutter-gtk-1.6.0.
Update to gtk+-3.14.0.
Update to pango-1.36.8.
Update to gobject-introspection-1.42.0.
Update to gtkmm-3.14.0.

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

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