source: x/lib/gtk+2.xml@ b04a049

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 b04a049 was b04a049, checked in by Andrew Benton <andy@…>, 12 years ago

gtk+-2.24.10

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

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