source: x/lib/gtk+3.xml@ 87dcb828

gnome
Last change on this file since 87dcb828 was 87dcb828, checked in by Christopher Gregory <cjg@…>, 10 years ago

Changed gtk+3 page to include support for wayland. Changed ulink for wayland to an xref and changed ulink for

libxkbcommon to an xref.

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

  • Property mode set to 100644
File size: 13.7 KB
Line 
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 gtk3-download-http "&gnome-download-http;/gtk+/3.12/gtk+-&gtk3-version;.tar.xz">
8 <!ENTITY gtk3-download-ftp "&gnome-download-ftp;/gtk+/3.12/gtk+-&gtk3-version;.tar.xz">
9 <!ENTITY gtk3-md5sum "0d6d8f9f79132b3b47475d047b369b1c">
10 <!ENTITY gtk3-size "15 MB">
11 <!ENTITY gtk3-buildsize "368 MB (additional 4 MB for the test suite and 19 MB to rebuild the docs)">
12 <!ENTITY gtk3-time "4.6 SBU (additional 0.4 SBU for the test suite and 3.5 SBU to rebuild the docs)">
13]>
14
15<sect1 id="gtk3" xreflabel="GTK+-&gtk3-version;">
16 <?dbhtml filename="gtk3.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>GTK+-&gtk3-version;</title>
24
25 <indexterm zone="gtk3">
26 <primary sortas="a-GTK+3">GTK+3</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to GTK+ 3</title>
31
32 <para>
33 The <application>GTK+ 3</application> package contains the
34 libraries used for creating graphical user interfaces for
35 applications.
36 </para>
37
38 &lfs75_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&gtk3-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&gtk3-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &gtk3-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &gtk3-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &gtk3-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &gtk3-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">GTK+ 3 Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Required</bridgehead>
77 <para role="required">
78 <xref linkend="at-spi2-atk"/>,
79 <xref linkend="gdk-pixbuf"/>, and
80 <xref linkend="pango"/>
81 </para>
82
83 <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
84 <para role="optional">
85 <xref linkend="gobject-introspection"/>
86 </para>
87
88 <bridgehead renderas="sect4">Optional</bridgehead>
89 <para role="optional">
90 <xref linkend="colord"/>,
91 <xref linkend="cups"/>,
92 <xref linkend="docbook-utils"/>,
93 <xref linkend="gtk-doc"/>,
94 <xref linkend="json-glib"/>,
95 <ulink url="http://ftp.acc.umu.se/pub/gnome/sources/rest/">rest</ulink>,
96 <xref linkend="libxkbcommon"/>, (required for wayland gdk backend support) and
97 <xref linkend="wayland"/>
98 </para>
99
100 <para condition="html" role="usernotes">
101 User Notes: <ulink url="&blfs-wiki;/gtk3"/>
102 </para>
103 </sect2>
104
105 <sect2 role="installation">
106 <title>Installation of GTK+ 3</title>
107
108 <note>
109 <para>
110 <application>GTK+ 3</application> will overwrite
111 <command>gtk-update-icon-cache</command> from <xref linkend="gtk2"/> if
112 it is installed. There is nothing wrong about that assuming that both
113 programs provide same functionality. If you wish to keep one from
114 <application>GTK+ 2</application> you can add
115 <option>--enable-gtk2-dependency</option> to the
116 <command>configure</command> command.
117 </para>
118 </note>
119
120 <para>
121 Install <application>GTK+ 3</application> by running the following
122 commands:
123 </para>
124
125<screen><userinput>./configure --prefix=/usr \
126 --sysconfdir=/etc \
127 --enable-broadway-backend \
128 --enable-x11-backend \
129 --enable-wayland-backend &amp;&amp;
130make</userinput></screen>
131
132 <para>
133 Some tests fail if
134 <filename>/usr/share/glib-2.0/schemas/gschemas.compiled</filename> is not
135 found. If you wish to run the test suite, create (or update) the file
136 using the following command as the
137 <systemitem class="username">root</systemitem> user:
138 </para>
139
140<screen role="root"><userinput>glib-compile-schemas /usr/share/glib-2.0/schemas</userinput></screen>
141
142 <para>
143 To test the results, issue <command>make check</command>.
144 </para>
145
146 <para>
147 Now, as the <systemitem class="username">root</systemitem> user:
148 </para>
149
150<screen role="root"><userinput>make install</userinput></screen>
151
152 <note>
153 <para>
154 If you installed the package on to your system using a
155 <quote>DESTDIR</quote> method, an important file was not installed and
156 must be copied and/or generated. Generate it using the following
157 command as the <systemitem class="username">root</systemitem> user:
158 </para>
159
160<screen role="root"><userinput>gtk-query-immodules-3.0 --update-cache</userinput></screen>
161 </note>
162
163 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
164 href="../../xincludes/gsettings-destdir.xml"/>
165 </sect2>
166
167 <sect2 role="commands">
168 <title>Command Explanations</title>
169
170 <para>
171 <option>--enable-broadway-backend</option>: switch enables the HTML5 GTK backend.
172 </para>
173
174 <para>
175 <option>--enable-x11-backend</option>: switch enables the X11 GDK backend.
176 </para>
177
178 <para>
179 <option>--enable-wayland-backend</option>: switch enables the Wayland GDK backend.
180 </para>
181
182 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
183 href="../../xincludes/gtk-doc-rebuild.xml"/>
184
185 </sect2>
186
187 <sect2 role="configuration">
188 <title>Configuring GTK+ 3</title>
189
190 <sect3 id="gtk3-config">
191 <title>Config Files</title>
192 <para>
193 <filename>~/.config/gtk-3.0/settings.ini</filename> and
194 <filename>/etc/gtk-3.0/settings.ini</filename>
195 </para>
196
197 <indexterm zone="gtk3 gtk3-config">
198 <primary sortas="e-AA.home-settings.ini">~/.config/gtk-3.0/settings.ini</primary>
199 </indexterm>
200
201 <indexterm zone="gtk3 gtk3-config">
202 <primary sortas="e-etc-path-settings.ini">/etc/gtk-3.0/settings.ini</primary>
203 </indexterm>
204 </sect3>
205
206 <sect3><title>Configuration Information</title>
207
208 <para>
209 <application>GTK+ 3</application> themes change the way a
210 <application>GTK+ 3</application> application looks. An icon theme can be
211 used to change the icons that appear on the application's toolbar. If
212 you have installed a <application>GTK+ 3</application> theme (eg
213 <xref linkend="gnome-themes-standard"/> or an icon theme (such as
214 <xref linkend="gnome-icon-theme"/>) you can set your prefences in
215 <filename>~/.config/gtk-3.0/settings.ini</filename>. Eg:
216 </para>
217
218<screen><userinput>mkdir -p ~/.config/gtk-3.0 &amp;&amp;
219cat &gt; ~/.config/gtk-3.0/settings.ini &lt;&lt; "EOF"
220[Settings]
221gtk-theme-name = <replaceable>Adwaita</replaceable>
222gtk-fallback-icon-theme = <replaceable>gnome</replaceable>
223EOF</userinput></screen>
224
225 <para>
226 There are many more themes available at
227 <ulink url="http://gnome-look.org/"/> and other 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 &gt; /etc/gtk-3.0/settings.ini &lt;&lt; "EOF"
237[Settings]
238gtk-theme-name = <replaceable>Clearwaita</replaceable>
239gtk-fallback-icon-theme = <replaceable>elementary</replaceable>
240EOF</userinput></screen>
241 </sect3>
242 </sect2>
243
244 <sect2 role="content">
245 <title>Contents</title>
246
247 <segmentedlist>
248 <segtitle>Installed Programs</segtitle>
249 <segtitle>Installed Libraries</segtitle>
250 <segtitle>Installed Directories</segtitle>
251
252 <seglistitem>
253 <seg>
254 broadwayd,
255 gtk-launch,
256 gtk-query-immodules-3.0,
257 gtk-update-icon-cache,
258 gtk3-demo,
259 gtk3-demo-application, and
260 gtk3-widget-factory
261 </seg>
262 <seg>
263 libgailutil-3.so, libgdk-3.so, and libgtk-3.so, and several under
264 /usr/lib/gtk-3.0/3.0.0/{immodules,printbackends}
265
266 </seg>
267 <seg>
268 /etc/gtk-3.0,
269 /usr/include/gail-3.0,
270 /usr/include/gtk-3.0,
271 /usr/lib/gtk-3.0,
272 /usr/share/gtk-3.0,
273 /usr/share/gtk-doc/html/{gail-libgail-util3,gdk3,gtk3}, and
274 /usr/share/themes/{Default,Emacs}/gtk-3.0
275 </seg>
276 </seglistitem>
277 </segmentedlist>
278
279 <variablelist>
280 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
281 <?dbfo list-presentation="list"?>
282 <?dbhtml list-presentation="table"?>
283
284 <varlistentry id="broadwayd">
285 <term><command>broadwayd</command></term>
286 <listitem>
287 <para>
288 provides support for displaying
289 <application>GTK+ 3</application> applications in a web browser,
290 using HTML5 and web sockets.
291 </para>
292 <indexterm zone="gtk3 broadwayd">
293 <primary sortas="b-broadwayd">broadwayd</primary>
294 </indexterm>
295 </listitem>
296 </varlistentry>
297
298 <varlistentry id="gtk-launch">
299 <term><command>gtk-launch</command></term>
300 <listitem>
301 <para>
302 launches an application using the given name. The name should match
303 application desktop file name, as residing in
304 <filename class="directory">/usr/share/application</filename>, with
305 or without the '.desktop' suffix.
306 </para>
307 <indexterm zone="gtk3 gtk-launch">
308 <primary sortas="b-gtk-launch">gtk-launch</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 <varlistentry id="gtk-query-immodules-3.0">
314 <term><command>gtk-query-immodules-3.0</command></term>
315 <listitem>
316 <para>
317 collects information about loadable input method modules for
318 <application>GTK+ 3</application> and writes it to the default cache
319 file location, or to standard output.
320 </para>
321 <indexterm zone="gtk3 gtk-query-immodules-3.0">
322 <primary sortas="b-gtk-query-immodules-3.0">gtk-query-immodules-3.0</primary>
323 </indexterm>
324 </listitem>
325 </varlistentry>
326
327 <varlistentry id="gtk-update-icon-cache3">
328 <term><command>gtk-update-icon-cache</command></term>
329 <listitem>
330 <para>
331 is an icon theme caching utility that creates mmap()able cache files
332 for icon themes.
333 </para>
334 <indexterm zone="gtk3 gtk-update-icon-cache3">
335 <primary sortas="b-gtk-update-icon-cache3">gtk-update-icon-cache</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
340 <varlistentry id="gtk3-demo">
341 <term><command>gtk3-demo</command></term>
342 <listitem>
343 <para>
344 is a simple program that demonstrates some of the things that can be
345 done with <application>GTK+ 3</application>
346 </para>
347 <indexterm zone="gtk3 gtk3-demo">
348 <primary sortas="b-gtk3-demo">gtk3-demo</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
352
353 <varlistentry id="gtk3-demo-application">
354 <term><command>gtk3-demo-application</command></term>
355 <listitem>
356 <para>
357 is a simple <application>GTK+ 3</application> application.
358 </para>
359 <indexterm zone="gtk3 gtk3-demo-application">
360 <primary sortas="b-gtk3-demo-application">gtk3-demo-application</primary>
361 </indexterm>
362 </listitem>
363 </varlistentry>
364
365 <varlistentry id="gtk3-widget-factory">
366 <term><command>gtk3-widget-factory</command></term>
367 <listitem>
368 <para>
369 is a program to view <application>GTK+ 3</application> themes and widgets.
370 </para>
371 <indexterm zone="gtk3 gtk3-widget-factory">
372 <primary sortas="b-gtk3-widget-factory">gtk3-widget-factory</primary>
373 </indexterm>
374 </listitem>
375 </varlistentry>
376
377 <varlistentry id="libgailutil-3">
378 <term><filename class="libraryfile">libgailutil-3.so</filename></term>
379 <listitem>
380 <para>
381 contains functions that implements the accessibility interfaces
382 defined by the <application>GNOME</application> Accessibility
383 Toolkit.
384 </para>
385 <indexterm zone="gtk3 libgailutil-3">
386 <primary sortas="c-libgailutil-3">libgailutil-3.so</primary>
387 </indexterm>
388 </listitem>
389 </varlistentry>
390
391 <varlistentry id="libgdk-3">
392 <term><filename class="libraryfile">libgdk-3.so</filename></term>
393 <listitem>
394 <para>
395 contains functions that act as a wrapper around the low-level
396 drawing and windowing functions provided by the underlying graphics
397 system.
398 </para>
399 <indexterm zone="gtk3 libgdk-3">
400 <primary sortas="c-libgdk-3">libgdk-3.so</primary>
401 </indexterm>
402 </listitem>
403 </varlistentry>
404
405 <varlistentry id="libgtk-3">
406 <term><filename class="libraryfile">libgtk-3.so</filename></term>
407 <listitem>
408 <para>
409 contains functions that provide an API to implement graphical user
410 interfaces.
411 </para>
412 <indexterm zone="gtk3 libgtk-3">
413 <primary sortas="c-libgtk-3">libgtk-3.so</primary>
414 </indexterm>
415 </listitem>
416 </varlistentry>
417
418 </variablelist>
419
420 </sect2>
421
422</sect1>
Note: See TracBrowser for help on using the repository browser.