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

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 c870dc3 was c870dc3, checked in by Fernando de Oliveira <fernando@…>, 9 years ago
  • Update to adwaita-icon-theme-3.18.0.
  • Update to gtk+-3.18.2.
  • Update to pango-1.38.1.
  • Cups-2.1.0: no problem building without AVAHI.
  • PulseAudio-7.0: typo.

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

  • Property mode set to 100644
File size: 15.4 KB
RevLine 
[76a07db]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
[19bcba7d]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">
[c870dc3]9 <!ENTITY gtk3-md5sum "230fd78e42419d35ff790784b457e5f2">
10 <!ENTITY gtk3-size "19 MB">
11 <!ENTITY gtk3-buildsize "512 MB (with tests)">
12 <!ENTITY gtk3-time "7.3 SBU (with tests)">
[76a07db]13]>
14
[a2912ff]15<sect1 id="gtk3" xreflabel="GTK+-&gtk3-version;">
[76a07db]16 <?dbhtml filename="gtk3.html"?>
17
18 <sect1info>
[7e2c95d]19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
[76a07db]21 </sect1info>
22
[a2912ff]23 <title>GTK+-&gtk3-version;</title>
[76a07db]24
25 <indexterm zone="gtk3">
[d356833]26 <primary sortas="a-GTK+3">GTK+3</primary>
[76a07db]27 </indexterm>
28
29 <sect2 role="package">
[a2912ff]30 <title>Introduction to GTK+ 3</title>
[76a07db]31
[ce9d22a]32 <para>
[01c8c8f4]33 The <application>GTK+ 3</application> package contains
[a2912ff]34 libraries used for creating graphical user interfaces for
35 applications.
[ce9d22a]36 </para>
[76a07db]37
[33c9d33]38 &lfs78_checked;
[76a07db]39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
[ce9d22a]43 <para>
44 Download (HTTP): <ulink url="&gtk3-download-http;"/>
45 </para>
[76a07db]46 </listitem>
47 <listitem>
[ce9d22a]48 <para>
49 Download (FTP): <ulink url="&gtk3-download-ftp;"/>
50 </para>
[76a07db]51 </listitem>
52 <listitem>
[ce9d22a]53 <para>
54 Download MD5 sum: &gtk3-md5sum;
55 </para>
[76a07db]56 </listitem>
57 <listitem>
[ce9d22a]58 <para>
59 Download size: &gtk3-size;
60 </para>
[76a07db]61 </listitem>
62 <listitem>
[ce9d22a]63 <para>
64 Estimated disk space required: &gtk3-buildsize;
65 </para>
[76a07db]66 </listitem>
67 <listitem>
[ce9d22a]68 <para>
69 Estimated build time: &gtk3-time;
70 </para>
[76a07db]71 </listitem>
72 </itemizedlist>
73
[a2912ff]74 <bridgehead renderas="sect3">GTK+ 3 Dependencies</bridgehead>
[76a07db]75
76 <bridgehead renderas="sect4">Required</bridgehead>
[ce9d22a]77 <para role="required">
[d356833]78 <xref linkend="at-spi2-atk"/>,
[d432b7a]79 <xref linkend="gdk-pixbuf"/>, and
[742b99e]80 <xref linkend="pango"/>
81 </para>
82
[4c2be438]83 <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
84 <para role="optional">
85 <xref linkend="gobject-introspection"/>
86 </para>
87
[76a07db]88 <bridgehead renderas="sect4">Optional</bridgehead>
[ce9d22a]89 <para role="optional">
[a5524c14]90 an icon theme such as <xref linkend="adwaita-icon-theme"/> (for tests),
[b7a80c66]91 <xref linkend="colord"/>,
[ce9d22a]92 <xref linkend="cups"/>,
[7ea83d7]93 <xref linkend="docbook-utils"/>,
94 <xref linkend="gtk-doc"/>,
[a5524c14]95 <xref linkend="hicolor-icon-theme"/> (needed for tests),
[7007944]96 <xref linkend="json-glib"/>,
97 <ulink url="http://ftp.acc.umu.se/pub/gnome/sources/rest/">rest</ulink>,
[d432b7a]98 <ulink url="http://xkbcommon.org/">libxkbcommon</ulink>, and
[7ea83d7]99 <ulink url="http://wayland.freedesktop.org/">Wayland</ulink>
[ce9d22a]100 </para>
101
102 <para condition="html" role="usernotes">
103 User Notes: <ulink url="&blfs-wiki;/gtk3"/>
104 </para>
[76a07db]105 </sect2>
106
107 <sect2 role="installation">
[a2912ff]108 <title>Installation of GTK+ 3</title>
[76a07db]109
[b84342d6]110 <note>
111 <para>
[a2912ff]112 <application>GTK+ 3</application> will overwrite
[d432b7a]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
[a2912ff]116 <application>GTK+ 2</application> you can add
[b84342d6]117 <option>--enable-gtk2-dependency</option> to the
118 <command>configure</command> command.
119 </para>
120 </note>
121
[ce9d22a]122 <para>
[a2912ff]123 Install <application>GTK+ 3</application> by running the following
[ce9d22a]124 commands:
125 </para>
[76a07db]126
[4b6f5d3]127<screen><userinput>./configure --prefix=/usr \
[a8e57cb]128 --sysconfdir=/etc \
[f82ac3f]129 --enable-broadway-backend \
[a8e57cb]130 --enable-x11-backend \
[f82ac3f]131 --disable-wayland-backend &amp;&amp;
[76a07db]132make</userinput></screen>
133
[b4ec1126]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
[ce9d22a]144 <para>
[27236c5]145 To test the results you need a graphical session, then issue
[45acacc]146 <command>make check</command>.
[ce9d22a]147 </para>
[76a07db]148
[ce9d22a]149 <para>
150 Now, as the <systemitem class="username">root</systemitem> user:
151 </para>
[76a07db]152
153<screen role="root"><userinput>make install</userinput></screen>
[2ffe965]154
155 <note>
156 <para>
157 If you installed the package on to your system using a
[6c13e98]158 <quote>DESTDIR</quote> method, an important file was not installed and
[2ffe965]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>
[bc9797f]165
166 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
167 href="../../xincludes/gsettings-destdir.xml"/>
[76a07db]168 </sect2>
169
170 <sect2 role="commands">
171 <title>Command Explanations</title>
172
[ce9d22a]173 <para>
[a5524c14]174 <parameter>--enable-broadway-backend</parameter>: switch enables the
175 HTML5 GTK backend.
[a8e57cb]176 </para>
177
178 <para>
[a5524c14]179 <parameter>--enable-x11-backend</parameter>: switch enables the X11 GDK
180 backend.
[ce9d22a]181 </para>
[76a07db]182
[ce9d22a]183 <para>
[a5524c14]184 <parameter>--disable-wayland-backend</parameter>: switch disables the
185 Wayland GDK backend because Wayland isn't available in BLFS.
[ce9d22a]186 </para>
[2ffe965]187
[94936bac]188 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
189 href="../../xincludes/gtk-doc-rebuild.xml"/>
190
[76a07db]191 </sect2>
192
193 <sect2 role="configuration">
[a2912ff]194 <title>Configuring GTK+ 3</title>
[76a07db]195
196 <sect3 id="gtk3-config">
197 <title>Config Files</title>
[ce9d22a]198 <para>
199 <filename>~/.config/gtk-3.0/settings.ini</filename> and
200 <filename>/etc/gtk-3.0/settings.ini</filename>
201 </para>
[76a07db]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
[ce9d22a]214 <para>
[a2912ff]215 <application>GTK+ 3</application> themes change the way a
[080a144]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
[ebee860]221 <filename>~/.config/gtk-3.0/settings.ini</filename>. Eg:
[ce9d22a]222 </para>
[76a07db]223
[4520f55]224<screen><userinput>mkdir -p ~/.config/gtk-3.0 &amp;&amp;
225cat &gt; ~/.config/gtk-3.0/settings.ini &lt;&lt; "EOF"
[76a07db]226[Settings]
227gtk-theme-name = <replaceable>Adwaita</replaceable>
228gtk-fallback-icon-theme = <replaceable>gnome</replaceable>
229EOF</userinput></screen>
230
[ce9d22a]231 <para>
232 There are many more themes available at
233 <ulink url="http://gnome-look.org/"/> and other places.
234 </para>
[76a07db]235
[ce9d22a]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>
[76a07db]241
[5bfcda01]242<screen role="root"><userinput>cat &gt; /etc/gtk-3.0/settings.ini &lt;&lt; "EOF"
243[Settings]
[76a07db]244gtk-theme-name = <replaceable>Clearwaita</replaceable>
245gtk-fallback-icon-theme = <replaceable>elementary</replaceable>
246EOF</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>
[ce9d22a]259 <seg>
[c870dc3]260 broadwayd,
261 gtk3-demo,
262 gtk3-demo-application,
263 gtk3-icon-browser,
264 gtk3-widget-factory,
265 gtk-builder-tool,
266 gtk-encode-symbolic-svg,
267 gtk-launch,
[ed2179c9]268 gtk-query-immodules-3.0, and
269 gtk-update-icon-cache
[742b99e]270 </seg>
271 <seg>
[6d5310f]272 libgailutil-3.so, libgdk-3.so, and libgtk-3.so
[805809d]273
[742b99e]274 </seg>
275 <seg>
[0d7900a]276 /etc/gtk-3.0,
[77f6b3c]277 /usr/include/{gail,gtk}-3.0,
[c870dc3]278 /usr/{lib,share}/gtk-3.0,
[e68334e]279 /usr/share/gtk-doc/html/{gail-libgail-util3,gdk3,gtk3}, and
280 /usr/share/themes/{Default,Emacs}/gtk-3.0
[ce9d22a]281 </seg>
[76a07db]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
[e68334e]290 <varlistentry id="broadwayd">
291 <term><command>broadwayd</command></term>
292 <listitem>
293 <para>
[c197636]294 provides support for displaying
[e68334e]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
[c870dc3]304 <varlistentry id="gtk3-demo">
305 <term><command>gtk3-demo</command></term>
[6d5310f]306 <listitem>
307 <para>
[c870dc3]308 is a simple program that demonstrates some of the things that can be
309 done with <application>GTK+ 3</application>
[6d5310f]310 </para>
[c870dc3]311 <indexterm zone="gtk3 gtk3-demo">
312 <primary sortas="b-gtk3-demo">gtk3-demo</primary>
[6d5310f]313 </indexterm>
314 </listitem>
315 </varlistentry>
316
[c870dc3]317 <varlistentry id="gtk3-demo-application">
318 <term><command>gtk3-demo-application</command></term>
[d356833]319 <listitem>
320 <para>
[c870dc3]321 is a simple <application>GTK+ 3</application> application.
[d356833]322 </para>
[c870dc3]323 <indexterm zone="gtk3 gtk3-demo-application">
324 <primary sortas="b-gtk3-demo-application">gtk3-demo-application</primary>
[d356833]325 </indexterm>
326 </listitem>
327 </varlistentry>
328
[c870dc3]329 <varlistentry id="gtk3-icon-browser">
330 <term><command>gtk3-icon-browser</command></term>
[76a07db]331 <listitem>
[ce9d22a]332 <para>
[c870dc3]333 is a utility to explore the icons in the current icon theme. It
334 shows icons in various sizes, their symbolic variants where
335 available, as well as a description of the icon and its context.
[ce9d22a]336 </para>
[c870dc3]337 <indexterm zone="gtk3 gtk3-icon-browser">
338 <primary sortas="b-gtk3-icon-browser">gtk3-icon-browser</primary>
[76a07db]339 </indexterm>
340 </listitem>
341 </varlistentry>
342
[c870dc3]343 <varlistentry id="gtk3-widget-factory">
344 <term><command>gtk3-widget-factory</command></term>
[76a07db]345 <listitem>
[ce9d22a]346 <para>
[c870dc3]347 is a program to view <application>GTK+ 3</application> themes and widgets.
[ce9d22a]348 </para>
[c870dc3]349 <indexterm zone="gtk3 gtk3-widget-factory">
350 <primary sortas="b-gtk3-widget-factory">gtk3-widget-factory</primary>
[76a07db]351 </indexterm>
352 </listitem>
353 </varlistentry>
354
[c870dc3]355 <varlistentry id="gtk-builder-tool">
356 <term><command>gtk-builder-tool</command></term>
[35d0635]357 <listitem>
358 <para>
[c870dc3]359 can perform various operations on GtkBuilder .ui files.
[35d0635]360 </para>
[c870dc3]361 <indexterm zone="gtk3 gtk-builder-tool">
362 <primary sortas="b-gtk-builder-tool">gtk-builder-tool</primary>
[35d0635]363 </indexterm>
364 </listitem>
365 </varlistentry>
366
[c870dc3]367 <varlistentry id="gtk-encode-symbolic-svg">
368 <term><command>gtk-encode-symbolic-svg</command></term>
[35d0635]369 <listitem>
370 <para>
[c870dc3]371 converts symbolic svg icons into specially prepared png files.
372 <application>GTK+ 3</application> can load and recolor these pngs,
373 just like original svgs, but loading them is much faster.
[35d0635]374 </para>
[c870dc3]375 <indexterm zone="gtk3 gtk-encode-symbolic-svg">
376 <primary sortas="b-gtk-encode-symbolic-svg">gtk-encode-symbolic-svg</primary>
[35d0635]377 </indexterm>
378 </listitem>
379 </varlistentry>
380
[c870dc3]381 <varlistentry id="gtk-launch">
382 <term><command>gtk-launch</command></term>
[6d5310f]383 <listitem>
384 <para>
[c870dc3]385 launches an application using the given name. The name should match
386 application desktop file name, as residing in
387 <filename class="directory">/usr/share/application</filename>, with
388 or without the '.desktop' suffix.
[6d5310f]389 </para>
[c870dc3]390 <indexterm zone="gtk3 gtk-launch">
391 <primary sortas="b-gtk-launch">gtk-launch</primary>
[6d5310f]392 </indexterm>
393 </listitem>
394 </varlistentry>
395
[c870dc3]396 <varlistentry id="gtk-query-immodules-3.0">
397 <term><command>gtk-query-immodules-3.0</command></term>
[35d0635]398 <listitem>
399 <para>
[c870dc3]400 collects information about loadable input method modules for
401 <application>GTK+ 3</application> and writes it to the default cache
402 file location, or to standard output.
[35d0635]403 </para>
[c870dc3]404 <indexterm zone="gtk3 gtk-query-immodules-3.0">
405 <primary sortas="b-gtk-query-immodules-3.0">gtk-query-immodules-3.0</primary>
406 </indexterm>
407 </listitem>
408 </varlistentry>
409
410 <varlistentry id="gtk-update-icon-cache3">
411 <term><command>gtk-update-icon-cache</command></term>
412 <listitem>
413 <para>
414 is an icon theme caching utility that creates mmap()able cache files
415 for icon themes.
416 </para>
417 <indexterm zone="gtk3 gtk-update-icon-cache3">
418 <primary sortas="b-gtk-update-icon-cache3">gtk-update-icon-cache</primary>
[35d0635]419 </indexterm>
420 </listitem>
421 </varlistentry>
422
[d356833]423 <varlistentry id="libgailutil-3">
424 <term><filename class="libraryfile">libgailutil-3.so</filename></term>
[76a07db]425 <listitem>
[ce9d22a]426 <para>
427 contains functions that implements the accessibility interfaces
[d356833]428 defined by the <application>GNOME</application> Accessibility
429 Toolkit.
[ce9d22a]430 </para>
[d356833]431 <indexterm zone="gtk3 libgailutil-3">
432 <primary sortas="c-libgailutil-3">libgailutil-3.so</primary>
[76a07db]433 </indexterm>
434 </listitem>
435 </varlistentry>
436
437 <varlistentry id="libgdk-3">
[d356833]438 <term><filename class="libraryfile">libgdk-3.so</filename></term>
[76a07db]439 <listitem>
[ce9d22a]440 <para>
441 contains functions that act as a wrapper around the low-level
442 drawing and windowing functions provided by the underlying graphics
[742b99e]443 system.
[ce9d22a]444 </para>
[76a07db]445 <indexterm zone="gtk3 libgdk-3">
446 <primary sortas="c-libgdk-3">libgdk-3.so</primary>
447 </indexterm>
448 </listitem>
449 </varlistentry>
450
451 <varlistentry id="libgtk-3">
[d356833]452 <term><filename class="libraryfile">libgtk-3.so</filename></term>
[76a07db]453 <listitem>
[ce9d22a]454 <para>
455 contains functions that provide an API to implement graphical user
456 interfaces.
457 </para>
[76a07db]458 <indexterm zone="gtk3 libgtk-3">
459 <primary sortas="c-libgtk-3">libgtk-3.so</primary>
460 </indexterm>
461 </listitem>
462 </varlistentry>
[a2912ff]463
[76a07db]464 </variablelist>
[b84342d6]465
[76a07db]466 </sect2>
[b84342d6]467
[76a07db]468</sect1>
Note: See TracBrowser for help on using the repository browser.