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

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

GTK+ 3.4.4, GTK+ 2.24.11, Gtk VNC 0.5.1, Mx 1.4.6 and GLibmm 2.32.1.

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

  • Property mode set to 100644
File size: 11.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 "&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 "8fb5c413be698169fedee774ec06bc8c">
10 <!ENTITY gtk2-size "13 MB">
11 <!ENTITY gtk2-buildsize "350 MB">
12 <!ENTITY gtk2-time "3.5 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>
33 The <application>GTK+ 2</application> package contains
34 libraries used for creating graphical user interfaces
35 for applications.
36 </para>
37
38 &lfs71_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&gtk2-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&gtk2-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &gtk2-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &gtk2-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &gtk2-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &gtk2-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">GTK+ 2 Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Required</bridgehead>
77 <para role="required">
78 <xref linkend="atk"/>,
79 <xref linkend="cairo"/>,
80 <xref linkend="gdk-pixbuf"/>,
81 <xref linkend="pango"/> and
82 <xref linkend="xorg7-lib"/>
83 </para>
84
85 <bridgehead renderas="sect4">Recommended</bridgehead>
86 <para role="recommended">
87 <xref linkend="hicolor-icon-theme"/>
88 </para>
89
90 <bridgehead renderas="sect4">Optional</bridgehead>
91 <para role="optional">
92 <xref linkend="cups"/>,
93 <xref linkend="docbook-utils"/>,
94 <xref linkend="gobject-introspection"/> and
95 <xref linkend="gtk-doc"/>
96 </para>
97
98 <para condition="html" role="usernotes">
99 User Notes: <ulink url="&blfs-wiki;/gtk+2"/>
100 </para>
101 </sect2>
102
103 <sect2 role="installation">
104 <title>Installation of GTK+ 2</title>
105
106 <para>
107 Install <application>GTK+ 2</application> by running the following
108 commands:
109 </para>
110
111<screen><userinput>sed -i 's#l \(gtk-.*\).sgml#&amp; -o \1#' docs/{faq,tutorial}/Makefile.in &amp;&amp;
112sed -i 's#.*@man_#man_#' docs/reference/gtk/Makefile.in &amp;&amp;
113./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
114make</userinput></screen>
115
116 <para>
117 To test the results, issue: <command>make check</command>. Note that you
118 must run the tests from a session with X Window Display capability (i.e.,
119 not a text-based terminal/console) as the tests attempt to open an X
120 window, and the tests can take an excessively long time. Using an X
121 Window, the tests should take less than 0.3 SBUs
122 </para>
123
124 <para>
125 Now, as the <systemitem class="username">root</systemitem> user:
126 </para>
127
128<screen role="root"><userinput>make install &amp;&amp;
129mkdir -pv /usr/share/doc/gtk+-&gtk2-version; &amp;&amp;
130cp -v -R docs/faq/html /usr/share/doc/gtk+-&gtk2-version;/faq &amp;&amp;
131cp -v -R docs/tutorial/html /usr/share/doc/gtk+-&gtk2-version;/tutorial &amp;&amp;
132install -v -m644 docs/*.txt /usr/share/doc/gtk+-&gtk2-version;</userinput></screen>
133
134 <note>
135 <para>
136 If you installed the package on to your system using a
137 <quote>DESTDIR</quote> method then important file was not installed and
138 must be copied and/or generated. Generate it using the following
139 command as the <systemitem class="username">root</systemitem> user:
140 </para>
141
142<screen role="root"><userinput>gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules</userinput></screen>
143 </note>
144 </sect2>
145
146 <sect2 role="commands">
147 <title>Command Explanations</title>
148
149 <para>
150 <command>sed -i 's#l \(gtk-.*\).sgml#&amp; -o \1#'
151 docs/{faq,tutorial}/Makefile.in</command>: If you have
152 <xref linkend="docbook-utils"/> installed (specifically, if configure
153 finds db2html) then it will try to use it to rebuild some of it's html
154 documentation and fail due to bugs in some of the Makefiles. This sed
155 fixes the Makefiles.
156 </para>
157
158 <para>
159 <command>sed -i 's#.*@man_#man_#' docs/reference/gtk/Makefile.in</command>:
160 This sed fixes one of the <filename>Makefile</filename>s so it installs the
161 man pages for gtk-builder-convert, gtk-query-immodules-2.0 and
162 gtk-update-icon-cache.
163 </para>
164
165 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
166 href="../../xincludes/gtk-doc-rebuild.xml"/>
167
168 </sect2>
169
170 <sect2 role="configuration">
171 <title>Configuring GTK+ 2</title>
172
173 <sect3 id="gtk2-config">
174 <title>Config Files</title>
175 <para>
176 <filename>~/.gtkrc-2.0</filename> and
177 <filename>/etc/gtk-2.0/gtkrc</filename>
178 </para>
179
180 <indexterm zone="gtk2 gtk2-config">
181 <primary sortas="e-AA.gtkrc-2.0">~/.gtkrc-2.0</primary>
182 </indexterm>
183
184 <indexterm zone="gtk2 gtk2-config">
185 <primary sortas="e-etc-path-gtkrc">/etc/gtk-2.0/gtkrc</primary>
186 </indexterm>
187 </sect3>
188
189 <sect3><title>Configuration Information</title>
190
191 <para>
192 <application>GTK+ 2</application> themes change the way a
193 <application>GTK+ 2</application> application looks. A
194 <application>GTK+ 2</application> icon theme can be used to change the
195 icons that appear on the application's toolbar. If you have installed a
196 <application>GTK+ 2</application> theme (such as <ulink
197 url="http://ftp.gnome.org/pub/gnome/sources/gnome-themes/2.32/">gnome-themes</ulink>
198 (requires <xref linkend="gtk-engines"/>)) or a
199 <application>GTK+ 2</application> icon theme (such as
200 <xref linkend="gnome-icon-theme"/>) you can set your preferences in
201 <filename>~/.gtkrc-2.0</filename>:
202 </para>
203
204<screen><userinput>cat &gt; ~/.gtkrc-2.0 &lt;&lt; "EOF"
205include "/usr/share/themes/<replaceable>Glider</replaceable>/gtk-2.0/gtkrc"
206gtk-icon-theme-name = "<replaceable>hicolor</replaceable>"
207EOF</userinput></screen>
208
209 <para>
210 There are many more themes available at
211 <ulink url="http://gnome-look.org/">Gnome-Look.org</ulink> and other
212 places.
213 </para>
214
215 <para>
216 Once you've settled on themes you like, you can (as the
217 <systemitem class="username">root</systemitem> user) make them the
218 default system wide:
219 </para>
220
221<screen role="root"><userinput>cat &gt; /etc/gtk-2.0/gtkrc &lt;&lt; "EOF"
222include "/usr/share/themes/<replaceable>Clearlooks</replaceable>/gtk-2.0/gtkrc"
223gtk-icon-theme-name = "<replaceable>elementary</replaceable>"
224EOF</userinput></screen>
225
226 <para>
227 <ulink url="http://sourceforge.net/projects/lxde/files/LXAppearance/">
228 LXAppearance</ulink> is a <application>GTK+ 2</application> application
229 that can help you choose the themes you like.
230 </para>
231 </sect3>
232 </sect2>
233
234 <sect2 role="content">
235 <title>Contents</title>
236
237 <segmentedlist>
238 <segtitle>Installed Programs</segtitle>
239 <segtitle>Installed Libraries</segtitle>
240 <segtitle>Installed Directories</segtitle>
241
242 <seglistitem>
243 <seg>
244 gtk-builder-convert, gtk-demo, gtk-query-immodules-2.0 and
245 gtk-update-icon-cache
246 </seg>
247 <seg>
248 libgailutil.so, libgdk-x11-2.0.so and
249 libgtk-x11-2.0.so
250 </seg>
251 <seg>
252 /etc/gtk-2.0,
253 /usr/include/gail-1.0,
254 /usr/include/gtk-2.0,
255 /usr/include/gtk-unix-print-2.0,
256 /usr/lib/gtk-2.0,
257 /usr/share/doc/gtk+-&gtk2-version;,
258 /usr/share/gtk-doc/html/gail-libgail-util,
259 /usr/share/gtk-doc/html/gtk,
260 /usr/share/themes/Default,
261 /usr/share/themes/Emacs and
262 /usr/share/themes/Raleigh
263 </seg>
264 </seglistitem>
265 </segmentedlist>
266
267 <variablelist>
268 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
269 <?dbfo list-presentation="list"?>
270 <?dbhtml list-presentation="table"?>
271
272 <varlistentry id="gtk-builder-convert">
273 <term><command>gtk-builder-convert</command></term>
274 <listitem>
275 <para>
276 converts glade files into XML files which can be loaded with
277 GtkBuilder.
278 </para>
279 <indexterm zone="gtk2 gtk-builder-convert">
280 <primary
281 sortas="b-gtk-builder-convert">gtk-builder-convert</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
285
286 <varlistentry id="gtk-demo">
287 <term><command>gtk-demo</command></term>
288 <listitem>
289 <para>
290 demonstrates <application>GTK+ 2</application> functionality and
291 provides code for the examples.
292 </para>
293 <indexterm zone="gtk2 gtk-demo">
294 <primary
295 sortas="b-gtk-demo">gtk-demo</primary>
296 </indexterm>
297 </listitem>
298 </varlistentry>
299
300 <varlistentry id="gtk-query-immodules-2.0">
301 <term><command>gtk-query-immodules-2.0</command></term>
302 <listitem>
303 <para>
304 collects information about loadable input method modules for
305 <application>GTK+ 2</application> and writes it to standard output.
306 </para>
307 <indexterm zone="gtk2 gtk-query-immodules-2.0">
308 <primary
309 sortas="b-gtk-query-immodules-2.0">gtk-query-immodules-2.0</primary>
310 </indexterm>
311 </listitem>
312 </varlistentry>
313
314 <varlistentry id="gtk-update-icon-cache">
315 <term><command>gtk-update-icon-cache</command></term>
316 <listitem>
317 <para>
318 creates mmap()able cache files for icon themes.
319 </para>
320 <indexterm zone="gtk2 gtk-update-icon-cache">
321 <primary sortas="b-gtk-update-icon-cache">gtk-update-icon-cache</primary>
322 </indexterm>
323 </listitem>
324 </varlistentry>
325
326 <varlistentry id="gtk2libs">
327 <term>GTK+ 2 Libraries</term>
328 <listitem>
329 <para>
330 provide an API to implement graphical user interfaces.
331 </para>
332 <indexterm zone="gtk2 gtk2libs">
333 <primary sortas="c-gtk2libs">GTK+ 2 Libraries</primary>
334 </indexterm>
335 </listitem>
336 </varlistentry>
337
338 </variablelist>
339
340 </sect2>
341
342</sect1>
Note: See TracBrowser for help on using the repository browser.