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

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 2ffe965 was 2ffe965, checked in by Krejzi <krejzi@…>, 12 years ago

Add some notes about using DESTDIR installation to gtk3, gdk-pixbuf and pango pages.

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

  • 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
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 then important file was not installed and
149 must be copied and/or generated. Generate it using the following
150 command as the <systemitem class="username">root</systemitem> user:
151 </para>
152
153<screen role="root"><userinput>gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules</userinput></screen>
154 </note>
155 </sect2>
156
157 <sect2 role="commands">
158 <title>Command Explanations</title>
159
160 <para>
161 <command>sed -i 's#l \(gtk-.*\).sgml#&amp; -o \1#'
162 docs/{faq,tutorial}/Makefile.in</command>: If you have
163 <xref linkend="docbook-utils"/> installed (specifically, if configure
164 finds db2html) then it will try to use it to rebuild some of it's html
165 documentation and fail due to bugs in some of the Makefiles. This sed
166 fixes the Makefiles.
167 </para>
168
169 <para>
170 <command>sed -i 's#.*@man_#man_#'
171 docs/reference/gtk/Makefile.in</command>: this sed fixes one of the
172 <filename>Makefile</filename>s so it installs the man pages for
173 gtk-builder-convert, gtk-query-immodules-2.0 and gtk-update-icon-cache.
174 </para>
175
176 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
177 href="../../xincludes/gtk-doc-rebuild.xml"/>
178 </sect2>
179
180 <sect2 role="configuration">
181 <title>Configuring Gtk+ 2</title>
182
183 <sect3 id="gtk2-config">
184 <title>Config Files</title>
185 <para>
186 <filename>~/.gtkrc-2.0</filename> and
187 <filename>/etc/gtk-2.0/gtkrc</filename>
188 </para>
189
190 <indexterm zone="gtk2 gtk2-config">
191 <primary sortas="e-AA.gtkrc-2.0">~/.gtkrc-2.0</primary>
192 </indexterm>
193
194 <indexterm zone="gtk2 gtk2-config">
195 <primary sortas="e-etc-path-gtkrc">/etc/gtk-2.0/gtkrc</primary>
196 </indexterm>
197 </sect3>
198
199 <sect3><title>Configuration Information</title>
200
201 <para>
202 <application>Gtk+ 2</application> themes change the way a
203 <application>Gtk+ 2</application> application looks. A
204 <application>Gtk+ 2</application> icon theme can be used to change the
205 icons that appear on the application's toolbar. If you have installed a
206 <application>Gtk+ 2</application> theme (such as <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
209 <application>Gtk+ 2</application> icon theme (such as
210 <xref linkend="gnome-icon-theme"/>) you can set your preferences in
211 <filename>~/.gtkrc-2.0</filename>:
212 </para>
213
214<screen><userinput>cat &gt; ~/.gtkrc-2.0 &lt;&lt; "EOF"
215include "/usr/share/themes/<replaceable>Glider</replaceable>/gtk-2.0/gtkrc"
216gtk-icon-theme-name = "<replaceable>hicolor</replaceable>"
217EOF</userinput></screen>
218
219 <para>
220 There are many more themes available at
221 <ulink url="http://gnome-look.org/">Gnome-Look.org</ulink> and other
222 places.
223 </para>
224
225 <para>
226 Once you've settled on themes you like, you can (as the
227 <systemitem class="username">root</systemitem> user) make them the
228 default system wide:
229 </para>
230
231<screen role="root"><userinput>cat &gt; /etc/gtk-2.0/gtkrc &lt;&lt; "EOF"
232include "/usr/share/themes/<replaceable>Clearlooks</replaceable>/gtk-2.0/gtkrc"
233gtk-icon-theme-name = "<replaceable>elementary</replaceable>"
234EOF</userinput></screen>
235
236 <para>
237 <ulink url="http://sourceforge.net/projects/lxde/files/LXAppearance/">
238 LXAppearance</ulink> is a <application>Gtk+ 2</application> application
239 that can help you choose the themes you like.
240 </para>
241 </sect3>
242 </sect2>
243
244 <sect2 role="content">
245 <title>Contents</title>
246
247 <segmentedlist>
248 <segtitle>Installed Programs</segtitle>
249 <segtitle>Installed Libraries</segtitle>
250 <segtitle>Installed Directories</segtitle>
251
252 <seglistitem>
253 <seg>
254 gtk-builder-convert, gtk-demo, gtk-query-immodules-2.0 and
255 gtk-update-icon-cache
256 </seg>
257 <seg>
258 libpixmap.so, im-am-et.so, im-cedilla.so, im-cyrillic-translit.so,
259 im-inuktitut.so, im-ipa.so, im-multipress.so, im-thai.so, im-ti-er.so,
260 im-ti-et.so, im-viqr.so, im-xim.so, libprintbackend-cups.so
261 libprintbackend-file.so, libprintbackend-lpr.so,
262 libferret.so, libgail.so, libgailutil.so, libgdk-x11-2.0.so and
263 libgtk-x11-2.0.so
264 </seg>
265 <seg>
266 /etc/gtk-2.0, /usr/include/gail-1.0, /usr/include/gtk-2.0,
267 /usr/include/gtk-unix-print-2.0, /usr/lib/gtk-2.0,
268 /usr/share/doc/gtk+-&gtk2-version;,
269 /usr/share/gtk-doc/html/gail-libgail-util,
270 /usr/share/gtk-doc/html/gdk-pixbuf, /usr/share/gtk-doc/html/gtk,
271 /usr/share/themes/Default, /usr/share/themes/Emacs and
272 /usr/share/themes/Raleigh
273 </seg>
274 </seglistitem>
275 </segmentedlist>
276
277 <variablelist>
278 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
279 <?dbfo list-presentation="list"?>
280 <?dbhtml list-presentation="table"?>
281
282 <varlistentry id="gtk-builder-convert">
283 <term><command>gtk-builder-convert</command></term>
284 <listitem>
285 <para>
286 converts glade files into XML files which can be loaded with
287 GtkBuilder.
288 </para>
289 <indexterm zone="gtk2 gtk-builder-convert">
290 <primary
291 sortas="b-gtk-builder-convert">gtk-builder-convert</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
296 <varlistentry id="gtk-demo">
297 <term><command>gtk-demo</command></term>
298 <listitem>
299 <para>
300 demonstrates <application>Gtk+ 2</application> functionality and
301 provides code for the examples.
302 </para>
303 <indexterm zone="gtk2 gtk-demo">
304 <primary
305 sortas="b-gtk-demo">gtk-demo</primary>
306 </indexterm>
307 </listitem>
308 </varlistentry>
309
310 <varlistentry id="gtk-query-immodules-2.0">
311 <term><command>gtk-query-immodules-2.0</command></term>
312 <listitem>
313 <para>
314 collects information about loadable input method modules for
315 <application>Gtk+ 2</application> and writes it to standard output.
316 </para>
317 <indexterm zone="gtk2 gtk-query-immodules-2.0">
318 <primary
319 sortas="b-gtk-query-immodules-2.0">gtk-query-immodules-2.0</primary>
320 </indexterm>
321 </listitem>
322 </varlistentry>
323
324 <varlistentry id="gtk-update-icon-cache">
325 <term><command>gtk-update-icon-cache</command></term>
326 <listitem>
327 <para>
328 creates mmap()able cache files for icon themes.
329 </para>
330 <indexterm zone="gtk2 gtk-update-icon-cache">
331 <primary sortas="b-gtk-update-icon-cache">gtk-update-icon-cache</primary>
332 </indexterm>
333 </listitem>
334 </varlistentry>
335
336 <varlistentry id="gtk2libs">
337 <term>Gtk+ 2 Libraries</term>
338 <listitem>
339 <para>
340 provide an API to implement graphical user interfaces.
341 </para>
342 <indexterm zone="gtk2 gtk2libs">
343 <primary sortas="c-gtk2libs">Gtk+ 2 Libraries</primary>
344 </indexterm>
345 </listitem>
346 </varlistentry>
347 </variablelist>
348 </sect2>
349</sect1>
Note: See TracBrowser for help on using the repository browser.