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