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

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

Made the punctuation/capitalisation a little more consistent across the Gtk 2 and Gtk 3 pages

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

  • Property mode set to 100644
File size: 12.1 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 <application>Gtk+ 2</application> themes change the way a
204 <application>Gtk+ 2</application> application looks. A
205 <application>Gtk+ 2</application> icon theme can be used to change the
206 icons that appear on the application's toolbar. If you have installed a
207 <application>Gtk+ 2</application> theme (such as <ulink
208 url="http://ftp.gnome.org/pub/gnome/sources/gnome-themes/2.32/">gnome-themes</ulink>
209 (requires <xref linkend="gtk-engines"/>)) or a
210 <application>Gtk+ 2</application> icon theme (such as
211 <xref linkend="gnome-icon-theme"/>) you can set your preferences in
212 <filename>~/.gtkrc-2.0</filename>:
213 </para>
214
215<screen><userinput>cat &gt; ~/.gtkrc-2.0 &lt;&lt; "EOF"
216include "/usr/share/themes/<replaceable>Glider</replaceable>/gtk-2.0/gtkrc"
217gtk-icon-theme-name = "<replaceable>hicolor</replaceable>"
218EOF</userinput></screen>
219
220 <para>
221 There are many more themes available at
222 <ulink url="http://gnome-look.org/">Gnome-Look.org</ulink> and other
223 places.
224 </para>
225
226 <para>
227 Once you've settled on themes you like, you can (as the
228 <systemitem class="username">root</systemitem> user) make them the
229 default system wide:
230 </para>
231
232<screen role="root"><userinput>cat &gt; /etc/gtk-2.0/gtkrc &lt;&lt; "EOF"
233include "/usr/share/themes/<replaceable>Clearlooks</replaceable>/gtk-2.0/gtkrc"
234gtk-icon-theme-name = "<replaceable>elementary</replaceable>"
235EOF</userinput></screen>
236
237 <para>
238 <ulink url="http://sourceforge.net/projects/lxde/files/LXAppearance/">
239 LXAppearance</ulink> is a <application>Gtk+ 2</application> application
240 that can help you choose the themes you like.
241 </para>
242 </sect3>
243 </sect2>
244
245 <sect2 role="content">
246 <title>Contents</title>
247
248 <segmentedlist>
249 <segtitle>Installed Programs</segtitle>
250 <segtitle>Installed Libraries</segtitle>
251 <segtitle>Installed Directories</segtitle>
252
253 <seglistitem>
254 <seg>
255 gtk-builder-convert, gtk-demo, gtk-query-immodules-2.0 and
256 gtk-update-icon-cache
257 </seg>
258 <seg>
259 libpixmap.so, im-am-et.so, im-cedilla.so, im-cyrillic-translit.so,
260 im-inuktitut.so, im-ipa.so, im-multipress.so, im-thai.so, im-ti-er.so,
261 im-ti-et.so, im-viqr.so, im-xim.so, libprintbackend-cups.so
262 libprintbackend-file.so, libprintbackend-lpr.so,
263 libferret.so, libgail.so, libgailutil.so, libgdk-x11-2.0.so and
264 libgtk-x11-2.0.so
265 </seg>
266 <seg>
267 /etc/gtk-2.0, /usr/include/gail-1.0, /usr/include/gtk-2.0,
268 /usr/include/gtk-unix-print-2.0, /usr/lib/gtk-2.0,
269 /usr/share/doc/gtk+-&gtk2-version;,
270 /usr/share/gtk-doc/html/gail-libgail-util,
271 /usr/share/gtk-doc/html/gdk-pixbuf, /usr/share/gtk-doc/html/gtk,
272 /usr/share/themes/Default, /usr/share/themes/Emacs and
273 /usr/share/themes/Raleigh
274 </seg>
275 </seglistitem>
276 </segmentedlist>
277
278 <variablelist>
279 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
280 <?dbfo list-presentation="list"?>
281 <?dbhtml list-presentation="table"?>
282
283 <varlistentry id="gtk-builder-convert">
284 <term><command>gtk-builder-convert</command></term>
285 <listitem>
286 <para>
287 converts glade files into XML files which can be loaded with
288 GtkBuilder.
289 </para>
290 <indexterm zone="gtk2 gtk-builder-convert">
291 <primary
292 sortas="b-gtk-builder-convert">gtk-builder-convert</primary>
293 </indexterm>
294 </listitem>
295 </varlistentry>
296
297 <varlistentry id="gtk-demo">
298 <term><command>gtk-demo</command></term>
299 <listitem>
300 <para>
301 demonstrates <application>Gtk+ 2</application> functionality and
302 provides code for the examples.
303 </para>
304 <indexterm zone="gtk2 gtk-demo">
305 <primary
306 sortas="b-gtk-demo">gtk-demo</primary>
307 </indexterm>
308 </listitem>
309 </varlistentry>
310
311 <varlistentry id="gtk-query-immodules-2.0">
312 <term><command>gtk-query-immodules-2.0</command></term>
313 <listitem>
314 <para>
315 collects information about loadable input method modules for
316 <application>Gtk+ 2</application> and writes it to standard output.
317 </para>
318 <indexterm zone="gtk2 gtk-query-immodules-2.0">
319 <primary
320 sortas="b-gtk-query-immodules-2.0">gtk-query-immodules-2.0</primary>
321 </indexterm>
322 </listitem>
323 </varlistentry>
324
325 <varlistentry id="gtk-update-icon-cache">
326 <term><command>gtk-update-icon-cache</command></term>
327 <listitem>
328 <para>
329 creates mmap()able cache files for icon themes.
330 </para>
331 <indexterm zone="gtk2 gtk-update-icon-cache">
332 <primary sortas="b-gtk-update-icon-cache">gtk-update-icon-cache</primary>
333 </indexterm>
334 </listitem>
335 </varlistentry>
336
337 <varlistentry id="gtk2libs">
338 <term>Gtk+ 2 Libraries</term>
339 <listitem>
340 <para>
341 provide an API to implement graphical user interfaces.
342 </para>
343 <indexterm zone="gtk2 gtk2libs">
344 <primary sortas="c-gtk2libs">Gtk+ 2 Libraries</primary>
345 </indexterm>
346 </listitem>
347 </varlistentry>
348 </variablelist>
349 </sect2>
350</sect1>
Note: See TracBrowser for help on using the repository browser.