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

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 e443c44e was 0674895, checked in by Ken Moffat <ken@…>, 12 years ago

Remove reference to gnome-themes from gtk+-2, based on Wayne but fixed up by hand.

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

  • Property mode set to 100644
File size: 12.1 KB
RevLine 
[feeb99a]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[feeb99a]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[bcef05b]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">
[2b95bda]9 <!ENTITY gtk2-md5sum "5408d4a70ac132f7c439d7de40e83aff">
[0dae9b6]10 <!ENTITY gtk2-size "12.2 MB">
[2b95bda]11 <!ENTITY gtk2-buildsize "337 MB">
12 <!ENTITY gtk2-time "2.7 SBU">
[feeb99a]13]>
14
[89488b4]15<sect1 id="gtk2" xreflabel="gtk+-&gtk2-version;">
[39fbd200]16 <?dbhtml filename="gtk2.html" ?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
[89488b4]23 <title>gtk+-&gtk2-version;</title>
[39fbd200]24
25 <indexterm zone="gtk2">
[89488b4]26 <primary sortas="a-gtk2">gtk2</primary>
[39fbd200]27 </indexterm>
28
29 <sect2 role="package">
[89488b4]30 <title>Introduction to gtk+-2</title>
[39fbd200]31
[89488b4]32 <para>The <application>gtk+-2</application> package contains
33 <application>gtk+-2</application> libraries. These are useful
[39fbd200]34 for creating graphical user interfaces for applications.</para>
35
[bcef05b]36 &lfs70_checked;
[a10f4a7]37
[39fbd200]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
[89488b4]60 <bridgehead renderas="sect3">gtk+-2 Dependencies</bridgehead>
[39fbd200]61
62 <bridgehead renderas="sect4">Required</bridgehead>
[bcef05b]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>
[39fbd200]67
[f6deaf77]68 <bridgehead renderas="sect4">Recommended</bridgehead>
[bcef05b]69 <para role="recommended"><xref linkend="hicolor-icon-theme"/></para>
[f6deaf77]70
[49f7d8b]71 <!-- hicolor-icon-theme is required for the test suite -->
72
[39fbd200]73 <bridgehead renderas="sect4">Optional</bridgehead>
[5d4e5c7]74 <para role="optional"><xref linkend="cups"/>,
[74cfec8]75 <xref linkend="docbook-utils"/>,
[bcef05b]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>
[39fbd200]84
[c5c2654]85 <para condition="html" role="usernotes">User Notes:
86 <ulink url="&blfs-wiki;/gtk+2"/></para>
87
[39fbd200]88 </sect2>
89
90 <sect2 role="installation">
[89488b4]91 <title>Installation of gtk+-2</title>
[39fbd200]92
[89488b4]93 <para>Install <application>gtk+-2</application> by running
[39fbd200]94 the following commands:</para>
95
[e08a501]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 &amp;&amp;
99
100sed -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 &amp;&amp;
103
104sed -i -e 's#^\( gtk_icon_view_\)l#\1queue_l#' gtk/gtkiconview.c &amp;&amp;
105
[bcef05b]106./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
[39fbd200]107make</userinput></screen>
108
[c9786f06]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
[12c3430]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>
[39fbd200]114
115 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
116
[e08a501]117<screen role="root"><userinput>make install &amp;&amp;
118sed -i 's/#man_MANS/man_MANS/' docs/reference/gtk/Makefile &amp;&amp;
119make -C docs/reference/gtk install-man &amp;&amp;
120
121install -v -m755 -d /usr/share/doc/gtk+-&gtk2-version; &amp;&amp;
122cp -v -R docs/faq/html /usr/share/doc/gtk+-&gtk2-version;/faq &amp;&amp;
[57a0e04]123cp -v -R docs/tutorial/html /usr/share/doc/gtk+-&gtk2-version;/tutorial &amp;&amp;
[5d4e5c7]124install -v -m644 docs/*.txt /usr/share/doc/gtk+-&gtk2-version;</userinput></screen>
[39fbd200]125
[8013fbe3]126 <warning>
[bcef05b]127
[8013fbe3]128 <para>If you installed the package on to your system using a
[bcef05b]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>
[8013fbe3]132 user:</para>
133
[bcef05b]134<screen role="root"><userinput>gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders &amp;&amp;
135gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules</userinput></screen>
136
[8013fbe3]137 </warning>
138
[39fbd200]139 </sect2>
140
141 <sect2 role="commands">
142 <title>Command Explanations</title>
143
[bcef05b]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
[352d95c]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
[39fbd200]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
[bcef05b]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
[39fbd200]162 <para><option>--enable-gtk-doc</option>: This switch will rebuild
[0d35663]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>
[39fbd200]166
[bcef05b]167 </sect2>
168
169 <sect2 role="configuration">
[89488b4]170 <title>Configuring gtk+-2</title>
[bcef05b]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>
[f6deaf77]176
[bcef05b]177 <indexterm zone="gtk2 gtk2-config">
178 <primary sortas="e-AA.gtkrc-2.0">~/.gtkrc-2.0</primary>
179 </indexterm>
[f6deaf77]180
[bcef05b]181 <indexterm zone="gtk2 gtk2-config">
182 <primary sortas="e-etc-path-gtkrc">/etc/gtk-2.0/gtkrc</primary>
183 </indexterm>
184 </sect3>
[1b9e36e]185
[bcef05b]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
[0674895]190 toolbar. If you have installed a Gtk theme or a Gtk icon theme (such as
[bcef05b]191 <xref linkend="gnome-icon-theme"/>) you can set your prefences in
192 <filename>~/.gtkrc-2.0</filename>:</para>
193
[05d91c4]194<screen><userinput>cat &gt; ~/.gtkrc-2.0 &lt;&lt; "EOF"
[bcef05b]195include "/usr/share/themes/<replaceable>Glider</replaceable>/gtk-2.0/gtkrc"
196gtk-icon-theme-name = "<replaceable>hicolor</replaceable>"
197EOF</userinput></screen>
198
199 <para>There are many more themes available at
200 <ulink url="http://gnome-look.org/">Gnome-Look.org</ulink> and other
201 places.</para>
[352d95c]202
[bcef05b]203 <para>Once you've settled on themes you like, you can (as the
204 <systemitem class="username">root</systemitem> user) make them the
205 default system wide:</para>
206
207<screen role="root"><userinput>cat &gt; /etc/gtk-2.0/gtkrc &lt;&lt; "EOF"
208include "/usr/share/themes/<replaceable>Clearlooks</replaceable>/gtk-2.0/gtkrc"
209gtk-icon-theme-name = "<replaceable>elementary</replaceable>"
210EOF</userinput></screen>
211
[352d95c]212 <para>
213 <ulink url="http://sourceforge.net/projects/lxde/files/LXAppearance/">
[89488b4]214 LXAppearance</ulink> is a gtk+-2 application that can help you choose the
[352d95c]215 themes you like.</para>
216
[bcef05b]217 </sect3>
[1b9e36e]218
[39fbd200]219 </sect2>
220
221 <sect2 role="content">
222 <title>Contents</title>
223
224 <segmentedlist>
225 <segtitle>Installed Programs</segtitle>
226 <segtitle>Installed Libraries</segtitle>
227 <segtitle>Installed Directories</segtitle>
228
229 <seglistitem>
[bcef05b]230 <seg>gtk-builder-convert, gtk-demo, gtk-query-immodules-2.0, and
231 gtk-update-icon-cache</seg>
[72de95a]232 <seg>libpixmap.so, im-am-et.so, im-cedilla.so, im-cyrillic-translit.so,
233 im-inuktitut.so, im-ipa.so, im-multipress.so, im-thai.so, im-ti-er.so,
[bcef05b]234 im-ti-et.so, im-viqr.so, im-xim.so, libprintbackend-cups.so
[72de95a]235 libprintbackend-file.so, libprintbackend-lpr.so,
[bcef05b]236 libferret.so, libgail.so, libgailutil.so, libgdk-x11-2.0.so and
[72de95a]237 libgtk-x11-2.0.so</seg>
[bcef05b]238 <seg>/etc/gtk-2.0, /usr/include/gail-1.0,
239 /usr/include/gtk-2.0, /usr/include/gtk-unix-print-2.0},
240 /usr/lib/gtk-2.0, /usr/share/doc/gtk+-&gtk2-version;,
241 /usr/share/gtk-doc/html/gail-libgail-util,
242 /usr/share/gtk-doc/html/gdk-pixbuf, /usr/share/gtk-doc/html/gtk,
243 /usr/share/themes/Default, /usr/share/themes/Emacs and
244 /usr/share/themes/Raleigh</seg>
[39fbd200]245 </seglistitem>
246 </segmentedlist>
247
248 <variablelist>
249 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
250 <?dbfo list-presentation="list"?>
251 <?dbhtml list-presentation="table"?>
252
[49f7d8b]253 <varlistentry id="gtk-builder-convert">
254 <term><command>gtk-builder-convert</command></term>
255 <listitem>
[a41f643]256 <para>converts glade files into XML files which can be loaded with
[49f7d8b]257 GtkBuilder.</para>
258 <indexterm zone="gtk2 gtk-builder-convert">
259 <primary
260 sortas="b-gtk-builder-convert">gtk-builder-convert</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
264
265 <varlistentry id="gtk-demo">
266 <term><command>gtk-demo</command></term>
267 <listitem>
[89488b4]268 <para>demonstrates <application>gtk+-2</application> functionality and
[49f7d8b]269 provides code for the examples.</para>
270 <indexterm zone="gtk2 gtk-demo">
271 <primary
272 sortas="b-gtk-demo">gtk-demo</primary>
273 </indexterm>
274 </listitem>
275 </varlistentry>
276
[39fbd200]277 <varlistentry id="gtk-query-immodules-2.0">
278 <term><command>gtk-query-immodules-2.0</command></term>
279 <listitem>
280 <para>collects information about loadable input method modules for
[89488b4]281 <application>gtk+-2</application> and writes it to standard output.</para>
[39fbd200]282 <indexterm zone="gtk2 gtk-query-immodules-2.0">
283 <primary
284 sortas="b-gtk-query-immodules-2.0">gtk-query-immodules-2.0</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288
289 <varlistentry id="gtk-update-icon-cache">
290 <term><command>gtk-update-icon-cache</command></term>
291 <listitem>
292 <para>creates mmap()able cache files for icon themes.</para>
293 <indexterm zone="gtk2 gtk-update-icon-cache">
294 <primary sortas="b-gtk-update-icon-cache">gtk-update-icon-cache</primary>
295 </indexterm>
296 </listitem>
297 </varlistentry>
298
[89488b4]299 <varlistentry id="gtk2libs">
300 <term>gtk+-2 Libraries</term>
[39fbd200]301 <listitem>
302 <para>provide an API to implement graphical user interfaces.</para>
[89488b4]303 <indexterm zone="gtk2 gtk2libs">
304 <primary sortas="c-gtk2libs">gtk+-2 Libraries</primary>
[39fbd200]305 </indexterm>
306 </listitem>
307 </varlistentry>
308
309 </variablelist>
310
311 </sect2>
[f45b1953]312
313</sect1>
Note: See TracBrowser for help on using the repository browser.