source: x/lib/gtk+3.xml@ 0d9be391

12.0 12.1 gimp3 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/spidermonkey128 xry111/xf86-video-removal
Last change on this file since 0d9be391 was cee1b30, checked in by Bruce Dubbs <bdubbs@…>, 15 months ago

Update to gtk+3-3.24.38.

  • Property mode set to 100644
File size: 16.5 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">
[cee1b30]9 <!ENTITY gtk3-md5sum "7ed2f5914683ebd515da22f5784389f4">
[7036577]10 <!ENTITY gtk3-size "12 MB">
[cee1b30]11 <!ENTITY gtk3-buildsize "233 MB (add 4 MB for tests)">
12 <!ENTITY gtk3-time "0.2 SBU (using parallelism=4, add 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
[a2912ff]19 <title>GTK+-&gtk3-version;</title>
[76a07db]20
21 <indexterm zone="gtk3">
[d356833]22 <primary sortas="a-GTK+3">GTK+3</primary>
[76a07db]23 </indexterm>
24
25 <sect2 role="package">
[a2912ff]26 <title>Introduction to GTK+ 3</title>
[76a07db]27
[ce9d22a]28 <para>
[01c8c8f4]29 The <application>GTK+ 3</application> package contains
[a2912ff]30 libraries used for creating graphical user interfaces for
31 applications.
[ce9d22a]32 </para>
[76a07db]33
[03c0def]34 &lfs113_checked;
[76a07db]35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
[ce9d22a]39 <para>
40 Download (HTTP): <ulink url="&gtk3-download-http;"/>
41 </para>
[76a07db]42 </listitem>
43 <listitem>
[ce9d22a]44 <para>
45 Download (FTP): <ulink url="&gtk3-download-ftp;"/>
46 </para>
[76a07db]47 </listitem>
48 <listitem>
[ce9d22a]49 <para>
50 Download MD5 sum: &gtk3-md5sum;
51 </para>
[76a07db]52 </listitem>
53 <listitem>
[ce9d22a]54 <para>
55 Download size: &gtk3-size;
56 </para>
[76a07db]57 </listitem>
58 <listitem>
[ce9d22a]59 <para>
60 Estimated disk space required: &gtk3-buildsize;
61 </para>
[76a07db]62 </listitem>
63 <listitem>
[ce9d22a]64 <para>
65 Estimated build time: &gtk3-time;
66 </para>
[76a07db]67 </listitem>
68 </itemizedlist>
69
[a2912ff]70 <bridgehead renderas="sect3">GTK+ 3 Dependencies</bridgehead>
[76a07db]71
72 <bridgehead renderas="sect4">Required</bridgehead>
[ce9d22a]73 <para role="required">
[1ea1e02d]74 <xref linkend="at-spi2-core"/>,
[0c16838]75 <xref linkend="gdk-pixbuf"/>,
[31ee0ed]76 <xref linkend="libepoxy"/>, and
77 <xref linkend="pango"/>
[742b99e]78 </para>
79
[dda4b24]80 <bridgehead renderas="sect4">Recommended</bridgehead>
81 <para role="recommended">
82 <xref linkend="adwaita-icon-theme"/> (default for some gtk+3 settings
[fe5d91f]83 keys, also needed for tests),
[7036577]84 <xref linkend="docbook-xsl"/> (for generating manual pages),
[fe5d91f]85 <xref linkend="hicolor-icon-theme"/> (needed for tests),
[42ae206]86 <xref linkend="iso-codes"/>,
[03571cd]87 <xref linkend="libxkbcommon"/>,
[7036577]88 <xref linkend="libxslt"/> (for generating manual pages),
[92503bc]89 <xref linkend="sassc"/>,
[03c5583c]90 <xref linkend="wayland"/>, and
91 <xref linkend="wayland-protocols"/>
[dda4b24]92 </para>
93
[39ffbd0]94 <bridgehead renderas="sect4">Recommended (Required if building GNOME)</bridgehead>
95 <para role="recommended">
[4c2be438]96 <xref linkend="gobject-introspection"/>
97 </para>
98
[76a07db]99 <bridgehead renderas="sect4">Optional</bridgehead>
[51dfb3e]100 <para role="optional">
[8615350]101 <xref linkend="colord"/>,
[8558044]102 <xref linkend="cups"/>,
[8615350]103 <xref linkend="gtk-doc"/>,
[365e97be]104 <xref linkend="pyatspi2"/> (for tests),
105 <xref linkend='tracker3'/>, and
[87fc185]106 <ulink url="https://icl.utk.edu/papi/">PAPI</ulink>
[ce9d22a]107 </para>
108
109 <para condition="html" role="usernotes">
110 User Notes: <ulink url="&blfs-wiki;/gtk3"/>
111 </para>
[76a07db]112 </sect2>
113
114 <sect2 role="installation">
[a2912ff]115 <title>Installation of GTK+ 3</title>
[92503bc]116
[ce9d22a]117 <para>
[a2912ff]118 Install <application>GTK+ 3</application> by running the following
[ce9d22a]119 commands:
120 </para>
[76a07db]121
[7036577]122 <screen><userinput>mkdir build &amp;&amp;
123cd build &amp;&amp;
124meson setup --prefix=/usr \
125 --buildtype=release \
126 -Dman=true \
127 -Dbroadway_backend=true \
[91318eb]128 .. &amp;&amp;
[7036577]129ninja</userinput></screen>
[76a07db]130
[ce9d22a]131 <para>
[27236c5]132 To test the results you need a graphical session, then issue
[cee1b30]133 <command>ninja test</command>.
[ce9d22a]134 </para>
[76a07db]135
[ce9d22a]136 <para>
137 Now, as the <systemitem class="username">root</systemitem> user:
138 </para>
[76a07db]139
[7036577]140<screen role="root"><userinput>ninja install</userinput></screen>
[2ffe965]141
142 <note>
143 <para>
144 If you installed the package on to your system using a
[7036577]145 <quote>DESTDIR</quote> method, an important file was not installed and
[2ffe965]146 must be copied and/or generated. Generate it using the following
147 command as the <systemitem class="username">root</systemitem> user:
148 </para>
149
150<screen role="root"><userinput>gtk-query-immodules-3.0 --update-cache</userinput></screen>
151 </note>
[bc9797f]152
153 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
154 href="../../xincludes/gsettings-destdir.xml"/>
[76a07db]155 </sect2>
156
157 <sect2 role="commands">
158 <title>Command Explanations</title>
159
[ce9d22a]160 <para>
[92503bc]161 <parameter>-Dbroadway_backend=true</parameter>: This switch enables the
[a5524c14]162 HTML5 GTK backend.
[a8e57cb]163 </para>
[92503bc]164
165 <para>
166 <parameter>-Dman=true</parameter>: This switch allows generating
167 manual pages.
168 </para>
169
170 <para>
[7036577]171 <option>-Dgtk_doc=true</option>: This switch enables building
172 documentation. It requires <xref linkend="gtk-doc"/>.
[92503bc]173 </para>
[94936bac]174
[365e97be]175 <para>
176 <option>-Dtracker3=true</option>: This switch enables the search
177 function based on Tracker 3 in the GTK+-3 file chooser dialog.
178 It requires <xref linkend="tracker3"/>.
179 </para>
180
[76a07db]181 </sect2>
182
183 <sect2 role="configuration">
[a2912ff]184 <title>Configuring GTK+ 3</title>
[76a07db]185
186 <sect3 id="gtk3-config">
187 <title>Config Files</title>
[ce9d22a]188 <para>
189 <filename>~/.config/gtk-3.0/settings.ini</filename> and
190 <filename>/etc/gtk-3.0/settings.ini</filename>
191 </para>
[76a07db]192
193 <indexterm zone="gtk3 gtk3-config">
194 <primary sortas="e-AA.home-settings.ini">~/.config/gtk-3.0/settings.ini</primary>
195 </indexterm>
196
197 <indexterm zone="gtk3 gtk3-config">
198 <primary sortas="e-etc-path-settings.ini">/etc/gtk-3.0/settings.ini</primary>
199 </indexterm>
200 </sect3>
201
202 <sect3><title>Configuration Information</title>
203
[ce9d22a]204 <para>
[a2912ff]205 <application>GTK+ 3</application> themes change the way a
[080a144]206 <application>GTK+ 3</application> application looks. An icon theme can
207 be used to change the icons that appear on the application's toolbar.
[de4d07a]208 If you have installed a <application>GTK+ 3</application> theme (e.g.
[20ff9ce]209 the Adwaita theme built in <application>GTK+ 3</application>),
210 an icon theme (such as <xref
[8558044]211 linkend="oxygen-icons5"/>) and/or a font (<xref linkend="dejavu-fonts"/>),
[42ae206]212 you can set your preferences in <filename>~/.config/gtk-3.0/settings.ini</filename>,
[0dcc2bd2]213 or the default system wide configuration file (as the <systemitem
214 class="username">root</systemitem> user), in
215 <filename>/etc/gtk-3.0/settings.ini</filename>. For the local user an
216 example is:
[ce9d22a]217 </para>
[76a07db]218
[dda4b24]219<screen><userinput>mkdir -vp ~/.config/gtk-3.0
[4520f55]220cat &gt; ~/.config/gtk-3.0/settings.ini &lt;&lt; "EOF"
[dda4b24]221<literal>[Settings]
[76a07db]222gtk-theme-name = <replaceable>Adwaita</replaceable>
[dda4b24]223gtk-icon-theme-name = <replaceable>oxygen</replaceable>
224gtk-font-name = <replaceable>DejaVu Sans 12</replaceable>
225gtk-cursor-theme-size = <replaceable>18</replaceable>
226gtk-toolbar-style = <replaceable>GTK_TOOLBAR_BOTH_HORIZ</replaceable>
227gtk-xft-antialias = <replaceable>1</replaceable>
228gtk-xft-hinting = <replaceable>1</replaceable>
229gtk-xft-hintstyle = <replaceable>hintslight</replaceable>
230gtk-xft-rgba = <replaceable>rgb</replaceable>
231gtk-cursor-theme-name = <replaceable>Adwaita</replaceable></literal>
[76a07db]232EOF</userinput></screen>
233
[ce9d22a]234 <para>
[dda4b24]235 There are many settings keys, some with default values. You can find
236 them at <ulink
237 url="https://developer.gnome.org/gtk3/stable/GtkSettings.html">Settings:
238 GTK+ 3 Reference Manual</ulink>. There are many more themes available at
[72f9c9a1]239 <ulink url="https://www.gnome-look.org/browse/"/> and other places.
[ce9d22a]240 </para>
[8558044]241
[8a89491]242 <para>
243 As part of GTK+-3.0's redesign, the scroll bar buttons are no longer
244 visible on the scrollbar in many applications. If this functionality
245 is desired, modify the <filename>gtk.css</filename> file and restore
246 them using the following command:
247 </para>
248
249<screen><userinput>cat &gt; ~/.config/gtk-3.0/gtk.css &lt;&lt; "EOF"
250<literal>* {
251 -GtkScrollbar-has-backward-stepper: 1;
252 -GtkScrollbar-has-forward-stepper: 1;
253}</literal>
254EOF</userinput></screen>
255
256 <!-- This trick was discovered in the Seamonkey-2.53.2 release notes:
257 http://www.seamonkey-project.org/releases/seamonkey2.53.2/ -->
[76a07db]258
259 </sect3>
260 </sect2>
261
262 <sect2 role="content">
263 <title>Contents</title>
264
265 <segmentedlist>
266 <segtitle>Installed Programs</segtitle>
267 <segtitle>Installed Libraries</segtitle>
268 <segtitle>Installed Directories</segtitle>
269
270 <seglistitem>
[ce9d22a]271 <seg>
[c870dc3]272 broadwayd,
273 gtk3-demo,
274 gtk3-demo-application,
275 gtk3-icon-browser,
276 gtk3-widget-factory,
277 gtk-builder-tool,
278 gtk-encode-symbolic-svg,
279 gtk-launch,
[8558044]280 gtk-query-immodules-3.0,
[8615350]281 gtk-query-settings, and
[ed2179c9]282 gtk-update-icon-cache
[742b99e]283 </seg>
284 <seg>
[6d5310f]285 libgailutil-3.so, libgdk-3.so, and libgtk-3.so
[742b99e]286 </seg>
287 <seg>
[0d7900a]288 /etc/gtk-3.0,
[77f6b3c]289 /usr/include/{gail,gtk}-3.0,
[7036577]290 /usr/{lib,share}/gtk-3.0, and
[e68334e]291 /usr/share/themes/{Default,Emacs}/gtk-3.0
[ce9d22a]292 </seg>
[76a07db]293 </seglistitem>
294 </segmentedlist>
295
296 <variablelist>
297 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
298 <?dbfo list-presentation="list"?>
299 <?dbhtml list-presentation="table"?>
300
[e68334e]301 <varlistentry id="broadwayd">
302 <term><command>broadwayd</command></term>
303 <listitem>
304 <para>
[c197636]305 provides support for displaying
[e68334e]306 <application>GTK+ 3</application> applications in a web browser,
[4c24eb0a]307 using HTML5 and web sockets
[e68334e]308 </para>
309 <indexterm zone="gtk3 broadwayd">
310 <primary sortas="b-broadwayd">broadwayd</primary>
311 </indexterm>
312 </listitem>
313 </varlistentry>
314
[c870dc3]315 <varlistentry id="gtk3-demo">
316 <term><command>gtk3-demo</command></term>
[6d5310f]317 <listitem>
318 <para>
[170773d3]319 is a simple program that demonstrates some of the tasks that can be
[c870dc3]320 done with <application>GTK+ 3</application>
[6d5310f]321 </para>
[c870dc3]322 <indexterm zone="gtk3 gtk3-demo">
323 <primary sortas="b-gtk3-demo">gtk3-demo</primary>
[6d5310f]324 </indexterm>
325 </listitem>
326 </varlistentry>
327
[c870dc3]328 <varlistentry id="gtk3-demo-application">
329 <term><command>gtk3-demo-application</command></term>
[d356833]330 <listitem>
331 <para>
[4c24eb0a]332 is a simple <application>GTK+ 3</application> application
[d356833]333 </para>
[c870dc3]334 <indexterm zone="gtk3 gtk3-demo-application">
335 <primary sortas="b-gtk3-demo-application">gtk3-demo-application</primary>
[d356833]336 </indexterm>
337 </listitem>
338 </varlistentry>
339
[c870dc3]340 <varlistentry id="gtk3-icon-browser">
341 <term><command>gtk3-icon-browser</command></term>
[76a07db]342 <listitem>
[ce9d22a]343 <para>
[c870dc3]344 is a utility to explore the icons in the current icon theme. It
345 shows icons in various sizes, their symbolic variants where
[4c24eb0a]346 available, as well as a description of the icon and its context
[ce9d22a]347 </para>
[c870dc3]348 <indexterm zone="gtk3 gtk3-icon-browser">
349 <primary sortas="b-gtk3-icon-browser">gtk3-icon-browser</primary>
[76a07db]350 </indexterm>
351 </listitem>
352 </varlistentry>
353
[c870dc3]354 <varlistentry id="gtk3-widget-factory">
355 <term><command>gtk3-widget-factory</command></term>
[76a07db]356 <listitem>
[ce9d22a]357 <para>
[4c24eb0a]358 is a program to view <application>GTK+ 3</application> themes and widgets
[ce9d22a]359 </para>
[c870dc3]360 <indexterm zone="gtk3 gtk3-widget-factory">
361 <primary sortas="b-gtk3-widget-factory">gtk3-widget-factory</primary>
[76a07db]362 </indexterm>
363 </listitem>
364 </varlistentry>
365
[c870dc3]366 <varlistentry id="gtk-builder-tool">
367 <term><command>gtk-builder-tool</command></term>
[35d0635]368 <listitem>
369 <para>
[9d31900]370 performs various operations on GtkBuilder .ui files
[35d0635]371 </para>
[c870dc3]372 <indexterm zone="gtk3 gtk-builder-tool">
373 <primary sortas="b-gtk-builder-tool">gtk-builder-tool</primary>
[35d0635]374 </indexterm>
375 </listitem>
376 </varlistentry>
377
[c870dc3]378 <varlistentry id="gtk-encode-symbolic-svg">
379 <term><command>gtk-encode-symbolic-svg</command></term>
[35d0635]380 <listitem>
381 <para>
[9d31900]382 converts symbolic SVG icons into specially prepared PNG files.
383 <application>GTK+ 3</application> can load and recolor these PNGs,
384 just like original SVGs, but loading them is much faster
[35d0635]385 </para>
[c870dc3]386 <indexterm zone="gtk3 gtk-encode-symbolic-svg">
387 <primary sortas="b-gtk-encode-symbolic-svg">gtk-encode-symbolic-svg</primary>
[35d0635]388 </indexterm>
389 </listitem>
390 </varlistentry>
391
[c870dc3]392 <varlistentry id="gtk-launch">
393 <term><command>gtk-launch</command></term>
[6d5310f]394 <listitem>
395 <para>
[c870dc3]396 launches an application using the given name. The name should match
[8615350]397 the application desktop file name, as residing in
398 <filename class="directory">/usr/share/applications</filename>, with
[4c24eb0a]399 or without the '.desktop' suffix
[6d5310f]400 </para>
[c870dc3]401 <indexterm zone="gtk3 gtk-launch">
402 <primary sortas="b-gtk-launch">gtk-launch</primary>
[6d5310f]403 </indexterm>
404 </listitem>
405 </varlistentry>
406
[c870dc3]407 <varlistentry id="gtk-query-immodules-3.0">
408 <term><command>gtk-query-immodules-3.0</command></term>
[35d0635]409 <listitem>
410 <para>
[c870dc3]411 collects information about loadable input method modules for
412 <application>GTK+ 3</application> and writes it to the default cache
[4c24eb0a]413 file location, or to standard output
[35d0635]414 </para>
[c870dc3]415 <indexterm zone="gtk3 gtk-query-immodules-3.0">
416 <primary sortas="b-gtk-query-immodules-3.0">gtk-query-immodules-3.0</primary>
417 </indexterm>
418 </listitem>
[8615350]419 </varlistentry>
420
421 <varlistentry id="gtk-query-settings">
422 <term><command>gtk-query-settings</command></term>
423 <listitem>
424 <para>
[8558044]425 provides a complete listing of all settings related to
[8615350]426 <application>GTK+ 3</application>
427 </para>
428 <indexterm zone="gtk3 gtk-query-settings">
429 <primary sortas="b-gtk-query-settings">gtk-query-settings</primary>
430 </indexterm>
431 </listitem>
[c870dc3]432 </varlistentry>
433
434 <varlistentry id="gtk-update-icon-cache3">
435 <term><command>gtk-update-icon-cache</command></term>
436 <listitem>
437 <para>
438 is an icon theme caching utility that creates mmap()able cache files
[4c24eb0a]439 for icon themes
[c870dc3]440 </para>
441 <indexterm zone="gtk3 gtk-update-icon-cache3">
442 <primary sortas="b-gtk-update-icon-cache3">gtk-update-icon-cache</primary>
[35d0635]443 </indexterm>
444 </listitem>
445 </varlistentry>
446
[d356833]447 <varlistentry id="libgailutil-3">
448 <term><filename class="libraryfile">libgailutil-3.so</filename></term>
[76a07db]449 <listitem>
[ce9d22a]450 <para>
[3fdc9b0]451 contains functions that implement the accessibility interfaces
[d356833]452 defined by the <application>GNOME</application> Accessibility
[4c24eb0a]453 Toolkit
[ce9d22a]454 </para>
[d356833]455 <indexterm zone="gtk3 libgailutil-3">
456 <primary sortas="c-libgailutil-3">libgailutil-3.so</primary>
[76a07db]457 </indexterm>
458 </listitem>
459 </varlistentry>
460
461 <varlistentry id="libgdk-3">
[d356833]462 <term><filename class="libraryfile">libgdk-3.so</filename></term>
[76a07db]463 <listitem>
[ce9d22a]464 <para>
465 contains functions that act as a wrapper around the low-level
466 drawing and windowing functions provided by the underlying graphics
[4c24eb0a]467 system
[ce9d22a]468 </para>
[76a07db]469 <indexterm zone="gtk3 libgdk-3">
470 <primary sortas="c-libgdk-3">libgdk-3.so</primary>
471 </indexterm>
472 </listitem>
473 </varlistentry>
474
475 <varlistentry id="libgtk-3">
[d356833]476 <term><filename class="libraryfile">libgtk-3.so</filename></term>
[76a07db]477 <listitem>
[ce9d22a]478 <para>
479 contains functions that provide an API to implement graphical user
[4c24eb0a]480 interfaces
[ce9d22a]481 </para>
[76a07db]482 <indexterm zone="gtk3 libgtk-3">
483 <primary sortas="c-libgtk-3">libgtk-3.so</primary>
484 </indexterm>
485 </listitem>
486 </varlistentry>
[a2912ff]487
[76a07db]488 </variablelist>
[b84342d6]489
[76a07db]490 </sect2>
[b84342d6]491
[76a07db]492</sect1>
Note: See TracBrowser for help on using the repository browser.