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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 f726d564 was f726d564, checked in by Bruce Dubbs <bdubbs@…>, 5 years ago

Update to libsecret-0.19.0.
Update to upower-0.99.11.
Update to gtk+-3.24.11.
Update to v4l-utils-1.16.7.

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

  • Property mode set to 100644
File size: 18.1 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
[316d2235]7 <!ENTITY gtk3-download-http "&gnome-download-http;/gtk+/&gnome-minor-24;/gtk+-&gtk3-version;.tar.xz">
8 <!ENTITY gtk3-download-ftp "&gnome-download-ftp;/gtk+/&gnome-minor-24;/gtk+-&gtk3-version;.tar.xz">
[f726d564]9 <!ENTITY gtk3-md5sum "0a9581f9a1b71d1a2f57fae3adf46b94">
[92503bc]10 <!ENTITY gtk3-size "20 MB">
[f726d564]11 <!ENTITY gtk3-buildsize "460 MB (including tests)">
12 <!ENTITY gtk3-time "1.1 SBU (using parallelism=4, add 0.1 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
[f58cd213]38 &lfs90_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"/>,
[1c1e2b86]79 <xref linkend="fribidi"/>,
[0c16838]80 <xref linkend="gdk-pixbuf"/>,
[31ee0ed]81 <xref linkend="libepoxy"/>, and
82 <xref linkend="pango"/>
83<!-- does not seem to be needed anymore
84 <xref linkend="six"/>-->
[742b99e]85 </para>
86
[dda4b24]87 <bridgehead renderas="sect4">Recommended</bridgehead>
88 <para role="recommended">
89 <xref linkend="adwaita-icon-theme"/> (default for some gtk+3 settings
[fe5d91f]90 keys, also needed for tests),
91 <xref linkend="hicolor-icon-theme"/> (needed for tests),
[42ae206]92 <xref linkend="iso-codes"/>,
[03571cd]93 <xref linkend="libxkbcommon"/>,
[92503bc]94 <xref linkend="sassc"/>,
[03c5583c]95 <xref linkend="wayland"/>, and
96 <xref linkend="wayland-protocols"/>
[dda4b24]97 </para>
98
[39ffbd0]99 <bridgehead renderas="sect4">Recommended (Required if building GNOME)</bridgehead>
100 <para role="recommended">
[4c2be438]101 <xref linkend="gobject-introspection"/>
102 </para>
103
[76a07db]104 <bridgehead renderas="sect4">Optional</bridgehead>
[51dfb3e]105 <para role="optional">
[8615350]106 <xref linkend="colord"/>,
107 <xref linkend="cups"/>,
108 <xref linkend="docbook-utils"/>,
109 <xref linkend="gtk-doc"/>,
110 <xref linkend="json-glib"/>,
[93883ec]111 <xref linkend="pyatspi2"/> (for tests),
[fe5d91f]112 <xref linkend="rest"/>, and
[057a050]113 <ulink url="http://icl.cs.utk.edu/papi/">PAPI</ulink>
[ce9d22a]114 </para>
115
116 <para condition="html" role="usernotes">
117 User Notes: <ulink url="&blfs-wiki;/gtk3"/>
118 </para>
[76a07db]119 </sect2>
120
121 <sect2 role="installation">
[a2912ff]122 <title>Installation of GTK+ 3</title>
[92503bc]123
124 <!-- This is due to the meson transition -->
125 <caution>
126 <para>If you are upgrading from a version of GTK+3 prior to 3.24.9,
127 you must run the <filename>remove-la-files.sh</filename> script from
128 <xref linkend="la-files"/> after installing GTK+.</para>
129 </caution>
130
[ce9d22a]131 <para>
[a2912ff]132 Install <application>GTK+ 3</application> by running the following
[ce9d22a]133 commands:
134 </para>
[76a07db]135
[92503bc]136<!-- The build directory already exists since this package allows both Autotools
137 and Meson to be used
138 This may have to be changed in a few versions, or when GTK4 comes out.-->
139<screen><userinput>cd build &amp;&amp;
140meson --prefix=/usr \
141 -Dcolord=yes \
142 -Dgtk_doc=false \
143 -Dman=true \
144 -Dbroadway_backend=true .. &amp;&amp;
145ninja</userinput></screen>
[76a07db]146
[b4ec1126]147 <para>
148 Some tests fail if
149 <filename>/usr/share/glib-2.0/schemas/gschemas.compiled</filename> is not
150 found. If you wish to run the test suite, create (or update) the file
151 using the following command as the
152 <systemitem class="username">root</systemitem> user:
[3af9e1e9]153 <command>glib-compile-schemas /usr/share/glib-2.0/schemas</command>.
[b4ec1126]154 </para>
155
[ce9d22a]156 <para>
[27236c5]157 To test the results you need a graphical session, then issue
[92503bc]158 <command>ninja test</command>. <!--There are several tests that
[63256d93]159 have subtests that are known to fail: scrolledwindow, treeview,
160 accessibility-dump, test-css-nodes, and gtk-reftest.
161 Additionally many tests will fail if the current
[92503bc]162 gtk theme (such as current XFCE themes) has deprecated elements.-->
[f4d79269]163 six tests are known to fail in the a11y suite.
[ce9d22a]164 </para>
[76a07db]165
[ce9d22a]166 <para>
167 Now, as the <systemitem class="username">root</systemitem> user:
168 </para>
[76a07db]169
[92503bc]170 <screen role="root"><userinput>ninja install</userinput></screen>
[2ffe965]171
172 <note>
173 <para>
174 If you installed the package on to your system using a
[6c13e98]175 <quote>DESTDIR</quote> method, an important file was not installed and
[2ffe965]176 must be copied and/or generated. Generate it using the following
177 command as the <systemitem class="username">root</systemitem> user:
178 </para>
179
180<screen role="root"><userinput>gtk-query-immodules-3.0 --update-cache</userinput></screen>
181 </note>
[bc9797f]182
183 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
184 href="../../xincludes/gsettings-destdir.xml"/>
[76a07db]185 </sect2>
186
187 <sect2 role="commands">
188 <title>Command Explanations</title>
189
[ce9d22a]190 <para>
[92503bc]191 <parameter>-Dbroadway_backend=true</parameter>: This switch enables the
[a5524c14]192 HTML5 GTK backend.
[a8e57cb]193 </para>
[92503bc]194 <!--
[a8e57cb]195 <para>
[92503bc]196 <parameter>- -enable-x11-backend</parameter>: This switch enables the X11
[de4d07a]197 GDK backend.
[ce9d22a]198 </para>
[92503bc]199 -->
200 <!--
[ce9d22a]201 <para>
[92503bc]202 <parameter>- -enable-wayland-backend</parameter>: This switch
[fe5d91f]203 enables the Wayland GDK backend. Replace with
[92503bc]204 <option>- -disable-wayland-backend</option> if you do not have
[f7841987]205 <xref linkend="wayland"/> and <xref linkend="wayland-protocols"/>
[fe5d91f]206 or you do not wish to build <application>GNOME</application> with Wayland
207 support. Other changes may be needed to allow the build to complete
[cd7dab9]208 without the wayland backend enabled. Note that a previous installation
209 of gtk+3 built with wayland will interfere with installation without
210 wayland. If this is desired, remove /usr/lib//usr/lib/libgtk-3* before
211 installation.
[ce9d22a]212 </para>
[92503bc]213 -->
214 <!--
[94936bac]215 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
216 href="../../xincludes/gtk-doc-rebuild.xml"/>
[92503bc]217 -->
218 <para>
219 <parameter>-Dcolord=yes</parameter>: This switch allows color support
220 in the GTK+ printing backend.
221 </para>
222
223 <para>
224 <parameter>-Dman=true</parameter>: This switch allows generating
225 manual pages.
226 </para>
227
228 <para>
229 <parameter>-Dgtk_doc=false</parameter>: This switch disables building
230 documentation. Replace with -Dgtk_doc=true if you have
231 <xref linkend="gtk-doc"/> installed and wish to generate documentation.
232 </para>
[94936bac]233
[76a07db]234 </sect2>
235
236 <sect2 role="configuration">
[a2912ff]237 <title>Configuring GTK+ 3</title>
[76a07db]238
239 <sect3 id="gtk3-config">
240 <title>Config Files</title>
[ce9d22a]241 <para>
242 <filename>~/.config/gtk-3.0/settings.ini</filename> and
243 <filename>/etc/gtk-3.0/settings.ini</filename>
244 </para>
[76a07db]245
246 <indexterm zone="gtk3 gtk3-config">
247 <primary sortas="e-AA.home-settings.ini">~/.config/gtk-3.0/settings.ini</primary>
248 </indexterm>
249
250 <indexterm zone="gtk3 gtk3-config">
251 <primary sortas="e-etc-path-settings.ini">/etc/gtk-3.0/settings.ini</primary>
252 </indexterm>
253 </sect3>
254
255 <sect3><title>Configuration Information</title>
256
[ce9d22a]257 <para>
[a2912ff]258 <application>GTK+ 3</application> themes change the way a
[080a144]259 <application>GTK+ 3</application> application looks. An icon theme can
260 be used to change the icons that appear on the application's toolbar.
[de4d07a]261 If you have installed a <application>GTK+ 3</application> theme (e.g.
[42ae206]262 <xref linkend="gnome-themes-extra"/>), an icon theme (such as <xref
263 linkend="oxygen-icons5"/>) and/or a font (<xref linkend="dejavu-fonts"/>),
264 you can set your preferences in <filename>~/.config/gtk-3.0/settings.ini</filename>,
[0dcc2bd2]265 or the default system wide configuration file (as the <systemitem
266 class="username">root</systemitem> user), in
267 <filename>/etc/gtk-3.0/settings.ini</filename>. For the local user an
268 example is:
[ce9d22a]269 </para>
[76a07db]270
[dda4b24]271<screen><userinput>mkdir -vp ~/.config/gtk-3.0
[4520f55]272cat &gt; ~/.config/gtk-3.0/settings.ini &lt;&lt; "EOF"
[dda4b24]273<literal>[Settings]
[76a07db]274gtk-theme-name = <replaceable>Adwaita</replaceable>
[dda4b24]275gtk-icon-theme-name = <replaceable>oxygen</replaceable>
276gtk-font-name = <replaceable>DejaVu Sans 12</replaceable>
277gtk-cursor-theme-size = <replaceable>18</replaceable>
278gtk-toolbar-style = <replaceable>GTK_TOOLBAR_BOTH_HORIZ</replaceable>
279gtk-xft-antialias = <replaceable>1</replaceable>
280gtk-xft-hinting = <replaceable>1</replaceable>
281gtk-xft-hintstyle = <replaceable>hintslight</replaceable>
282gtk-xft-rgba = <replaceable>rgb</replaceable>
283gtk-cursor-theme-name = <replaceable>Adwaita</replaceable></literal>
[76a07db]284EOF</userinput></screen>
285
[ce9d22a]286 <para>
[dda4b24]287 There are many settings keys, some with default values. You can find
288 them at <ulink
289 url="https://developer.gnome.org/gtk3/stable/GtkSettings.html">Settings:
290 GTK+ 3 Reference Manual</ulink>. There are many more themes available at
[ce9d22a]291 <ulink url="http://gnome-look.org/"/> and other places.
292 </para>
[76a07db]293
294 </sect3>
295 </sect2>
296
297 <sect2 role="content">
298 <title>Contents</title>
299
300 <segmentedlist>
301 <segtitle>Installed Programs</segtitle>
302 <segtitle>Installed Libraries</segtitle>
303 <segtitle>Installed Directories</segtitle>
304
305 <seglistitem>
[ce9d22a]306 <seg>
[c870dc3]307 broadwayd,
308 gtk3-demo,
309 gtk3-demo-application,
310 gtk3-icon-browser,
311 gtk3-widget-factory,
312 gtk-builder-tool,
313 gtk-encode-symbolic-svg,
314 gtk-launch,
[8615350]315 gtk-query-immodules-3.0,
316 gtk-query-settings, and
[ed2179c9]317 gtk-update-icon-cache
[742b99e]318 </seg>
319 <seg>
[6d5310f]320 libgailutil-3.so, libgdk-3.so, and libgtk-3.so
[742b99e]321 </seg>
322 <seg>
[0d7900a]323 /etc/gtk-3.0,
[77f6b3c]324 /usr/include/{gail,gtk}-3.0,
[c870dc3]325 /usr/{lib,share}/gtk-3.0,
[b800b517]326 /usr/share/gtk-doc/html/{gail-libgail-util,gdk,gtk}3, and
[e68334e]327 /usr/share/themes/{Default,Emacs}/gtk-3.0
[ce9d22a]328 </seg>
[76a07db]329 </seglistitem>
330 </segmentedlist>
331
332 <variablelist>
333 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
334 <?dbfo list-presentation="list"?>
335 <?dbhtml list-presentation="table"?>
336
[e68334e]337 <varlistentry id="broadwayd">
338 <term><command>broadwayd</command></term>
339 <listitem>
340 <para>
[c197636]341 provides support for displaying
[e68334e]342 <application>GTK+ 3</application> applications in a web browser,
343 using HTML5 and web sockets.
344 </para>
345 <indexterm zone="gtk3 broadwayd">
346 <primary sortas="b-broadwayd">broadwayd</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
350
[c870dc3]351 <varlistentry id="gtk3-demo">
352 <term><command>gtk3-demo</command></term>
[6d5310f]353 <listitem>
354 <para>
[170773d3]355 is a simple program that demonstrates some of the tasks that can be
[c870dc3]356 done with <application>GTK+ 3</application>
[6d5310f]357 </para>
[c870dc3]358 <indexterm zone="gtk3 gtk3-demo">
359 <primary sortas="b-gtk3-demo">gtk3-demo</primary>
[6d5310f]360 </indexterm>
361 </listitem>
362 </varlistentry>
363
[c870dc3]364 <varlistentry id="gtk3-demo-application">
365 <term><command>gtk3-demo-application</command></term>
[d356833]366 <listitem>
367 <para>
[c870dc3]368 is a simple <application>GTK+ 3</application> application.
[d356833]369 </para>
[c870dc3]370 <indexterm zone="gtk3 gtk3-demo-application">
371 <primary sortas="b-gtk3-demo-application">gtk3-demo-application</primary>
[d356833]372 </indexterm>
373 </listitem>
374 </varlistentry>
375
[c870dc3]376 <varlistentry id="gtk3-icon-browser">
377 <term><command>gtk3-icon-browser</command></term>
[76a07db]378 <listitem>
[ce9d22a]379 <para>
[c870dc3]380 is a utility to explore the icons in the current icon theme. It
381 shows icons in various sizes, their symbolic variants where
382 available, as well as a description of the icon and its context.
[ce9d22a]383 </para>
[c870dc3]384 <indexterm zone="gtk3 gtk3-icon-browser">
385 <primary sortas="b-gtk3-icon-browser">gtk3-icon-browser</primary>
[76a07db]386 </indexterm>
387 </listitem>
388 </varlistentry>
389
[c870dc3]390 <varlistentry id="gtk3-widget-factory">
391 <term><command>gtk3-widget-factory</command></term>
[76a07db]392 <listitem>
[ce9d22a]393 <para>
[c870dc3]394 is a program to view <application>GTK+ 3</application> themes and widgets.
[ce9d22a]395 </para>
[c870dc3]396 <indexterm zone="gtk3 gtk3-widget-factory">
397 <primary sortas="b-gtk3-widget-factory">gtk3-widget-factory</primary>
[76a07db]398 </indexterm>
399 </listitem>
400 </varlistentry>
401
[c870dc3]402 <varlistentry id="gtk-builder-tool">
403 <term><command>gtk-builder-tool</command></term>
[35d0635]404 <listitem>
405 <para>
[c870dc3]406 can perform various operations on GtkBuilder .ui files.
[35d0635]407 </para>
[c870dc3]408 <indexterm zone="gtk3 gtk-builder-tool">
409 <primary sortas="b-gtk-builder-tool">gtk-builder-tool</primary>
[35d0635]410 </indexterm>
411 </listitem>
412 </varlistentry>
413
[c870dc3]414 <varlistentry id="gtk-encode-symbolic-svg">
415 <term><command>gtk-encode-symbolic-svg</command></term>
[35d0635]416 <listitem>
417 <para>
[c870dc3]418 converts symbolic svg icons into specially prepared png files.
419 <application>GTK+ 3</application> can load and recolor these pngs,
420 just like original svgs, but loading them is much faster.
[35d0635]421 </para>
[c870dc3]422 <indexterm zone="gtk3 gtk-encode-symbolic-svg">
423 <primary sortas="b-gtk-encode-symbolic-svg">gtk-encode-symbolic-svg</primary>
[35d0635]424 </indexterm>
425 </listitem>
426 </varlistentry>
427
[c870dc3]428 <varlistentry id="gtk-launch">
429 <term><command>gtk-launch</command></term>
[6d5310f]430 <listitem>
431 <para>
[c870dc3]432 launches an application using the given name. The name should match
[8615350]433 the application desktop file name, as residing in
434 <filename class="directory">/usr/share/applications</filename>, with
[c870dc3]435 or without the '.desktop' suffix.
[6d5310f]436 </para>
[c870dc3]437 <indexterm zone="gtk3 gtk-launch">
438 <primary sortas="b-gtk-launch">gtk-launch</primary>
[6d5310f]439 </indexterm>
440 </listitem>
441 </varlistentry>
442
[c870dc3]443 <varlistentry id="gtk-query-immodules-3.0">
444 <term><command>gtk-query-immodules-3.0</command></term>
[35d0635]445 <listitem>
446 <para>
[c870dc3]447 collects information about loadable input method modules for
448 <application>GTK+ 3</application> and writes it to the default cache
449 file location, or to standard output.
[35d0635]450 </para>
[c870dc3]451 <indexterm zone="gtk3 gtk-query-immodules-3.0">
452 <primary sortas="b-gtk-query-immodules-3.0">gtk-query-immodules-3.0</primary>
453 </indexterm>
454 </listitem>
[8615350]455 </varlistentry>
456
457 <varlistentry id="gtk-query-settings">
458 <term><command>gtk-query-settings</command></term>
459 <listitem>
460 <para>
461 provides a complete listing of all settings related to
462 <application>GTK+ 3</application>
463 </para>
464 <indexterm zone="gtk3 gtk-query-settings">
465 <primary sortas="b-gtk-query-settings">gtk-query-settings</primary>
466 </indexterm>
467 </listitem>
[c870dc3]468 </varlistentry>
469
470 <varlistentry id="gtk-update-icon-cache3">
471 <term><command>gtk-update-icon-cache</command></term>
472 <listitem>
473 <para>
474 is an icon theme caching utility that creates mmap()able cache files
475 for icon themes.
476 </para>
477 <indexterm zone="gtk3 gtk-update-icon-cache3">
478 <primary sortas="b-gtk-update-icon-cache3">gtk-update-icon-cache</primary>
[35d0635]479 </indexterm>
480 </listitem>
481 </varlistentry>
482
[d356833]483 <varlistentry id="libgailutil-3">
484 <term><filename class="libraryfile">libgailutil-3.so</filename></term>
[76a07db]485 <listitem>
[ce9d22a]486 <para>
[3fdc9b0]487 contains functions that implement the accessibility interfaces
[d356833]488 defined by the <application>GNOME</application> Accessibility
489 Toolkit.
[ce9d22a]490 </para>
[d356833]491 <indexterm zone="gtk3 libgailutil-3">
492 <primary sortas="c-libgailutil-3">libgailutil-3.so</primary>
[76a07db]493 </indexterm>
494 </listitem>
495 </varlistentry>
496
497 <varlistentry id="libgdk-3">
[d356833]498 <term><filename class="libraryfile">libgdk-3.so</filename></term>
[76a07db]499 <listitem>
[ce9d22a]500 <para>
501 contains functions that act as a wrapper around the low-level
502 drawing and windowing functions provided by the underlying graphics
[742b99e]503 system.
[ce9d22a]504 </para>
[76a07db]505 <indexterm zone="gtk3 libgdk-3">
506 <primary sortas="c-libgdk-3">libgdk-3.so</primary>
507 </indexterm>
508 </listitem>
509 </varlistentry>
510
511 <varlistentry id="libgtk-3">
[d356833]512 <term><filename class="libraryfile">libgtk-3.so</filename></term>
[76a07db]513 <listitem>
[ce9d22a]514 <para>
515 contains functions that provide an API to implement graphical user
516 interfaces.
517 </para>
[76a07db]518 <indexterm zone="gtk3 libgtk-3">
519 <primary sortas="c-libgtk-3">libgtk-3.so</primary>
520 </indexterm>
521 </listitem>
522 </varlistentry>
[a2912ff]523
[76a07db]524 </variablelist>
[b84342d6]525
[76a07db]526 </sect2>
[b84342d6]527
[76a07db]528</sect1>
Note: See TracBrowser for help on using the repository browser.