[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">
|
---|
[a1025cc] | 9 | <!ENTITY gtk2-md5sum "8fb5c413be698169fedee774ec06bc8c">
|
---|
| 10 | <!ENTITY gtk2-size "13 MB">
|
---|
[b04a049] | 11 | <!ENTITY gtk2-buildsize "350 MB">
|
---|
| 12 | <!ENTITY gtk2-time "3.5 SBU">
|
---|
[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">
|
---|
[89488b4] | 26 | <primary sortas="a-gtk2">gtk2</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 |
|
---|
[2839d1e] | 38 | &lfs72_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"/>,
|
---|
| 79 | <xref linkend="cairo"/>,
|
---|
[b04a049] | 80 | <xref linkend="gdk-pixbuf"/>,
|
---|
| 81 | <xref linkend="pango"/> and
|
---|
[a2912ff] | 82 | <xref linkend="xorg7-lib"/>
|
---|
[b04a049] | 83 | </para>
|
---|
[39fbd200] | 84 |
|
---|
[f6deaf77] | 85 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[b04a049] | 86 | <para role="recommended">
|
---|
| 87 | <xref linkend="hicolor-icon-theme"/>
|
---|
| 88 | </para>
|
---|
[f6deaf77] | 89 |
|
---|
[39fbd200] | 90 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[b04a049] | 91 | <para role="optional">
|
---|
| 92 | <xref linkend="cups"/>,
|
---|
| 93 | <xref linkend="docbook-utils"/>,
|
---|
| 94 | <xref linkend="gobject-introspection"/> and
|
---|
[a2912ff] | 95 | <xref linkend="gtk-doc"/>
|
---|
[b04a049] | 96 | </para>
|
---|
| 97 |
|
---|
| 98 | <para condition="html" role="usernotes">
|
---|
| 99 | User Notes: <ulink url="&blfs-wiki;/gtk+2"/>
|
---|
| 100 | </para>
|
---|
[39fbd200] | 101 | </sect2>
|
---|
| 102 |
|
---|
| 103 | <sect2 role="installation">
|
---|
[a2912ff] | 104 | <title>Installation of GTK+ 2</title>
|
---|
[e08a501] | 105 |
|
---|
[b04a049] | 106 | <para>
|
---|
[a2912ff] | 107 | Install <application>GTK+ 2</application> by running the following
|
---|
[b04a049] | 108 | commands:
|
---|
| 109 | </para>
|
---|
[e08a501] | 110 |
|
---|
[b04a049] | 111 | <screen><userinput>sed -i 's#l \(gtk-.*\).sgml#& -o \1#' docs/{faq,tutorial}/Makefile.in &&
|
---|
| 112 | sed -i 's#.*@man_#man_#' docs/reference/gtk/Makefile.in &&
|
---|
| 113 | ./configure --prefix=/usr --sysconfdir=/etc &&
|
---|
[39fbd200] | 114 | make</userinput></screen>
|
---|
| 115 |
|
---|
[b04a049] | 116 | <para>
|
---|
| 117 | To test the results, issue: <command>make check</command>. Note that you
|
---|
| 118 | must run the tests from a session with X Window Display capability (i.e.,
|
---|
| 119 | not a text-based terminal/console) as the tests attempt to open an X
|
---|
| 120 | window, and the tests can take an excessively long time. Using an X
|
---|
| 121 | Window, the tests should take less than 0.3 SBUs
|
---|
| 122 | </para>
|
---|
[39fbd200] | 123 |
|
---|
[b04a049] | 124 | <para>
|
---|
| 125 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 126 | </para>
|
---|
[39fbd200] | 127 |
|
---|
[b04a049] | 128 | <screen role="root"><userinput>make install &&
|
---|
| 129 | mkdir -pv /usr/share/doc/gtk+->k2-version; &&
|
---|
[e08a501] | 130 | cp -v -R docs/faq/html /usr/share/doc/gtk+->k2-version;/faq &&
|
---|
[57a0e04] | 131 | cp -v -R docs/tutorial/html /usr/share/doc/gtk+->k2-version;/tutorial &&
|
---|
[5d4e5c7] | 132 | install -v -m644 docs/*.txt /usr/share/doc/gtk+->k2-version;</userinput></screen>
|
---|
[39fbd200] | 133 |
|
---|
[b04a049] | 134 | <note>
|
---|
| 135 | <para>
|
---|
| 136 | If you installed the package on to your system using a
|
---|
[2ffe965] | 137 | <quote>DESTDIR</quote> method then 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:
|
---|
[b04a049] | 140 | </para>
|
---|
[8013fbe3] | 141 |
|
---|
[2ffe965] | 142 | <screen role="root"><userinput>gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules</userinput></screen>
|
---|
[b04a049] | 143 | </note>
|
---|
[39fbd200] | 144 | </sect2>
|
---|
| 145 |
|
---|
| 146 | <sect2 role="commands">
|
---|
| 147 | <title>Command Explanations</title>
|
---|
| 148 |
|
---|
[b04a049] | 149 | <para>
|
---|
| 150 | <command>sed -i 's#l \(gtk-.*\).sgml#& -o \1#'
|
---|
| 151 | docs/{faq,tutorial}/Makefile.in</command>: If you have
|
---|
| 152 | <xref linkend="docbook-utils"/> installed (specifically, if configure
|
---|
[601a838] | 153 | finds <command>db2html</command>) then it will try to use it to rebuild
|
---|
| 154 | some of its HTML documentation and fail due to bugs in some of the
|
---|
| 155 | <filename>Makefile</filename>s. This <command>sed</command> fixes the
|
---|
| 156 | <filename>Makefile</filename>s.
|
---|
[b04a049] | 157 | </para>
|
---|
| 158 |
|
---|
| 159 | <para>
|
---|
[a2912ff] | 160 | <command>sed -i 's#.*@man_#man_#' docs/reference/gtk/Makefile.in</command>:
|
---|
[601a838] | 161 | This <command>sed</command> fixes one of the <filename>Makefile</filename>s
|
---|
| 162 | so it installs the man pages for <command>gtk-builder-convert</command>,
|
---|
| 163 | <command>gtk-query-immodules-2.0</command>, and
|
---|
| 164 | <command>gtk-update-icon-cache</command>.
|
---|
[b04a049] | 165 | </para>
|
---|
| 166 |
|
---|
| 167 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 168 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[a2912ff] | 169 |
|
---|
[bcef05b] | 170 | </sect2>
|
---|
| 171 |
|
---|
| 172 | <sect2 role="configuration">
|
---|
[a2912ff] | 173 | <title>Configuring GTK+ 2</title>
|
---|
[bcef05b] | 174 |
|
---|
| 175 | <sect3 id="gtk2-config">
|
---|
| 176 | <title>Config Files</title>
|
---|
[b04a049] | 177 | <para>
|
---|
| 178 | <filename>~/.gtkrc-2.0</filename> and
|
---|
| 179 | <filename>/etc/gtk-2.0/gtkrc</filename>
|
---|
| 180 | </para>
|
---|
[f6deaf77] | 181 |
|
---|
[bcef05b] | 182 | <indexterm zone="gtk2 gtk2-config">
|
---|
| 183 | <primary sortas="e-AA.gtkrc-2.0">~/.gtkrc-2.0</primary>
|
---|
| 184 | </indexterm>
|
---|
[f6deaf77] | 185 |
|
---|
[bcef05b] | 186 | <indexterm zone="gtk2 gtk2-config">
|
---|
| 187 | <primary sortas="e-etc-path-gtkrc">/etc/gtk-2.0/gtkrc</primary>
|
---|
| 188 | </indexterm>
|
---|
| 189 | </sect3>
|
---|
[1b9e36e] | 190 |
|
---|
[bcef05b] | 191 | <sect3><title>Configuration Information</title>
|
---|
| 192 |
|
---|
[b04a049] | 193 | <para>
|
---|
[a2912ff] | 194 | <application>GTK+ 2</application> themes change the way a
|
---|
| 195 | <application>GTK+ 2</application> application looks. A
|
---|
| 196 | <application>GTK+ 2</application> icon theme can be used to change the
|
---|
[ebee860] | 197 | icons that appear on the application's toolbar. If you have installed a
|
---|
[a2912ff] | 198 | <application>GTK+ 2</application> theme (such as <ulink
|
---|
[b04a049] | 199 | url="http://ftp.gnome.org/pub/gnome/sources/gnome-themes/2.32/">gnome-themes</ulink>
|
---|
[ebee860] | 200 | (requires <xref linkend="gtk-engines"/>)) or a
|
---|
[a2912ff] | 201 | <application>GTK+ 2</application> icon theme (such as
|
---|
[b04a049] | 202 | <xref linkend="gnome-icon-theme"/>) you can set your preferences in
|
---|
| 203 | <filename>~/.gtkrc-2.0</filename>:
|
---|
| 204 | </para>
|
---|
[bcef05b] | 205 |
|
---|
[05d91c4] | 206 | <screen><userinput>cat > ~/.gtkrc-2.0 << "EOF"
|
---|
[bcef05b] | 207 | include "/usr/share/themes/<replaceable>Glider</replaceable>/gtk-2.0/gtkrc"
|
---|
| 208 | gtk-icon-theme-name = "<replaceable>hicolor</replaceable>"
|
---|
| 209 | EOF</userinput></screen>
|
---|
| 210 |
|
---|
[b04a049] | 211 | <para>
|
---|
| 212 | There are many more themes available at
|
---|
| 213 | <ulink url="http://gnome-look.org/">Gnome-Look.org</ulink> and other
|
---|
| 214 | places.
|
---|
| 215 | </para>
|
---|
[352d95c] | 216 |
|
---|
[b04a049] | 217 | <para>
|
---|
| 218 | Once you've settled on themes you like, you can (as the
|
---|
| 219 | <systemitem class="username">root</systemitem> user) make them the
|
---|
| 220 | default system wide:
|
---|
| 221 | </para>
|
---|
[bcef05b] | 222 |
|
---|
| 223 | <screen role="root"><userinput>cat > /etc/gtk-2.0/gtkrc << "EOF"
|
---|
| 224 | include "/usr/share/themes/<replaceable>Clearlooks</replaceable>/gtk-2.0/gtkrc"
|
---|
| 225 | gtk-icon-theme-name = "<replaceable>elementary</replaceable>"
|
---|
| 226 | EOF</userinput></screen>
|
---|
| 227 |
|
---|
[352d95c] | 228 | <para>
|
---|
[b04a049] | 229 | <ulink url="http://sourceforge.net/projects/lxde/files/LXAppearance/">
|
---|
[a2912ff] | 230 | LXAppearance</ulink> is a <application>GTK+ 2</application> application
|
---|
[b04a049] | 231 | that can help you choose the themes you like.
|
---|
| 232 | </para>
|
---|
[bcef05b] | 233 | </sect3>
|
---|
[39fbd200] | 234 | </sect2>
|
---|
| 235 |
|
---|
| 236 | <sect2 role="content">
|
---|
| 237 | <title>Contents</title>
|
---|
| 238 |
|
---|
| 239 | <segmentedlist>
|
---|
| 240 | <segtitle>Installed Programs</segtitle>
|
---|
| 241 | <segtitle>Installed Libraries</segtitle>
|
---|
| 242 | <segtitle>Installed Directories</segtitle>
|
---|
| 243 |
|
---|
| 244 | <seglistitem>
|
---|
[b04a049] | 245 | <seg>
|
---|
| 246 | gtk-builder-convert, gtk-demo, gtk-query-immodules-2.0 and
|
---|
| 247 | gtk-update-icon-cache
|
---|
| 248 | </seg>
|
---|
| 249 | <seg>
|
---|
[a2912ff] | 250 | libgailutil.so, libgdk-x11-2.0.so and
|
---|
[b04a049] | 251 | libgtk-x11-2.0.so
|
---|
| 252 | </seg>
|
---|
| 253 | <seg>
|
---|
[a2912ff] | 254 | /etc/gtk-2.0,
|
---|
| 255 | /usr/include/gail-1.0,
|
---|
| 256 | /usr/include/gtk-2.0,
|
---|
| 257 | /usr/include/gtk-unix-print-2.0,
|
---|
| 258 | /usr/lib/gtk-2.0,
|
---|
[b04a049] | 259 | /usr/share/doc/gtk+->k2-version;,
|
---|
| 260 | /usr/share/gtk-doc/html/gail-libgail-util,
|
---|
[a2912ff] | 261 | /usr/share/gtk-doc/html/gtk,
|
---|
| 262 | /usr/share/themes/Default,
|
---|
| 263 | /usr/share/themes/Emacs and
|
---|
[b04a049] | 264 | /usr/share/themes/Raleigh
|
---|
| 265 | </seg>
|
---|
[39fbd200] | 266 | </seglistitem>
|
---|
| 267 | </segmentedlist>
|
---|
| 268 |
|
---|
| 269 | <variablelist>
|
---|
| 270 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 271 | <?dbfo list-presentation="list"?>
|
---|
| 272 | <?dbhtml list-presentation="table"?>
|
---|
| 273 |
|
---|
[49f7d8b] | 274 | <varlistentry id="gtk-builder-convert">
|
---|
| 275 | <term><command>gtk-builder-convert</command></term>
|
---|
| 276 | <listitem>
|
---|
[b04a049] | 277 | <para>
|
---|
| 278 | converts glade files into XML files which can be loaded with
|
---|
| 279 | GtkBuilder.
|
---|
| 280 | </para>
|
---|
[49f7d8b] | 281 | <indexterm zone="gtk2 gtk-builder-convert">
|
---|
| 282 | <primary
|
---|
| 283 | sortas="b-gtk-builder-convert">gtk-builder-convert</primary>
|
---|
| 284 | </indexterm>
|
---|
| 285 | </listitem>
|
---|
| 286 | </varlistentry>
|
---|
| 287 |
|
---|
| 288 | <varlistentry id="gtk-demo">
|
---|
| 289 | <term><command>gtk-demo</command></term>
|
---|
| 290 | <listitem>
|
---|
[b04a049] | 291 | <para>
|
---|
[a2912ff] | 292 | demonstrates <application>GTK+ 2</application> functionality and
|
---|
[b04a049] | 293 | provides code for the examples.
|
---|
| 294 | </para>
|
---|
[49f7d8b] | 295 | <indexterm zone="gtk2 gtk-demo">
|
---|
| 296 | <primary
|
---|
| 297 | sortas="b-gtk-demo">gtk-demo</primary>
|
---|
| 298 | </indexterm>
|
---|
| 299 | </listitem>
|
---|
| 300 | </varlistentry>
|
---|
| 301 |
|
---|
[39fbd200] | 302 | <varlistentry id="gtk-query-immodules-2.0">
|
---|
| 303 | <term><command>gtk-query-immodules-2.0</command></term>
|
---|
| 304 | <listitem>
|
---|
[b04a049] | 305 | <para>
|
---|
| 306 | collects information about loadable input method modules for
|
---|
[a2912ff] | 307 | <application>GTK+ 2</application> and writes it to standard output.
|
---|
[b04a049] | 308 | </para>
|
---|
[39fbd200] | 309 | <indexterm zone="gtk2 gtk-query-immodules-2.0">
|
---|
| 310 | <primary
|
---|
| 311 | sortas="b-gtk-query-immodules-2.0">gtk-query-immodules-2.0</primary>
|
---|
| 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>
|
---|
| 320 | creates mmap()able cache files for icon themes.
|
---|
| 321 | </para>
|
---|
[39fbd200] | 322 | <indexterm zone="gtk2 gtk-update-icon-cache">
|
---|
| 323 | <primary sortas="b-gtk-update-icon-cache">gtk-update-icon-cache</primary>
|
---|
| 324 | </indexterm>
|
---|
| 325 | </listitem>
|
---|
| 326 | </varlistentry>
|
---|
| 327 |
|
---|
[89488b4] | 328 | <varlistentry id="gtk2libs">
|
---|
[a2912ff] | 329 | <term>GTK+ 2 Libraries</term>
|
---|
[39fbd200] | 330 | <listitem>
|
---|
[b04a049] | 331 | <para>
|
---|
| 332 | provide an API to implement graphical user interfaces.
|
---|
| 333 | </para>
|
---|
[89488b4] | 334 | <indexterm zone="gtk2 gtk2libs">
|
---|
[a2912ff] | 335 | <primary sortas="c-gtk2libs">GTK+ 2 Libraries</primary>
|
---|
[39fbd200] | 336 | </indexterm>
|
---|
| 337 | </listitem>
|
---|
| 338 | </varlistentry>
|
---|
[a2912ff] | 339 |
|
---|
[39fbd200] | 340 | </variablelist>
|
---|
[a2912ff] | 341 |
|
---|
[39fbd200] | 342 | </sect2>
|
---|
[a2912ff] | 343 |
|
---|
[f45b1953] | 344 | </sect1>
|
---|