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