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