source: x/lib/gtk+2.xml@ 193af65e

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 193af65e was 193af65e, checked in by Ken Moffat <ken@…>, 4 years ago

Tags.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23556 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
[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">
[efcdd60]9 <!ENTITY gtk2-md5sum "d5742aa42275203a499b59b4c382a784">
[1d615c21]10 <!ENTITY gtk2-size "12 MB">
[efcdd60]11 <!ENTITY gtk2-buildsize "275 MB">
[eab496c5]12 <!ENTITY gtk2-time "1.0 SBU (using parallelism=4; add 0.1 SBU for 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
[193af65e]38 &lfs10_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"/>,
[20ff9ce]92 <xref role="runtime" linkend="gnome-themes-extra"/> (runtime, for
93 Adwaita and HighContrast themes),
[b04a049]94 <xref linkend="gobject-introspection"/> and
[a2912ff]95 <xref linkend="gtk-doc"/>
[b04a049]96 </para>
97
[baac59c]98 <note>
99 <para>
100 If <xref linkend="gobject-introspection"/> was installed after
101 <xref linkend="atk"/>, <xref linkend="gdk-pixbuf"/>, and/or <xref
102 linkend="pango"/>, those packages will have to be rebuilt before this
103 package can be built.
104 </para>
105 </note>
[b64a9cf0]106
[b04a049]107 <para condition="html" role="usernotes">
108 User Notes: <ulink url="&blfs-wiki;/gtk+2"/>
109 </para>
[39fbd200]110 </sect2>
111
112 <sect2 role="installation">
[a2912ff]113 <title>Installation of GTK+ 2</title>
[e08a501]114
[b04a049]115 <para>
[a2912ff]116 Install <application>GTK+ 2</application> by running the following
[b04a049]117 commands:
118 </para>
[e08a501]119
[6c6990c]120<screen><userinput>sed -e 's#l \(gtk-.*\).sgml#&amp; -o \1#' \
121 -i docs/{faq,tutorial}/Makefile.in &amp;&amp;
122
123./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
124
[39fbd200]125make</userinput></screen>
126
[b04a049]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
[c361a46]132 Window, the tests should take less than 0.3 SBU. One test,
133 DefaultValues/GdkPixbuf, is known to fail.
[b04a049]134 </para>
[39fbd200]135
[b04a049]136 <para>
137 Now, as the <systemitem class="username">root</systemitem> user:
138 </para>
[39fbd200]139
[c1f0df84]140<screen role="root"><userinput>make install</userinput></screen>
[39fbd200]141
[b04a049]142 <note>
143 <para>
144 If you installed the package on to your system using a
[6c13e98]145 <quote>DESTDIR</quote> method, an important file was not installed and
[2ffe965]146 must be copied and/or generated. Generate it using the following
147 command as the <systemitem class="username">root</systemitem> user:
[b04a049]148 </para>
[8013fbe3]149
[f7033437]150<screen role="root"><userinput>gtk-query-immodules-2.0 --update-cache</userinput></screen>
[b04a049]151 </note>
[f7033437]152
[39fbd200]153 </sect2>
154
155 <sect2 role="commands">
156 <title>Command Explanations</title>
157
[b04a049]158 <para>
159 <command>sed -i 's#l \(gtk-.*\).sgml#&amp; -o \1#'
160 docs/{faq,tutorial}/Makefile.in</command>: If you have
161 <xref linkend="docbook-utils"/> installed (specifically, if configure
[601a838]162 finds <command>db2html</command>) then it will try to use it to rebuild
163 some of its HTML documentation and fail due to bugs in some of the
164 <filename>Makefile</filename>s. This <command>sed</command> fixes the
165 <filename>Makefile</filename>s.
[b04a049]166 </para>
[83349bf]167 <!-- This still seems to have problems with docbook-utils installed.
168 However, since it's already been tagged, I'll leave it alone. -->
[a8e34533]169<!--
[216791a]170 <para>
171 <command>sed -i -e 's#pltcheck.sh#$(NULL)#g' gtk/Makefile.in</command>:
[6c6990c]172 This <command>sed</command> disables one test known to fail.
[34fb49a7]173 Not necessary, if not running the tests.
[a8e34533]174 </para>-->
[216791a]175
[b04a049]176 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
177 href="../../xincludes/gtk-doc-rebuild.xml"/>
[a2912ff]178
[bcef05b]179 </sect2>
180
181 <sect2 role="configuration">
[a2912ff]182 <title>Configuring GTK+ 2</title>
[bcef05b]183
184 <sect3 id="gtk2-config">
185 <title>Config Files</title>
[b04a049]186 <para>
[64cac4c]187 <filename>~/.gtkrc-2.0</filename>,
188 <filename>/etc/gtk-2.0/gtkrc</filename>, and
189 <filename>/usr/share/gtk-2.0/gtkrc</filename>
[b04a049]190 </para>
[f6deaf77]191
[bcef05b]192 <indexterm zone="gtk2 gtk2-config">
193 <primary sortas="e-AA.gtkrc-2.0">~/.gtkrc-2.0</primary>
194 </indexterm>
[f6deaf77]195
[bcef05b]196 <indexterm zone="gtk2 gtk2-config">
[64cac4c]197 <primary sortas="e-etc-gtk-2.0-gtkrc">/etc/gtk-2.0/gtkrc</primary>
198 </indexterm>
199
200 <indexterm zone="gtk2 gtk2-config">
201 <primary sortas="e-usr-share-gtk-2.0-gtkrc">/usr/share/gtk-2.0/gtkrc</primary>
[bcef05b]202 </indexterm>
203 </sect3>
[1b9e36e]204
[bcef05b]205 <sect3><title>Configuration Information</title>
206
[b04a049]207 <para>
[a2912ff]208 <application>GTK+ 2</application> themes change the way a
209 <application>GTK+ 2</application> application looks. A
210 <application>GTK+ 2</application> icon theme can be used to change the
[ebee860]211 icons that appear on the application's toolbar. If you have installed a
[20ff9ce]212 <application>GTK+ 2</application> theme (such as
213 <xref linkend="gnome-themes-extra"/> or
[a0b39879]214 <xref linkend="gtk-engines"/>), a
[080a144]215 <application>GTK+</application> icon theme (such as <xref
216 linkend="adwaita-icon-theme"/>) you can set your preferences in
[b04a049]217 <filename>~/.gtkrc-2.0</filename>:
218 </para>
[bcef05b]219
[05d91c4]220<screen><userinput>cat &gt; ~/.gtkrc-2.0 &lt;&lt; "EOF"
[51dfb3e]221<literal>include "/usr/share/themes/<replaceable>Glider</replaceable>/gtk-2.0/gtkrc"
222gtk-icon-theme-name = "<replaceable>hicolor</replaceable>"</literal>
[bcef05b]223EOF</userinput></screen>
224
[b04a049]225 <para>
226 There are many more themes available at
227 <ulink url="http://gnome-look.org/">Gnome-Look.org</ulink> and other
228 places.
229 </para>
[352d95c]230
[b04a049]231 <para>
232 Once you've settled on themes you like, you can (as the
233 <systemitem class="username">root</systemitem> user) make them the
234 default system wide:
235 </para>
[bcef05b]236
237<screen role="root"><userinput>cat &gt; /etc/gtk-2.0/gtkrc &lt;&lt; "EOF"
[51dfb3e]238<literal>include "/usr/share/themes/<replaceable>Clearlooks</replaceable>/gtk-2.0/gtkrc"
239gtk-icon-theme-name = "<replaceable>elementary</replaceable>"</literal>
[bcef05b]240EOF</userinput></screen>
241
[352d95c]242 <para>
[6988b80]243 <xref linkend="lxappearance"/> is a <application>GTK+ 2</application>
244 application that can help you choose the themes you like.
[b04a049]245 </para>
[bcef05b]246 </sect3>
[39fbd200]247 </sect2>
248
249 <sect2 role="content">
250 <title>Contents</title>
251
252 <segmentedlist>
253 <segtitle>Installed Programs</segtitle>
254 <segtitle>Installed Libraries</segtitle>
255 <segtitle>Installed Directories</segtitle>
256
257 <seglistitem>
[b04a049]258 <seg>
[d8fe3e58]259 gtk-builder-convert, gtk-demo, gtk-query-immodules-2.0, and
[b04a049]260 gtk-update-icon-cache
261 </seg>
262 <seg>
[ca0d6adc]263 libgailutil.so, libgdk-x11-2.0.so, and libgtk-x11-2.0.so
[b04a049]264 </seg>
265 <seg>
[a2912ff]266 /etc/gtk-2.0,
[d8fe3e58]267 /usr/include/{gail-1.0,gtk-2.0,gtk-unix-print-2.0},
[a2912ff]268 /usr/lib/gtk-2.0,
[d8fe3e58]269 /usr/share/doc/gtk+-&gtk2-version;,
[ca0d6adc]270 /usr/share/gtk-2.0,
[d8fe3e58]271 /usr/share/gtk-doc/html/{gail-libgail-util,gdk2,gtk2}, and
272 /usr/share/themes/{Default,Emacs,Raleigh}
[b04a049]273 </seg>
[39fbd200]274 </seglistitem>
275 </segmentedlist>
276
277 <variablelist>
278 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
279 <?dbfo list-presentation="list"?>
280 <?dbhtml list-presentation="table"?>
281
[49f7d8b]282 <varlistentry id="gtk-builder-convert">
283 <term><command>gtk-builder-convert</command></term>
284 <listitem>
[b04a049]285 <para>
286 converts glade files into XML files which can be loaded with
287 GtkBuilder.
288 </para>
[49f7d8b]289 <indexterm zone="gtk2 gtk-builder-convert">
290 <primary
291 sortas="b-gtk-builder-convert">gtk-builder-convert</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
296 <varlistentry id="gtk-demo">
297 <term><command>gtk-demo</command></term>
298 <listitem>
[b04a049]299 <para>
[a2912ff]300 demonstrates <application>GTK+ 2</application> functionality and
[b04a049]301 provides code for the examples.
302 </para>
[49f7d8b]303 <indexterm zone="gtk2 gtk-demo">
304 <primary
305 sortas="b-gtk-demo">gtk-demo</primary>
306 </indexterm>
307 </listitem>
308 </varlistentry>
309
[39fbd200]310 <varlistentry id="gtk-query-immodules-2.0">
311 <term><command>gtk-query-immodules-2.0</command></term>
312 <listitem>
[b04a049]313 <para>
314 collects information about loadable input method modules for
[a2912ff]315 <application>GTK+ 2</application> and writes it to standard output.
[b04a049]316 </para>
[39fbd200]317 <indexterm zone="gtk2 gtk-query-immodules-2.0">
318 <primary
319 sortas="b-gtk-query-immodules-2.0">gtk-query-immodules-2.0</primary>
320 </indexterm>
321 </listitem>
322 </varlistentry>
323
324 <varlistentry id="gtk-update-icon-cache">
325 <term><command>gtk-update-icon-cache</command></term>
326 <listitem>
[b04a049]327 <para>
[90b5e47]328 creates mmap()able cache files for icon themes. Starting with
329 <application>gtk+-2.24.24</application>, add the flag
330 <quote>--include-image-data</quote> to this command, if you wish
331 previous behavior, with image data in the cache.
[b04a049]332 </para>
[39fbd200]333 <indexterm zone="gtk2 gtk-update-icon-cache">
334 <primary sortas="b-gtk-update-icon-cache">gtk-update-icon-cache</primary>
335 </indexterm>
336 </listitem>
337 </varlistentry>
338
[c1f0df84]339 <varlistentry id="libgdk-x11-2">
340 <term><filename class="libraryfile">libgdk-x11-2.0.so</filename></term>
[39fbd200]341 <listitem>
[b04a049]342 <para>
[c1f0df84]343 contains functions that act as a wrapper around the low-level
344 drawing and windowing functions provided by the underlying graphics
345 system.
[b04a049]346 </para>
[c1f0df84]347 <indexterm zone="gtk2 libgdk-x11-2">
348 <primary sortas="c-libgdk-x11-2">libgdk-x11-2.0.so</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
352
353 <varlistentry id="libgtk-x11-2">
354 <term><filename class="libraryfile">libgtk-x11-2.0.so</filename></term>
355 <listitem>
356 <para>
357 contains functions that provide an API to implement graphical user
358 interfaces.
359 </para>
360 <indexterm zone="gtk2 libgtk-x11-2">
361 <primary sortas="c-libgtk-x11-2">libgtk-x11-2.0.so</primary>
[39fbd200]362 </indexterm>
363 </listitem>
364 </varlistentry>
[a2912ff]365
[39fbd200]366 </variablelist>
[a2912ff]367
[39fbd200]368 </sect2>
[a2912ff]369
[f45b1953]370</sect1>
Note: See TracBrowser for help on using the repository browser.