source: x/lib/gtk+2.xml@ 5ae3416

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 5ae3416 was 5ae3416, checked in by Ken Moffat <ken@…>, 7 years ago

Tags.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@19047 af4574ff-66df-0310-9fd7-8a98e5e911e0

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