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

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 aa9028e was 17ec08f, checked in by Fernando de Oliveira <fernando@…>, 9 years ago
  • Update to gtk+-3.18.4 (gtk+3.18.4).

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

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