source: x/lib/gtk+2.xml@ 13832d9

7.6-blfs 7.6-systemd kde5-14269 kde5-14686 systemd-13485
Last change on this file since 13832d9 was 13832d9, checked in by Krejzi <krejzi@…>, 10 years ago

Switch examples to GNOME themes as they are in the book.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@14028 af4574ff-66df-0310-9fd7-8a98e5e911e0

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