source: x/lib/gtk+2.xml@ 66e5f483

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 66e5f483 was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 19 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

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