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