source: x/lib/gtk+2.xml

trunk
Last change on this file was c0bc0a9, checked in by Xi Ruoyao <xry111@…>, 7 weeks ago

Update to glib-2.80.0 and gobject-introspection-1.80.0

Merge gobject-introspection into glib page to better handle a circular
dependency between these two packages.

  • Property mode set to 100644
File size: 11.5 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 gtk2-download-http "&gnome-download-http;/gtk+/2.24/gtk+-&gtk2-version;.tar.xz">
8 <!ENTITY gtk2-download-ftp " ">
9 <!ENTITY gtk2-md5sum "0118e98dbe0e4dab90ce475f9f0e6c0c">
10 <!ENTITY gtk2-size "12 MB">
11 <!ENTITY gtk2-buildsize "285 MB">
12 <!ENTITY gtk2-time "0.9 SBU (using parallelism=4; add 0.1 SBU for tests)">
13]>
14
15<sect1 id="gtk2" xreflabel="GTK+-&gtk2-version;">
16 <?dbhtml filename="gtk2.html" ?>
17
18
19 <title>GTK+-&gtk2-version;</title>
20
21 <indexterm zone="gtk2">
22 <primary sortas="a-GTK+2">GTK+2</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to GTK+ 2</title>
27
28 <para>
29 The <application>GTK+ 2</application> package contains
30 libraries used for creating graphical user interfaces
31 for applications.
32 </para>
33
34 &lfs121_checked;
35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>
40 Download (HTTP): <ulink url="&gtk2-download-http;"/>
41 </para>
42 </listitem>
43 <listitem>
44 <para>
45 Download (FTP): <ulink url="&gtk2-download-ftp;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download MD5 sum: &gtk2-md5sum;
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download size: &gtk2-size;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Estimated disk space required: &gtk2-buildsize;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated build time: &gtk2-time;
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">GTK+ 2 Dependencies</bridgehead>
71
72 <bridgehead renderas="sect4">Required</bridgehead>
73 <para role="required">
74 <xref linkend="at-spi2-core"/>,
75 <xref linkend="gdk-pixbuf"/> and
76 <xref linkend="pango"/>
77 </para>
78
79 <bridgehead renderas="sect4">Recommended</bridgehead>
80 <para role="recommended">
81 <xref linkend="hicolor-icon-theme"/>
82 </para>
83
84 <bridgehead renderas="sect4">Optional</bridgehead>
85 <para role="optional">
86 <xref linkend="cups"/>,
87 <xref linkend="docbook-utils"/>,
88 <xref role="runtime" linkend="gnome-themes-extra"/> (runtime, for
89 Adwaita and HighContrast themes),
90 &gobject-introspection; and
91 <xref linkend="gtk-doc"/>
92 </para>
93 </sect2>
94
95 <sect2 role="installation">
96 <title>Installation of GTK+ 2</title>
97
98 <para>
99 Install <application>GTK+ 2</application> by running the following
100 commands:
101 </para>
102
103<screen><userinput>sed -e 's#l \(gtk-.*\).sgml#&amp; -o \1#' \
104 -i docs/{faq,tutorial}/Makefile.in &amp;&amp;
105
106./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
107
108make</userinput></screen>
109
110 <para>
111 To test the results, issue: <command>make -k check</command>. Note that you
112 must run the tests from a session with X Window Display capability (i.e.,
113 not a text-based terminal/console) as the tests attempt to open an X
114 window, and the tests can take an excessively long time. Using an X
115 Window, the tests should take less than 0.1 SBU. One test,
116 aliasfilescheck.sh, is known to fail.
117 </para>
118
119 <para>
120 Now, as the <systemitem class="username">root</systemitem> user:
121 </para>
122
123<screen role="root"><userinput>make install</userinput></screen>
124
125 <note>
126 <para>
127 If you installed the package on to your system using a
128 <quote>DESTDIR</quote> method, an important file was not installed and
129 must be copied and/or generated. Generate it using the following
130 command as the <systemitem class="username">root</systemitem> user:
131 </para>
132
133<screen role="root"><userinput>gtk-query-immodules-2.0 --update-cache</userinput></screen>
134 </note>
135
136 </sect2>
137
138 <sect2 role="commands">
139 <title>Command Explanations</title>
140
141 <para>
142 <command>sed -i 's#l \(gtk-.*\).sgml#&amp; -o \1#'
143 docs/{faq,tutorial}/Makefile.in</command>: If you have
144 <xref linkend="docbook-utils"/> installed (specifically, if configure
145 finds <command>db2html</command>) then it will try to use it to rebuild
146 some of its HTML documentation and fail due to bugs in some of the
147 <filename>Makefile</filename>s. This <command>sed</command> fixes the
148 <filename>Makefile</filename>s.
149 </para>
150 <!-- This still seems to have problems with docbook-utils installed.
151 However, since it's already been tagged, I'll leave it alone. -->
152<!--
153 <para>
154 <command>sed -i -e 's#pltcheck.sh#$(NULL)#g' gtk/Makefile.in</command>:
155 This <command>sed</command> disables one test known to fail.
156 Not necessary, if not running the tests.
157 </para>-->
158
159 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
160 href="../../xincludes/gtk-doc-rebuild.xml"/>
161
162 </sect2>
163
164 <sect2 role="configuration">
165 <title>Configuring GTK+ 2</title>
166
167 <sect3 id="gtk2-config">
168 <title>Config Files</title>
169 <para>
170 <filename>~/.gtkrc-2.0</filename>,
171 <filename>/etc/gtk-2.0/gtkrc</filename>, and
172 <filename>/usr/share/gtk-2.0/gtkrc</filename>
173 </para>
174
175 <indexterm zone="gtk2 gtk2-config">
176 <primary sortas="e-AA.gtkrc-2.0">~/.gtkrc-2.0</primary>
177 </indexterm>
178
179 <indexterm zone="gtk2 gtk2-config">
180 <primary sortas="e-etc-gtk-2.0-gtkrc">/etc/gtk-2.0/gtkrc</primary>
181 </indexterm>
182
183 <indexterm zone="gtk2 gtk2-config">
184 <primary sortas="e-usr-share-gtk-2.0-gtkrc">/usr/share/gtk-2.0/gtkrc</primary>
185 </indexterm>
186 </sect3>
187
188 <sect3><title>Configuration Information</title>
189
190 <para>
191 <application>GTK+ 2</application> themes change the way a
192 <application>GTK+ 2</application> application looks. A
193 <application>GTK+ 2</application> icon theme can be used to change the
194 icons that appear on the application's toolbar. If you have installed a
195 <application>GTK+ 2</application> theme (such as
196 <xref linkend="gnome-themes-extra"/> or
197 <xref linkend="gtk-engines"/>), or a
198 <application>GTK+</application> icon theme (such as <xref
199 linkend="adwaita-icon-theme"/>) you can set your preferences in
200 <filename>~/.gtkrc-2.0</filename>:
201 </para>
202
203<screen><userinput>cat &gt; ~/.gtkrc-2.0 &lt;&lt; "EOF"
204<literal>include "/usr/share/themes/<replaceable>Glider</replaceable>/gtk-2.0/gtkrc"
205gtk-icon-theme-name = "<replaceable>hicolor</replaceable>"</literal>
206EOF</userinput></screen>
207
208 <para>
209 There are many more themes available at
210 <ulink url="https://gnome-look.org/">Gnome-Look.org</ulink> and other
211 places.
212 </para>
213
214 <para>
215 Once you've settled on themes you like, you can (as the
216 <systemitem class="username">root</systemitem> user) make them the
217 default system wide:
218 </para>
219
220<screen role="root"><userinput>cat &gt; /etc/gtk-2.0/gtkrc &lt;&lt; "EOF"
221<literal>include "/usr/share/themes/<replaceable>Clearlooks</replaceable>/gtk-2.0/gtkrc"
222gtk-icon-theme-name = "<replaceable>elementary</replaceable>"</literal>
223EOF</userinput></screen>
224
225<!--
226 <para>
227 <xref linkend="lxappearance"/> is a <application>GTK+ 2</application>
228 application that can help you choose the themes you like.
229 </para>
230-->
231 </sect3>
232 </sect2>
233
234 <sect2 role="content">
235 <title>Contents</title>
236
237 <segmentedlist>
238 <segtitle>Installed Programs</segtitle>
239 <segtitle>Installed Libraries</segtitle>
240 <segtitle>Installed Directories</segtitle>
241
242 <seglistitem>
243 <seg>
244 gtk-builder-convert, gtk-demo, gtk-query-immodules-2.0, and
245 gtk-update-icon-cache
246 </seg>
247 <seg>
248 libgailutil.so, libgdk-x11-2.0.so, and libgtk-x11-2.0.so
249 </seg>
250 <seg>
251 /etc/gtk-2.0,
252 /usr/include/{gail-1.0,gtk-2.0,gtk-unix-print-2.0},
253 /usr/lib/gtk-2.0,
254 /usr/share/doc/gtk+-&gtk2-version;,
255 /usr/share/gtk-2.0,
256 /usr/share/gtk-doc/html/{gail-libgail-util,gdk2,gtk2}, and
257 /usr/share/themes/{Default,Emacs,Raleigh}
258 </seg>
259 </seglistitem>
260 </segmentedlist>
261
262 <variablelist>
263 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
264 <?dbfo list-presentation="list"?>
265 <?dbhtml list-presentation="table"?>
266
267 <varlistentry id="gtk-builder-convert">
268 <term><command>gtk-builder-convert</command></term>
269 <listitem>
270 <para>
271 converts glade files into XML files which can be loaded with
272 GtkBuilder
273 </para>
274 <indexterm zone="gtk2 gtk-builder-convert">
275 <primary sortas="b-gtk-builder-convert">gtk-builder-convert</primary>
276 </indexterm>
277 </listitem>
278 </varlistentry>
279
280 <varlistentry id="gtk-demo">
281 <term><command>gtk-demo</command></term>
282 <listitem>
283 <para>
284 demonstrates <application>GTK+ 2</application> functionality and
285 provides code for the examples
286 </para>
287 <indexterm zone="gtk2 gtk-demo">
288 <primary sortas="b-gtk-demo">gtk-demo</primary>
289 </indexterm>
290 </listitem>
291 </varlistentry>
292
293 <varlistentry id="gtk-query-immodules-2.0">
294 <term><command>gtk-query-immodules-2.0</command></term>
295 <listitem>
296 <para>
297 collects information about loadable input method modules for
298 <application>GTK+ 2</application> and writes it to standard output
299 </para>
300 <indexterm zone="gtk2 gtk-query-immodules-2.0">
301 <primary sortas="b-gtk-query-immodules-2.0">gtk-query-immodules-2.0</primary>
302 </indexterm>
303 </listitem>
304 </varlistentry>
305
306 <varlistentry id="gtk-update-icon-cache">
307 <term><command>gtk-update-icon-cache</command></term>
308 <listitem>
309 <para>
310 creates mmap()able cache files for icon themes. Starting with
311 <application>gtk+-2.24.24</application>, add the flag
312 <quote>--include-image-data</quote> to this command, if you wish
313 previous behavior, with image data in the cache
314 </para>
315 <indexterm zone="gtk2 gtk-update-icon-cache">
316 <primary sortas="b-gtk-update-icon-cache">gtk-update-icon-cache</primary>
317 </indexterm>
318 </listitem>
319 </varlistentry>
320
321 <varlistentry id="libgdk-x11-2">
322 <term><filename class="libraryfile">libgdk-x11-2.0.so</filename></term>
323 <listitem>
324 <para>
325 contains functions that act as a wrapper around the low-level
326 drawing and windowing functions provided by the underlying graphics
327 system
328 </para>
329 <indexterm zone="gtk2 libgdk-x11-2">
330 <primary sortas="c-libgdk-x11-2">libgdk-x11-2.0.so</primary>
331 </indexterm>
332 </listitem>
333 </varlistentry>
334
335 <varlistentry id="libgtk-x11-2">
336 <term><filename class="libraryfile">libgtk-x11-2.0.so</filename></term>
337 <listitem>
338 <para>
339 contains functions that provide an API to implement graphical user
340 interfaces
341 </para>
342 <indexterm zone="gtk2 libgtk-x11-2">
343 <primary sortas="c-libgtk-x11-2">libgtk-x11-2.0.so</primary>
344 </indexterm>
345 </listitem>
346 </varlistentry>
347
348 </variablelist>
349
350 </sect2>
351
352</sect1>
Note: See TracBrowser for help on using the repository browser.