source: x/lib/gtk+2.xml@ 90d2c306

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 90d2c306 was 90d2c306, checked in by Krejzi <krejzi@…>, 11 years ago

Minor.

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

  • Property mode set to 100644
File size: 11.4 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 "a10cc43fad8d64f8893d779b1f8322ff">
10 <!ENTITY gtk2-size "13 MB">
11 <!ENTITY gtk2-buildsize "380 MB">
12 <!ENTITY gtk2-time "2.7 SBU">
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 &lfs73_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 <para condition="html" role="usernotes">
97 User Notes: <ulink url="&blfs-wiki;/gtk+2"/>
98 </para>
99 </sect2>
100
101 <sect2 role="installation">
102 <title>Installation of GTK+ 2</title>
103
104 <para>
105 Install <application>GTK+ 2</application> by running the following
106 commands:
107 </para>
108
109<screen><userinput>sed -i 's#l \(gtk-.*\).sgml#&amp; -o \1#' docs/{faq,tutorial}/Makefile.in &amp;&amp;
110sed -i 's#.*@man_#man_#' docs/reference/gtk/Makefile.in &amp;&amp;
111./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
112make</userinput></screen>
113
114 <para>
115 To test the results, issue: <command>make check</command>. Note that you
116 must run the tests from a session with X Window Display capability (i.e.,
117 not a text-based terminal/console) as the tests attempt to open an X
118 window, and the tests can take an excessively long time. Using an X
119 Window, the tests should take less than 0.3 SBUs
120 </para>
121
122 <para>
123 Now, as the <systemitem class="username">root</systemitem> user:
124 </para>
125
126<screen role="root"><userinput>make install</userinput></screen>
127
128 <note>
129 <para>
130 If you installed the package on to your system using a
131 <quote>DESTDIR</quote> method, an important file was not installed and
132 must be copied and/or generated. Generate it using the following
133 command as the <systemitem class="username">root</systemitem> user:
134 </para>
135
136<screen role="root"><userinput>gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules</userinput></screen>
137 </note>
138 </sect2>
139
140 <sect2 role="commands">
141 <title>Command Explanations</title>
142
143 <para>
144 <command>sed -i 's#l \(gtk-.*\).sgml#&amp; -o \1#'
145 docs/{faq,tutorial}/Makefile.in</command>: If you have
146 <xref linkend="docbook-utils"/> installed (specifically, if configure
147 finds <command>db2html</command>) then it will try to use it to rebuild
148 some of its HTML documentation and fail due to bugs in some of the
149 <filename>Makefile</filename>s. This <command>sed</command> fixes the
150 <filename>Makefile</filename>s.
151 </para>
152
153 <para>
154 <command>sed -i 's#.*@man_#man_#' docs/reference/gtk/Makefile.in</command>:
155 This <command>sed</command> fixes one of the <filename>Makefile</filename>s
156 so it installs the man pages for <command>gtk-builder-convert</command>,
157 <command>gtk-query-immodules-2.0</command>, and
158 <command>gtk-update-icon-cache</command>.
159 </para>
160
161 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
162 href="../../xincludes/gtk-doc-rebuild.xml"/>
163
164 </sect2>
165
166 <sect2 role="configuration">
167 <title>Configuring GTK+ 2</title>
168
169 <sect3 id="gtk2-config">
170 <title>Config Files</title>
171 <para>
172 <filename>~/.gtkrc-2.0</filename> and
173 <filename>/etc/gtk-2.0/gtkrc</filename>
174 </para>
175
176 <indexterm zone="gtk2 gtk2-config">
177 <primary sortas="e-AA.gtkrc-2.0">~/.gtkrc-2.0</primary>
178 </indexterm>
179
180 <indexterm zone="gtk2 gtk2-config">
181 <primary sortas="e-etc-path-gtkrc">/etc/gtk-2.0/gtkrc</primary>
182 </indexterm>
183 </sect3>
184
185 <sect3><title>Configuration Information</title>
186
187 <para>
188 <application>GTK+ 2</application> themes change the way a
189 <application>GTK+ 2</application> application looks. A
190 <application>GTK+ 2</application> icon theme can be used to change the
191 icons that appear on the application's toolbar. If you have installed a
192 <application>GTK+ 2</application> theme (such as <ulink
193 url="http://ftp.gnome.org/pub/gnome/sources/gnome-themes/2.32/">gnome-themes</ulink>
194 (requires <xref linkend="gtk-engines"/>)) or a
195 <application>GTK+ 2</application> icon theme (such as
196 <xref linkend="gnome-icon-theme"/>) you can set your preferences in
197 <filename>~/.gtkrc-2.0</filename>:
198 </para>
199
200<screen><userinput>cat &gt; ~/.gtkrc-2.0 &lt;&lt; "EOF"
201include "/usr/share/themes/<replaceable>Glider</replaceable>/gtk-2.0/gtkrc"
202gtk-icon-theme-name = "<replaceable>hicolor</replaceable>"
203EOF</userinput></screen>
204
205 <para>
206 There are many more themes available at
207 <ulink url="http://gnome-look.org/">Gnome-Look.org</ulink> and other
208 places.
209 </para>
210
211 <para>
212 Once you've settled on themes you like, you can (as the
213 <systemitem class="username">root</systemitem> user) make them the
214 default system wide:
215 </para>
216
217<screen role="root"><userinput>cat &gt; /etc/gtk-2.0/gtkrc &lt;&lt; "EOF"
218include "/usr/share/themes/<replaceable>Clearlooks</replaceable>/gtk-2.0/gtkrc"
219gtk-icon-theme-name = "<replaceable>elementary</replaceable>"
220EOF</userinput></screen>
221
222 <para>
223 <ulink url="http://sourceforge.net/projects/lxde/files/LXAppearance/">
224 LXAppearance</ulink> is a <application>GTK+ 2</application> application
225 that can help you choose the themes you like.
226 </para>
227 </sect3>
228 </sect2>
229
230 <sect2 role="content">
231 <title>Contents</title>
232
233 <segmentedlist>
234 <segtitle>Installed Programs</segtitle>
235 <segtitle>Installed Libraries</segtitle>
236 <segtitle>Installed Directories</segtitle>
237
238 <seglistitem>
239 <seg>
240 gtk-builder-convert, gtk-demo, gtk-query-immodules-2.0 and
241 gtk-update-icon-cache
242 </seg>
243 <seg>
244 libgailutil.so, libgdk-x11-2.0.so and
245 libgtk-x11-2.0.so
246 </seg>
247 <seg>
248 /etc/gtk-2.0,
249 /usr/include/gail-1.0,
250 /usr/include/gtk-2.0,
251 /usr/include/gtk-unix-print-2.0,
252 /usr/lib/gtk-2.0,
253 /usr/share/gtk-doc/html/gail-libgail-util,
254 /usr/share/gtk-doc/html/gtk,
255 /usr/share/themes/Default,
256 /usr/share/themes/Emacs and
257 /usr/share/themes/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
276 sortas="b-gtk-builder-convert">gtk-builder-convert</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
281 <varlistentry id="gtk-demo">
282 <term><command>gtk-demo</command></term>
283 <listitem>
284 <para>
285 demonstrates <application>GTK+ 2</application> functionality and
286 provides code for the examples.
287 </para>
288 <indexterm zone="gtk2 gtk-demo">
289 <primary
290 sortas="b-gtk-demo">gtk-demo</primary>
291 </indexterm>
292 </listitem>
293 </varlistentry>
294
295 <varlistentry id="gtk-query-immodules-2.0">
296 <term><command>gtk-query-immodules-2.0</command></term>
297 <listitem>
298 <para>
299 collects information about loadable input method modules for
300 <application>GTK+ 2</application> and writes it to standard output.
301 </para>
302 <indexterm zone="gtk2 gtk-query-immodules-2.0">
303 <primary
304 sortas="b-gtk-query-immodules-2.0">gtk-query-immodules-2.0</primary>
305 </indexterm>
306 </listitem>
307 </varlistentry>
308
309 <varlistentry id="gtk-update-icon-cache">
310 <term><command>gtk-update-icon-cache</command></term>
311 <listitem>
312 <para>
313 creates mmap()able cache files for icon themes.
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.