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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since bcef05b was bcef05b, checked in by Andrew Benton <andy@…>, 13 years ago

updated to gtk+-2.24.8

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@8988 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 "53e6f3a93bd22934878fc4a4a34c68aa">
10 <!ENTITY gtk2-size "18.2 MB">
11 <!ENTITY gtk2-buildsize "331 MB">
12 <!ENTITY gtk2-time "7.0 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 docs/tutorial/Makefile.in &amp;&amp;
98sed -i '/db2html/i@HAVE_DOCBOOK_TRUE@\t mkdir gtk-faq; \\' \
99 docs/faq/Makefile.in &amp;&amp;
100./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
101make</userinput></screen>
102
103 <para>To test the results, issue: <command>make check</command>. Note that
104 you must run the tests from a session with X Window Display capability
105 (i.e., not a text-based terminal/console) as the tests attempt to open an X
106 window, and the tests can take an excessively long time. Using an X Window,
107 the tests should take less than .3 SBUs</para>
108
109 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
110
111<screen role="root"><userinput>make install &amp;&amp;
112sed -i 's/#man_MANS/man_MANS/' docs/reference/gtk/Makefile &amp;&amp;
113make -C docs/reference/gtk install-man &amp;&amp;
114install -v -m755 -d /usr/share/doc/gtk+-&gtk2-version;/{faq,tutorial} &amp;&amp;
115cp -v docs/faq/*.html /usr/share/doc/gtk+-&gtk2-version;/faq &amp;&amp;
116cp -v docs/tutorial/*.html /usr/share/doc/gtk+-&gtk2-version;/tutorial &amp;&amp;
117cp -v -R docs/tutorial/images /usr/share/doc/gtk+-&gtk2-version;/tutorial &amp;&amp;
118install -v -m644 docs/*.txt /usr/share/doc/gtk+-&gtk2-version;</userinput></screen>
119
120 <warning>
121
122 <para>If you installed the package on to your system using a
123 <quote>DESTDIR</quote> method two important files were not installed and
124 must be copied and/or generated. Generate them using the following
125 commands as the <systemitem class="username">root</systemitem>
126 user:</para>
127
128<screen role="root"><userinput>gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders &amp;&amp;
129gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules</userinput></screen>
130
131 </warning>
132
133 </sect2>
134
135 <sect2 role="commands">
136 <title>Command Explanations</title>
137
138 <para><command>sed -i '/db2html/i@HAVE_DOCBOOK...</command>: If you have
139 <xref linkend="docbook-utils"/> installed (specifically, if configure finds
140 db2html) then it will try to use it to rebuild some of it's html
141 documentation and fail due to bugs in some of the Makefiles. These seds fix
142 the Makefiles.</para>
143
144 <para><parameter>--sysconfdir=/etc</parameter>: This switch installs the
145 configuration files into <filename class="directory">/etc</filename>
146 instead of <filename class="directory">/usr/etc</filename>.</para>
147
148 <para><command>sed -i 's/#man_MANS...</command> and
149 <command>make -C docs...install-man</command> these commands install the
150 man pages for gtk-builder-convert, gtk-query-immodules-2.0 and
151 gtk-update-icon-cache.</para>
152
153 <para><option>--enable-gtk-doc</option>: This switch will rebuild
154 the API documentation during the <command>make</command> command. Ensure
155 you really want to rebuild this documentation (and end up with what is
156 already shipped in the source tree) as it takes a very long time.</para>
157
158 </sect2>
159
160 <sect2 role="configuration">
161 <title>Configuring GTK+-2</title>
162
163 <sect3 id="gtk2-config">
164 <title>Config Files</title>
165 <para><filename>~/.gtkrc-2.0</filename> and
166 <filename>/etc/gtk-2.0/gtkrc</filename></para>
167
168 <indexterm zone="gtk2 gtk2-config">
169 <primary sortas="e-AA.gtkrc-2.0">~/.gtkrc-2.0</primary>
170 </indexterm>
171
172 <indexterm zone="gtk2 gtk2-config">
173 <primary sortas="e-etc-path-gtkrc">/etc/gtk-2.0/gtkrc</primary>
174 </indexterm>
175 </sect3>
176
177 <sect3><title>Configuration Information</title>
178
179 <para>Gtk themes change the way a gtk application looks. A Gtk icon theme
180 can be used to change the icons that appear on the application's
181 toolbar. If you have installed a Gtk theme (eg
182 <xref linkend="gnome-themes"/>) or a Gtk icon theme (such as
183 <xref linkend="gnome-icon-theme"/>) you can set your prefences in
184 <filename>~/.gtkrc-2.0</filename>:</para>
185
186<screen><userinput>cat &gt; ~/gtkrc-2.0 &lt;&lt; "EOF"
187include "/usr/share/themes/<replaceable>Glider</replaceable>/gtk-2.0/gtkrc"
188gtk-icon-theme-name = "<replaceable>hicolor</replaceable>"
189EOF</userinput></screen>
190
191 <para>There are many more themes available at
192 <ulink url="http://gnome-look.org/">Gnome-Look.org</ulink> and other
193 places.</para>
194 <para>Once you've settled on themes you like, you can (as the
195 <systemitem class="username">root</systemitem> user) make them the
196 default system wide:</para>
197
198<screen role="root"><userinput>cat &gt; /etc/gtk-2.0/gtkrc &lt;&lt; "EOF"
199include "/usr/share/themes/<replaceable>Clearlooks</replaceable>/gtk-2.0/gtkrc"
200gtk-icon-theme-name = "<replaceable>elementary</replaceable>"
201EOF</userinput></screen>
202
203 </sect3>
204
205 </sect2>
206
207 <sect2 role="content">
208 <title>Contents</title>
209
210 <segmentedlist>
211 <segtitle>Installed Programs</segtitle>
212 <segtitle>Installed Libraries</segtitle>
213 <segtitle>Installed Directories</segtitle>
214
215 <seglistitem>
216 <seg>gtk-builder-convert, gtk-demo, gtk-query-immodules-2.0, and
217 gtk-update-icon-cache</seg>
218 <seg>libpixmap.so, im-am-et.so, im-cedilla.so, im-cyrillic-translit.so,
219 im-inuktitut.so, im-ipa.so, im-multipress.so, im-thai.so, im-ti-er.so,
220 im-ti-et.so, im-viqr.so, im-xim.so, libprintbackend-cups.so
221 libprintbackend-file.so, libprintbackend-lpr.so,
222 libferret.so, libgail.so, libgailutil.so, libgdk-x11-2.0.so and
223 libgtk-x11-2.0.so</seg>
224 <seg>/etc/gtk-2.0, /usr/include/gail-1.0,
225 /usr/include/gtk-2.0, /usr/include/gtk-unix-print-2.0},
226 /usr/lib/gtk-2.0, /usr/share/doc/gtk+-&gtk2-version;,
227 /usr/share/gtk-doc/html/gail-libgail-util,
228 /usr/share/gtk-doc/html/gdk-pixbuf, /usr/share/gtk-doc/html/gtk,
229 /usr/share/themes/Default, /usr/share/themes/Emacs and
230 /usr/share/themes/Raleigh</seg>
231 </seglistitem>
232 </segmentedlist>
233
234 <variablelist>
235 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
236 <?dbfo list-presentation="list"?>
237 <?dbhtml list-presentation="table"?>
238
239 <varlistentry id="gtk-builder-convert">
240 <term><command>gtk-builder-convert</command></term>
241 <listitem>
242 <para>converts glade files into XML files which can be loaded with
243 GtkBuilder.</para>
244 <indexterm zone="gtk2 gtk-builder-convert">
245 <primary
246 sortas="b-gtk-builder-convert">gtk-builder-convert</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="gtk-demo">
252 <term><command>gtk-demo</command></term>
253 <listitem>
254 <para>demonstrates <application>GTK+</application> functionality and
255 provides code for the examples.</para>
256 <indexterm zone="gtk2 gtk-demo">
257 <primary
258 sortas="b-gtk-demo">gtk-demo</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262
263 <varlistentry id="gtk-query-immodules-2.0">
264 <term><command>gtk-query-immodules-2.0</command></term>
265 <listitem>
266 <para>collects information about loadable input method modules for
267 <application>GTK+</application> and writes it to standard output.</para>
268 <indexterm zone="gtk2 gtk-query-immodules-2.0">
269 <primary
270 sortas="b-gtk-query-immodules-2.0">gtk-query-immodules-2.0</primary>
271 </indexterm>
272 </listitem>
273 </varlistentry>
274
275 <varlistentry id="gtk-update-icon-cache">
276 <term><command>gtk-update-icon-cache</command></term>
277 <listitem>
278 <para>creates mmap()able cache files for icon themes.</para>
279 <indexterm zone="gtk2 gtk-update-icon-cache">
280 <primary sortas="b-gtk-update-icon-cache">gtk-update-icon-cache</primary>
281 </indexterm>
282 </listitem>
283 </varlistentry>
284
285 <varlistentry id="GTK2libs">
286 <term>GTK+ Libraries</term>
287 <listitem>
288 <para>provide an API to implement graphical user interfaces.</para>
289 <indexterm zone="gtk2 GTK2libs">
290 <primary sortas="c-GTK2libs">GTK+ Libraries</primary>
291 </indexterm>
292 </listitem>
293 </varlistentry>
294
295 </variablelist>
296
297 </sect2>
298
299</sect1>
Note: See TracBrowser for help on using the repository browser.