source: x/lib/gtk+2.xml@ 05d91c4

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

typo

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