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

12.2 trunk
Last change on this file since 0b1ad94 was 3c9b5e9, checked in by Douglas R. Reno <renodr@…>, 4 weeks ago

Tag GTK+-3 and printing stack

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