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

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

gtk2 fixes. Thanks Wayne for testing

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

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