[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">
|
---|
[1d615c21] | 9 | <!ENTITY gtk2-md5sum "526a1008586094a2cbb4592fd3f9ee10">
|
---|
| 10 | <!ENTITY gtk2-size "12 MB">
|
---|
| 11 | <!ENTITY gtk2-buildsize "357 MB">
|
---|
| 12 | <!ENTITY gtk2-time "3.2 SBU (plus 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 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
[a2912ff] | 23 | <title>GTK+->k2-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 |
|
---|
[1ac8b4c6] | 38 | &lfs7a_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=">k2-download-http;"/>
|
---|
| 45 | </para>
|
---|
[39fbd200] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[b04a049] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url=">k2-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[39fbd200] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[b04a049] | 53 | <para>
|
---|
| 54 | Download MD5 sum: >k2-md5sum;
|
---|
| 55 | </para>
|
---|
[39fbd200] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[b04a049] | 58 | <para>
|
---|
| 59 | Download size: >k2-size;
|
---|
| 60 | </para>
|
---|
[39fbd200] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[b04a049] | 63 | <para>
|
---|
| 64 | Estimated disk space required: >k2-buildsize;
|
---|
| 65 | </para>
|
---|
[39fbd200] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[b04a049] | 68 | <para>
|
---|
| 69 | Estimated build time: >k2-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 |
|
---|
[b64a9cf0] | 96 | <note><para>If <xref linkend="gobject-introspection"/> was installed after
|
---|
| 97 | <xref linkend="atk"/>, <xref linkend="gdk-pixbuf"/>, and/or <xref
|
---|
| 98 | linkend="pango"/>, those packages will have to be rebuilt before this
|
---|
| 99 | package can be built. </para></note>
|
---|
| 100 |
|
---|
[b04a049] | 101 | <para condition="html" role="usernotes">
|
---|
| 102 | User Notes: <ulink url="&blfs-wiki;/gtk+2"/>
|
---|
| 103 | </para>
|
---|
[39fbd200] | 104 | </sect2>
|
---|
| 105 |
|
---|
| 106 | <sect2 role="installation">
|
---|
[a2912ff] | 107 | <title>Installation of GTK+ 2</title>
|
---|
[e08a501] | 108 |
|
---|
[b04a049] | 109 | <para>
|
---|
[a2912ff] | 110 | Install <application>GTK+ 2</application> by running the following
|
---|
[b04a049] | 111 | commands:
|
---|
| 112 | </para>
|
---|
[e08a501] | 113 |
|
---|
[6c6990c] | 114 | <screen><userinput>sed -e 's#l \(gtk-.*\).sgml#& -o \1#' \
|
---|
| 115 | -i docs/{faq,tutorial}/Makefile.in &&
|
---|
| 116 |
|
---|
[d278ced] | 117 | sed -i "/seems to be moved/s/^/#/" ltmain.sh &&
|
---|
| 118 |
|
---|
[6c6990c] | 119 | ./configure --prefix=/usr --sysconfdir=/etc &&
|
---|
| 120 |
|
---|
[39fbd200] | 121 | make</userinput></screen>
|
---|
| 122 |
|
---|
[b04a049] | 123 | <para>
|
---|
| 124 | To test the results, issue: <command>make check</command>. Note that you
|
---|
| 125 | must run the tests from a session with X Window Display capability (i.e.,
|
---|
| 126 | not a text-based terminal/console) as the tests attempt to open an X
|
---|
| 127 | window, and the tests can take an excessively long time. Using an X
|
---|
[90b5e47] | 128 | Window, the tests should take less than 0.3 SBU.
|
---|
[b04a049] | 129 | </para>
|
---|
[39fbd200] | 130 |
|
---|
[b04a049] | 131 | <para>
|
---|
| 132 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 133 | </para>
|
---|
[39fbd200] | 134 |
|
---|
[c1f0df84] | 135 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[39fbd200] | 136 |
|
---|
[b04a049] | 137 | <note>
|
---|
| 138 | <para>
|
---|
| 139 | If you installed the package on to your system using a
|
---|
[6c13e98] | 140 | <quote>DESTDIR</quote> method, an important file was not installed and
|
---|
[2ffe965] | 141 | must be copied and/or generated. Generate it using the following
|
---|
| 142 | command as the <systemitem class="username">root</systemitem> user:
|
---|
[b04a049] | 143 | </para>
|
---|
[8013fbe3] | 144 |
|
---|
[f7033437] | 145 | <screen role="root"><userinput>gtk-query-immodules-2.0 --update-cache</userinput></screen>
|
---|
[b04a049] | 146 | </note>
|
---|
[f7033437] | 147 |
|
---|
[39fbd200] | 148 | </sect2>
|
---|
| 149 |
|
---|
| 150 | <sect2 role="commands">
|
---|
| 151 | <title>Command Explanations</title>
|
---|
| 152 |
|
---|
[d278ced] | 153 | <para>
|
---|
| 154 | <command>sed -i ... ltmain.sh</command>: This sed silences several
|
---|
| 155 | useless and obsolete warnings generated from libtool.
|
---|
| 156 | </para>
|
---|
| 157 |
|
---|
[b04a049] | 158 | <para>
|
---|
| 159 | <command>sed -i 's#l \(gtk-.*\).sgml#& -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>
|
---|
[a8e34533] | 167 | <!--
|
---|
[216791a] | 168 | <para>
|
---|
| 169 | <command>sed -i -e 's#pltcheck.sh#$(NULL)#g' gtk/Makefile.in</command>:
|
---|
[6c6990c] | 170 | This <command>sed</command> disables one test known to fail.
|
---|
[34fb49a7] | 171 | Not necessary, if not running the tests.
|
---|
[a8e34533] | 172 | </para>-->
|
---|
[216791a] | 173 |
|
---|
[b04a049] | 174 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 175 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[a2912ff] | 176 |
|
---|
[bcef05b] | 177 | </sect2>
|
---|
| 178 |
|
---|
| 179 | <sect2 role="configuration">
|
---|
[a2912ff] | 180 | <title>Configuring GTK+ 2</title>
|
---|
[bcef05b] | 181 |
|
---|
| 182 | <sect3 id="gtk2-config">
|
---|
| 183 | <title>Config Files</title>
|
---|
[b04a049] | 184 | <para>
|
---|
[64cac4c] | 185 | <filename>~/.gtkrc-2.0</filename>,
|
---|
| 186 | <filename>/etc/gtk-2.0/gtkrc</filename>, and
|
---|
| 187 | <filename>/usr/share/gtk-2.0/gtkrc</filename>
|
---|
[b04a049] | 188 | </para>
|
---|
[f6deaf77] | 189 |
|
---|
[bcef05b] | 190 | <indexterm zone="gtk2 gtk2-config">
|
---|
| 191 | <primary sortas="e-AA.gtkrc-2.0">~/.gtkrc-2.0</primary>
|
---|
| 192 | </indexterm>
|
---|
[f6deaf77] | 193 |
|
---|
[bcef05b] | 194 | <indexterm zone="gtk2 gtk2-config">
|
---|
[64cac4c] | 195 | <primary sortas="e-etc-gtk-2.0-gtkrc">/etc/gtk-2.0/gtkrc</primary>
|
---|
| 196 | </indexterm>
|
---|
| 197 |
|
---|
| 198 | <indexterm zone="gtk2 gtk2-config">
|
---|
| 199 | <primary sortas="e-usr-share-gtk-2.0-gtkrc">/usr/share/gtk-2.0/gtkrc</primary>
|
---|
[bcef05b] | 200 | </indexterm>
|
---|
| 201 | </sect3>
|
---|
[1b9e36e] | 202 |
|
---|
[bcef05b] | 203 | <sect3><title>Configuration Information</title>
|
---|
| 204 |
|
---|
[b04a049] | 205 | <para>
|
---|
[a2912ff] | 206 | <application>GTK+ 2</application> themes change the way a
|
---|
| 207 | <application>GTK+ 2</application> application looks. A
|
---|
| 208 | <application>GTK+ 2</application> icon theme can be used to change the
|
---|
[ebee860] | 209 | icons that appear on the application's toolbar. If you have installed a
|
---|
[a2912ff] | 210 | <application>GTK+ 2</application> theme (such as <ulink
|
---|
[a0b39879] | 211 | url="http://ftp.gnome.org/pub/gnome/sources/gnome-themes/2.32/">gnome-themes</ulink> or
|
---|
| 212 | <xref linkend="gtk-engines"/>), a
|
---|
[080a144] | 213 | <application>GTK+</application> icon theme (such as <xref
|
---|
| 214 | linkend="adwaita-icon-theme"/>) you can set your preferences in
|
---|
[b04a049] | 215 | <filename>~/.gtkrc-2.0</filename>:
|
---|
| 216 | </para>
|
---|
[bcef05b] | 217 |
|
---|
[05d91c4] | 218 | <screen><userinput>cat > ~/.gtkrc-2.0 << "EOF"
|
---|
[bcef05b] | 219 | include "/usr/share/themes/<replaceable>Glider</replaceable>/gtk-2.0/gtkrc"
|
---|
| 220 | gtk-icon-theme-name = "<replaceable>hicolor</replaceable>"
|
---|
| 221 | EOF</userinput></screen>
|
---|
| 222 |
|
---|
[b04a049] | 223 | <para>
|
---|
| 224 | There are many more themes available at
|
---|
| 225 | <ulink url="http://gnome-look.org/">Gnome-Look.org</ulink> and other
|
---|
| 226 | places.
|
---|
| 227 | </para>
|
---|
[352d95c] | 228 |
|
---|
[b04a049] | 229 | <para>
|
---|
| 230 | Once you've settled on themes you like, you can (as the
|
---|
| 231 | <systemitem class="username">root</systemitem> user) make them the
|
---|
| 232 | default system wide:
|
---|
| 233 | </para>
|
---|
[bcef05b] | 234 |
|
---|
| 235 | <screen role="root"><userinput>cat > /etc/gtk-2.0/gtkrc << "EOF"
|
---|
| 236 | include "/usr/share/themes/<replaceable>Clearlooks</replaceable>/gtk-2.0/gtkrc"
|
---|
| 237 | gtk-icon-theme-name = "<replaceable>elementary</replaceable>"
|
---|
| 238 | EOF</userinput></screen>
|
---|
| 239 |
|
---|
[352d95c] | 240 | <para>
|
---|
[6988b80] | 241 | <xref linkend="lxappearance"/> is a <application>GTK+ 2</application>
|
---|
| 242 | application that can help you choose the themes you like.
|
---|
[b04a049] | 243 | </para>
|
---|
[bcef05b] | 244 | </sect3>
|
---|
[39fbd200] | 245 | </sect2>
|
---|
| 246 |
|
---|
| 247 | <sect2 role="content">
|
---|
| 248 | <title>Contents</title>
|
---|
| 249 |
|
---|
| 250 | <segmentedlist>
|
---|
| 251 | <segtitle>Installed Programs</segtitle>
|
---|
| 252 | <segtitle>Installed Libraries</segtitle>
|
---|
| 253 | <segtitle>Installed Directories</segtitle>
|
---|
| 254 |
|
---|
| 255 | <seglistitem>
|
---|
[b04a049] | 256 | <seg>
|
---|
[d8fe3e58] | 257 | gtk-builder-convert, gtk-demo, gtk-query-immodules-2.0, and
|
---|
[b04a049] | 258 | gtk-update-icon-cache
|
---|
| 259 | </seg>
|
---|
| 260 | <seg>
|
---|
[ca0d6adc] | 261 | libgailutil.so, libgdk-x11-2.0.so, and libgtk-x11-2.0.so
|
---|
[b04a049] | 262 | </seg>
|
---|
| 263 | <seg>
|
---|
[a2912ff] | 264 | /etc/gtk-2.0,
|
---|
[d8fe3e58] | 265 | /usr/include/{gail-1.0,gtk-2.0,gtk-unix-print-2.0},
|
---|
[a2912ff] | 266 | /usr/lib/gtk-2.0,
|
---|
[d8fe3e58] | 267 | /usr/share/doc/gtk+->k2-version;,
|
---|
[ca0d6adc] | 268 | /usr/share/gtk-2.0,
|
---|
[d8fe3e58] | 269 | /usr/share/gtk-doc/html/{gail-libgail-util,gdk2,gtk2}, and
|
---|
| 270 | /usr/share/themes/{Default,Emacs,Raleigh}
|
---|
[b04a049] | 271 | </seg>
|
---|
[39fbd200] | 272 | </seglistitem>
|
---|
| 273 | </segmentedlist>
|
---|
| 274 |
|
---|
| 275 | <variablelist>
|
---|
| 276 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 277 | <?dbfo list-presentation="list"?>
|
---|
| 278 | <?dbhtml list-presentation="table"?>
|
---|
| 279 |
|
---|
[49f7d8b] | 280 | <varlistentry id="gtk-builder-convert">
|
---|
| 281 | <term><command>gtk-builder-convert</command></term>
|
---|
| 282 | <listitem>
|
---|
[b04a049] | 283 | <para>
|
---|
| 284 | converts glade files into XML files which can be loaded with
|
---|
| 285 | GtkBuilder.
|
---|
| 286 | </para>
|
---|
[49f7d8b] | 287 | <indexterm zone="gtk2 gtk-builder-convert">
|
---|
| 288 | <primary
|
---|
| 289 | sortas="b-gtk-builder-convert">gtk-builder-convert</primary>
|
---|
| 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
|
---|
[b04a049] | 299 | provides code for the examples.
|
---|
| 300 | </para>
|
---|
[49f7d8b] | 301 | <indexterm zone="gtk2 gtk-demo">
|
---|
| 302 | <primary
|
---|
| 303 | sortas="b-gtk-demo">gtk-demo</primary>
|
---|
| 304 | </indexterm>
|
---|
| 305 | </listitem>
|
---|
| 306 | </varlistentry>
|
---|
| 307 |
|
---|
[39fbd200] | 308 | <varlistentry id="gtk-query-immodules-2.0">
|
---|
| 309 | <term><command>gtk-query-immodules-2.0</command></term>
|
---|
| 310 | <listitem>
|
---|
[b04a049] | 311 | <para>
|
---|
| 312 | collects information about loadable input method modules for
|
---|
[a2912ff] | 313 | <application>GTK+ 2</application> and writes it to standard output.
|
---|
[b04a049] | 314 | </para>
|
---|
[39fbd200] | 315 | <indexterm zone="gtk2 gtk-query-immodules-2.0">
|
---|
| 316 | <primary
|
---|
| 317 | 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>
|
---|
[b04a049] | 325 | <para>
|
---|
[90b5e47] | 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.
|
---|
[b04a049] | 330 | </para>
|
---|
[39fbd200] | 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 |
|
---|
[c1f0df84] | 337 | <varlistentry id="libgdk-x11-2">
|
---|
| 338 | <term><filename class="libraryfile">libgdk-x11-2.0.so</filename></term>
|
---|
[39fbd200] | 339 | <listitem>
|
---|
[b04a049] | 340 | <para>
|
---|
[c1f0df84] | 341 | contains functions that act as a wrapper around the low-level
|
---|
| 342 | drawing and windowing functions provided by the underlying graphics
|
---|
| 343 | system.
|
---|
[b04a049] | 344 | </para>
|
---|
[c1f0df84] | 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>
|
---|
[39fbd200] | 360 | </indexterm>
|
---|
| 361 | </listitem>
|
---|
| 362 | </varlistentry>
|
---|
[a2912ff] | 363 |
|
---|
[39fbd200] | 364 | </variablelist>
|
---|
[a2912ff] | 365 |
|
---|
[39fbd200] | 366 | </sect2>
|
---|
[a2912ff] | 367 |
|
---|
[f45b1953] | 368 | </sect1>
|
---|