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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 bed608b0 was bed608b0, checked in by DJ Lucas <dj@…>, 8 years ago

[Systemd merge] - Chapter 25

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

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