source: x/lib/gtk+3.xml@ 78ad6ce6

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 78ad6ce6 was 4f93382c, checked in by Xi Ruoyao <xry111@…>, 17 months ago

gtk+3: Remove note about missing schema

Now GTK+-3 test suite uses a dedicated schema directory (in the build
directory) so it's not a problem anymore.

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