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

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

Update to gtk+3-3.24.38.

  • Property mode set to 100644
File size: 16.5 KB
Line 
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
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">
9 <!ENTITY gtk3-md5sum "7ed2f5914683ebd515da22f5784389f4">
10 <!ENTITY gtk3-size "12 MB">
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)">
13]>
14
15<sect1 id="gtk3" xreflabel="GTK+-&gtk3-version;">
16 <?dbhtml filename="gtk3.html"?>
17
18
19 <title>GTK+-&gtk3-version;</title>
20
21 <indexterm zone="gtk3">
22 <primary sortas="a-GTK+3">GTK+3</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to GTK+ 3</title>
27
28 <para>
29 The <application>GTK+ 3</application> package contains
30 libraries used for creating graphical user interfaces for
31 applications.
32 </para>
33
34 &lfs113_checked;
35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>
40 Download (HTTP): <ulink url="&gtk3-download-http;"/>
41 </para>
42 </listitem>
43 <listitem>
44 <para>
45 Download (FTP): <ulink url="&gtk3-download-ftp;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download MD5 sum: &gtk3-md5sum;
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download size: &gtk3-size;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Estimated disk space required: &gtk3-buildsize;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated build time: &gtk3-time;
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">GTK+ 3 Dependencies</bridgehead>
71
72 <bridgehead renderas="sect4">Required</bridgehead>
73 <para role="required">
74 <xref linkend="at-spi2-core"/>,
75 <xref linkend="gdk-pixbuf"/>,
76 <xref linkend="libepoxy"/>, and
77 <xref linkend="pango"/>
78 </para>
79
80 <bridgehead renderas="sect4">Recommended</bridgehead>
81 <para role="recommended">
82 <xref linkend="adwaita-icon-theme"/> (default for some gtk+3 settings
83 keys, also needed for tests),
84 <xref linkend="docbook-xsl"/> (for generating manual pages),
85 <xref linkend="hicolor-icon-theme"/> (needed for tests),
86 <xref linkend="iso-codes"/>,
87 <xref linkend="libxkbcommon"/>,
88 <xref linkend="libxslt"/> (for generating manual pages),
89 <xref linkend="sassc"/>,
90 <xref linkend="wayland"/>, and
91 <xref linkend="wayland-protocols"/>
92 </para>
93
94 <bridgehead renderas="sect4">Recommended (Required if building GNOME)</bridgehead>
95 <para role="recommended">
96 <xref linkend="gobject-introspection"/>
97 </para>
98
99 <bridgehead renderas="sect4">Optional</bridgehead>
100 <para role="optional">
101 <xref linkend="colord"/>,
102 <xref linkend="cups"/>,
103 <xref linkend="gtk-doc"/>,
104 <xref linkend="pyatspi2"/> (for tests),
105 <xref linkend='tracker3'/>, and
106 <ulink url="https://icl.utk.edu/papi/">PAPI</ulink>
107 </para>
108
109 <para condition="html" role="usernotes">
110 User Notes: <ulink url="&blfs-wiki;/gtk3"/>
111 </para>
112 </sect2>
113
114 <sect2 role="installation">
115 <title>Installation of GTK+ 3</title>
116
117 <para>
118 Install <application>GTK+ 3</application> by running the following
119 commands:
120 </para>
121
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>
130
131 <para>
132 To test the results you need a graphical session, then issue
133 <command>ninja test</command>.
134 </para>
135
136 <para>
137 Now, as the <systemitem class="username">root</systemitem> user:
138 </para>
139
140<screen role="root"><userinput>ninja install</userinput></screen>
141
142 <note>
143 <para>
144 If you installed the package on to your system using a
145 <quote>DESTDIR</quote> method, an important file was not installed and
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>
152
153 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
154 href="../../xincludes/gsettings-destdir.xml"/>
155 </sect2>
156
157 <sect2 role="commands">
158 <title>Command Explanations</title>
159
160 <para>
161 <parameter>-Dbroadway_backend=true</parameter>: This switch enables the
162 HTML5 GTK backend.
163 </para>
164
165 <para>
166 <parameter>-Dman=true</parameter>: This switch allows generating
167 manual pages.
168 </para>
169
170 <para>
171 <option>-Dgtk_doc=true</option>: This switch enables building
172 documentation. It requires <xref linkend="gtk-doc"/>.
173 </para>
174
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
181 </sect2>
182
183 <sect2 role="configuration">
184 <title>Configuring GTK+ 3</title>
185
186 <sect3 id="gtk3-config">
187 <title>Config Files</title>
188 <para>
189 <filename>~/.config/gtk-3.0/settings.ini</filename> and
190 <filename>/etc/gtk-3.0/settings.ini</filename>
191 </para>
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
204 <para>
205 <application>GTK+ 3</application> themes change the way a
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.
208 If you have installed a <application>GTK+ 3</application> theme (e.g.
209 the Adwaita theme built in <application>GTK+ 3</application>),
210 an icon theme (such as <xref
211 linkend="oxygen-icons5"/>) and/or a font (<xref linkend="dejavu-fonts"/>),
212 you can set your preferences in <filename>~/.config/gtk-3.0/settings.ini</filename>,
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:
217 </para>
218
219<screen><userinput>mkdir -vp ~/.config/gtk-3.0
220cat &gt; ~/.config/gtk-3.0/settings.ini &lt;&lt; "EOF"
221<literal>[Settings]
222gtk-theme-name = <replaceable>Adwaita</replaceable>
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>
232EOF</userinput></screen>
233
234 <para>
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
239 <ulink url="https://www.gnome-look.org/browse/"/> and other places.
240 </para>
241
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/ -->
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>
271 <seg>
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,
280 gtk-query-immodules-3.0,
281 gtk-query-settings, and
282 gtk-update-icon-cache
283 </seg>
284 <seg>
285 libgailutil-3.so, libgdk-3.so, and libgtk-3.so
286 </seg>
287 <seg>
288 /etc/gtk-3.0,
289 /usr/include/{gail,gtk}-3.0,
290 /usr/{lib,share}/gtk-3.0, and
291 /usr/share/themes/{Default,Emacs}/gtk-3.0
292 </seg>
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
301 <varlistentry id="broadwayd">
302 <term><command>broadwayd</command></term>
303 <listitem>
304 <para>
305 provides support for displaying
306 <application>GTK+ 3</application> applications in a web browser,
307 using HTML5 and web sockets
308 </para>
309 <indexterm zone="gtk3 broadwayd">
310 <primary sortas="b-broadwayd">broadwayd</primary>
311 </indexterm>
312 </listitem>
313 </varlistentry>
314
315 <varlistentry id="gtk3-demo">
316 <term><command>gtk3-demo</command></term>
317 <listitem>
318 <para>
319 is a simple program that demonstrates some of the tasks that can be
320 done with <application>GTK+ 3</application>
321 </para>
322 <indexterm zone="gtk3 gtk3-demo">
323 <primary sortas="b-gtk3-demo">gtk3-demo</primary>
324 </indexterm>
325 </listitem>
326 </varlistentry>
327
328 <varlistentry id="gtk3-demo-application">
329 <term><command>gtk3-demo-application</command></term>
330 <listitem>
331 <para>
332 is a simple <application>GTK+ 3</application> application
333 </para>
334 <indexterm zone="gtk3 gtk3-demo-application">
335 <primary sortas="b-gtk3-demo-application">gtk3-demo-application</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
340 <varlistentry id="gtk3-icon-browser">
341 <term><command>gtk3-icon-browser</command></term>
342 <listitem>
343 <para>
344 is a utility to explore the icons in the current icon theme. It
345 shows icons in various sizes, their symbolic variants where
346 available, as well as a description of the icon and its context
347 </para>
348 <indexterm zone="gtk3 gtk3-icon-browser">
349 <primary sortas="b-gtk3-icon-browser">gtk3-icon-browser</primary>
350 </indexterm>
351 </listitem>
352 </varlistentry>
353
354 <varlistentry id="gtk3-widget-factory">
355 <term><command>gtk3-widget-factory</command></term>
356 <listitem>
357 <para>
358 is a program to view <application>GTK+ 3</application> themes and widgets
359 </para>
360 <indexterm zone="gtk3 gtk3-widget-factory">
361 <primary sortas="b-gtk3-widget-factory">gtk3-widget-factory</primary>
362 </indexterm>
363 </listitem>
364 </varlistentry>
365
366 <varlistentry id="gtk-builder-tool">
367 <term><command>gtk-builder-tool</command></term>
368 <listitem>
369 <para>
370 performs various operations on GtkBuilder .ui files
371 </para>
372 <indexterm zone="gtk3 gtk-builder-tool">
373 <primary sortas="b-gtk-builder-tool">gtk-builder-tool</primary>
374 </indexterm>
375 </listitem>
376 </varlistentry>
377
378 <varlistentry id="gtk-encode-symbolic-svg">
379 <term><command>gtk-encode-symbolic-svg</command></term>
380 <listitem>
381 <para>
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
385 </para>
386 <indexterm zone="gtk3 gtk-encode-symbolic-svg">
387 <primary sortas="b-gtk-encode-symbolic-svg">gtk-encode-symbolic-svg</primary>
388 </indexterm>
389 </listitem>
390 </varlistentry>
391
392 <varlistentry id="gtk-launch">
393 <term><command>gtk-launch</command></term>
394 <listitem>
395 <para>
396 launches an application using the given name. The name should match
397 the application desktop file name, as residing in
398 <filename class="directory">/usr/share/applications</filename>, with
399 or without the '.desktop' suffix
400 </para>
401 <indexterm zone="gtk3 gtk-launch">
402 <primary sortas="b-gtk-launch">gtk-launch</primary>
403 </indexterm>
404 </listitem>
405 </varlistentry>
406
407 <varlistentry id="gtk-query-immodules-3.0">
408 <term><command>gtk-query-immodules-3.0</command></term>
409 <listitem>
410 <para>
411 collects information about loadable input method modules for
412 <application>GTK+ 3</application> and writes it to the default cache
413 file location, or to standard output
414 </para>
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>
419 </varlistentry>
420
421 <varlistentry id="gtk-query-settings">
422 <term><command>gtk-query-settings</command></term>
423 <listitem>
424 <para>
425 provides a complete listing of all settings related to
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>
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
439 for icon themes
440 </para>
441 <indexterm zone="gtk3 gtk-update-icon-cache3">
442 <primary sortas="b-gtk-update-icon-cache3">gtk-update-icon-cache</primary>
443 </indexterm>
444 </listitem>
445 </varlistentry>
446
447 <varlistentry id="libgailutil-3">
448 <term><filename class="libraryfile">libgailutil-3.so</filename></term>
449 <listitem>
450 <para>
451 contains functions that implement the accessibility interfaces
452 defined by the <application>GNOME</application> Accessibility
453 Toolkit
454 </para>
455 <indexterm zone="gtk3 libgailutil-3">
456 <primary sortas="c-libgailutil-3">libgailutil-3.so</primary>
457 </indexterm>
458 </listitem>
459 </varlistentry>
460
461 <varlistentry id="libgdk-3">
462 <term><filename class="libraryfile">libgdk-3.so</filename></term>
463 <listitem>
464 <para>
465 contains functions that act as a wrapper around the low-level
466 drawing and windowing functions provided by the underlying graphics
467 system
468 </para>
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">
476 <term><filename class="libraryfile">libgtk-3.so</filename></term>
477 <listitem>
478 <para>
479 contains functions that provide an API to implement graphical user
480 interfaces
481 </para>
482 <indexterm zone="gtk3 libgtk-3">
483 <primary sortas="c-libgtk-3">libgtk-3.so</primary>
484 </indexterm>
485 </listitem>
486 </varlistentry>
487
488 </variablelist>
489
490 </sect2>
491
492</sect1>
Note: See TracBrowser for help on using the repository browser.