[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 |
|
---|
[b04a049] | 7 | <!ENTITY gtk2-download-http
|
---|
| 8 | "&gnome-download-http;/gtk+/2.24/gtk+->k2-version;.tar.xz">
|
---|
| 9 | <!ENTITY gtk2-download-ftp
|
---|
| 10 | "&gnome-download-ftp;/gtk+/2.24/gtk+->k2-version;.tar.xz">
|
---|
| 11 | <!ENTITY gtk2-md5sum "7fdcb407dd174010a695b555bf9b65e2">
|
---|
| 12 | <!ENTITY gtk2-size "12.6 MB">
|
---|
| 13 | <!ENTITY gtk2-buildsize "350 MB">
|
---|
| 14 | <!ENTITY gtk2-time "3.5 SBU">
|
---|
[feeb99a] | 15 | ]>
|
---|
| 16 |
|
---|
[89488b4] | 17 | <sect1 id="gtk2" xreflabel="gtk+->k2-version;">
|
---|
[39fbd200] | 18 | <?dbhtml filename="gtk2.html" ?>
|
---|
| 19 |
|
---|
| 20 | <sect1info>
|
---|
| 21 | <othername>$LastChangedBy$</othername>
|
---|
| 22 | <date>$Date$</date>
|
---|
| 23 | </sect1info>
|
---|
| 24 |
|
---|
[b04a049] | 25 | <title>Gtk+->k2-version;</title>
|
---|
[39fbd200] | 26 |
|
---|
| 27 | <indexterm zone="gtk2">
|
---|
[89488b4] | 28 | <primary sortas="a-gtk2">gtk2</primary>
|
---|
[39fbd200] | 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
[b04a049] | 32 | <title>Introduction to Gtk+-2</title>
|
---|
[39fbd200] | 33 |
|
---|
[b04a049] | 34 | <para>
|
---|
| 35 | The <application>Gtk+-2</application> package contains
|
---|
| 36 | <application>|Gtk+-2</application> libraries. These are useful for
|
---|
| 37 | creating graphical user interfaces for applications.
|
---|
| 38 | </para>
|
---|
[39fbd200] | 39 |
|
---|
[4c77a949] | 40 | &lfs71_checked;
|
---|
[a10f4a7] | 41 |
|
---|
[39fbd200] | 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
[b04a049] | 45 | <para>
|
---|
| 46 | Download (HTTP): <ulink url=">k2-download-http;"/>
|
---|
| 47 | </para>
|
---|
[39fbd200] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[b04a049] | 50 | <para>
|
---|
| 51 | Download (FTP): <ulink url=">k2-download-ftp;"/>
|
---|
| 52 | </para>
|
---|
[39fbd200] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[b04a049] | 55 | <para>
|
---|
| 56 | Download MD5 sum: >k2-md5sum;
|
---|
| 57 | </para>
|
---|
[39fbd200] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[b04a049] | 60 | <para>
|
---|
| 61 | Download size: >k2-size;
|
---|
| 62 | </para>
|
---|
[39fbd200] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[b04a049] | 65 | <para>
|
---|
| 66 | Estimated disk space required: >k2-buildsize;
|
---|
| 67 | </para>
|
---|
[39fbd200] | 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
[b04a049] | 70 | <para>
|
---|
| 71 | Estimated build time: >k2-time;
|
---|
| 72 | </para>
|
---|
[39fbd200] | 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
| 75 |
|
---|
[b04a049] | 76 | <bridgehead renderas="sect3">Gtk+-2 Dependencies</bridgehead>
|
---|
[39fbd200] | 77 |
|
---|
| 78 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[b04a049] | 79 | <para role="required">
|
---|
| 80 | <xref linkend="cairo"/> (compiled with libX11 support),
|
---|
| 81 | <xref linkend="gdk-pixbuf"/>,
|
---|
| 82 | the <xref linkend="x-window-system"/> (specifically, libX11, libXext and
|
---|
| 83 | libXrender),
|
---|
| 84 | <xref linkend="pango"/> and
|
---|
| 85 | <xref linkend="atk"/>
|
---|
| 86 | </para>
|
---|
[39fbd200] | 87 |
|
---|
[f6deaf77] | 88 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[b04a049] | 89 | <para role="recommended">
|
---|
| 90 | <xref linkend="hicolor-icon-theme"/>
|
---|
| 91 | </para>
|
---|
[f6deaf77] | 92 |
|
---|
[49f7d8b] | 93 | <!-- hicolor-icon-theme is required for the test suite -->
|
---|
| 94 |
|
---|
[39fbd200] | 95 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[b04a049] | 96 | <para role="optional">
|
---|
| 97 | <xref linkend="cups"/>,
|
---|
| 98 | <xref linkend="docbook-utils"/>,
|
---|
| 99 | <!-- <ulink url="http://beagle-project.org/Main_Page">libbeagle</ulink>,
|
---|
| 100 | This beagle page appears to be just adverts -->
|
---|
| 101 | <!-- <ulink url="http://sourceforge.net/projects/openprinting/">papi</ulink>,
|
---|
| 102 | I think papi is just for solaris. It was a bugger to compile... -->
|
---|
| 103 | <!-- <ulink url="http://www.tracker-project.org/">Tracker</ulink>
|
---|
| 104 | This tracker page is a dead link -->
|
---|
| 105 | <xref linkend="gobject-introspection"/> and
|
---|
| 106 | <xref linkend="gtk-doc"/>.
|
---|
| 107 | </para>
|
---|
| 108 |
|
---|
| 109 | <para condition="html" role="usernotes">
|
---|
| 110 | User Notes: <ulink url="&blfs-wiki;/gtk+2"/>
|
---|
| 111 | </para>
|
---|
[39fbd200] | 112 | </sect2>
|
---|
| 113 |
|
---|
| 114 | <sect2 role="installation">
|
---|
[b04a049] | 115 | <title>Installation of Gtk+-2</title>
|
---|
[e08a501] | 116 |
|
---|
[b04a049] | 117 | <para>
|
---|
| 118 | Install <application>Gtk+-2</application> by running the following
|
---|
| 119 | commands:
|
---|
| 120 | </para>
|
---|
[e08a501] | 121 |
|
---|
[b04a049] | 122 | <screen><userinput>sed -i 's#l \(gtk-.*\).sgml#& -o \1#' docs/{faq,tutorial}/Makefile.in &&
|
---|
| 123 | sed -i 's#.*@man_#man_#' docs/reference/gtk/Makefile.in &&
|
---|
| 124 | ./configure --prefix=/usr --sysconfdir=/etc &&
|
---|
[39fbd200] | 125 | make</userinput></screen>
|
---|
| 126 |
|
---|
[b04a049] | 127 | <para>
|
---|
| 128 | To test the results, issue: <command>make check</command>. Note that you
|
---|
| 129 | must run the tests from a session with X Window Display capability (i.e.,
|
---|
| 130 | not a text-based terminal/console) as the tests attempt to open an X
|
---|
| 131 | window, and the tests can take an excessively long time. Using an X
|
---|
| 132 | Window, the tests should take less than 0.3 SBUs
|
---|
| 133 | </para>
|
---|
[39fbd200] | 134 |
|
---|
[b04a049] | 135 | <para>
|
---|
| 136 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 137 | </para>
|
---|
[39fbd200] | 138 |
|
---|
[b04a049] | 139 | <screen role="root"><userinput>make install &&
|
---|
| 140 | mkdir -pv /usr/share/doc/gtk+->k2-version; &&
|
---|
[e08a501] | 141 | cp -v -R docs/faq/html /usr/share/doc/gtk+->k2-version;/faq &&
|
---|
[57a0e04] | 142 | cp -v -R docs/tutorial/html /usr/share/doc/gtk+->k2-version;/tutorial &&
|
---|
[5d4e5c7] | 143 | install -v -m644 docs/*.txt /usr/share/doc/gtk+->k2-version;</userinput></screen>
|
---|
[39fbd200] | 144 |
|
---|
[b04a049] | 145 | <note>
|
---|
| 146 | <para>
|
---|
| 147 | If you installed the package on to your system using a
|
---|
| 148 | <quote>DESTDIR</quote> method two important files were not installed and
|
---|
| 149 | must be copied and/or generated. Generate them using the following
|
---|
| 150 | commands as the <systemitem class="username">root</systemitem> user:
|
---|
| 151 | </para>
|
---|
[8013fbe3] | 152 |
|
---|
[bcef05b] | 153 | <screen role="root"><userinput>gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders &&
|
---|
| 154 | gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules</userinput></screen>
|
---|
[b04a049] | 155 | </note>
|
---|
[39fbd200] | 156 | </sect2>
|
---|
| 157 |
|
---|
| 158 | <sect2 role="commands">
|
---|
| 159 | <title>Command Explanations</title>
|
---|
| 160 |
|
---|
[b04a049] | 161 | <para>
|
---|
| 162 | <command>sed -i 's#l \(gtk-.*\).sgml#& -o \1#'
|
---|
| 163 | docs/{faq,tutorial}/Makefile.in</command>: If you have
|
---|
| 164 | <xref linkend="docbook-utils"/> installed (specifically, if configure
|
---|
| 165 | finds db2html) then it will try to use it to rebuild some of it's html
|
---|
| 166 | documentation and fail due to bugs in some of the Makefiles. This sed
|
---|
| 167 | fixes the Makefiles.
|
---|
| 168 | </para>
|
---|
| 169 |
|
---|
| 170 | <para>
|
---|
| 171 | <command>sed -i 's#.*@man_#man_#'
|
---|
| 172 | docs/reference/gtk/Makefile.in</command>: this sed fixes one of the
|
---|
| 173 | <filename>Makefile</filename>s so it installs the man pages for
|
---|
| 174 | gtk-builder-convert, gtk-query-immodules-2.0 and gtk-update-icon-cache.
|
---|
| 175 | </para>
|
---|
| 176 |
|
---|
| 177 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 178 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[bcef05b] | 179 | </sect2>
|
---|
| 180 |
|
---|
| 181 | <sect2 role="configuration">
|
---|
[b04a049] | 182 | <title>Configuring Gtk+-2</title>
|
---|
[bcef05b] | 183 |
|
---|
| 184 | <sect3 id="gtk2-config">
|
---|
| 185 | <title>Config Files</title>
|
---|
[b04a049] | 186 | <para>
|
---|
| 187 | <filename>~/.gtkrc-2.0</filename> and
|
---|
| 188 | <filename>/etc/gtk-2.0/gtkrc</filename>
|
---|
| 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">
|
---|
| 196 | <primary sortas="e-etc-path-gtkrc">/etc/gtk-2.0/gtkrc</primary>
|
---|
| 197 | </indexterm>
|
---|
| 198 | </sect3>
|
---|
[1b9e36e] | 199 |
|
---|
[bcef05b] | 200 | <sect3><title>Configuration Information</title>
|
---|
| 201 |
|
---|
[b04a049] | 202 | <para>
|
---|
| 203 | Gtk themes change the way a gtk application looks. A Gtk icon theme can
|
---|
| 204 | be used to change the icons that appear on the application's toolbar.
|
---|
| 205 | If you have installed a Gtk theme (such as
|
---|
| 206 | <ulink
|
---|
| 207 | url="http://ftp.gnome.org/pub/gnome/sources/gnome-themes/2.32/">gnome-themes</ulink>
|
---|
| 208 | (requires <xref linkend="gtk-engines"/>)) or a Gtk icon theme (such as
|
---|
| 209 | <xref linkend="gnome-icon-theme"/>) you can set your preferences in
|
---|
| 210 | <filename>~/.gtkrc-2.0</filename>:
|
---|
| 211 | </para>
|
---|
[bcef05b] | 212 |
|
---|
[05d91c4] | 213 | <screen><userinput>cat > ~/.gtkrc-2.0 << "EOF"
|
---|
[bcef05b] | 214 | include "/usr/share/themes/<replaceable>Glider</replaceable>/gtk-2.0/gtkrc"
|
---|
| 215 | gtk-icon-theme-name = "<replaceable>hicolor</replaceable>"
|
---|
| 216 | EOF</userinput></screen>
|
---|
| 217 |
|
---|
[b04a049] | 218 | <para>
|
---|
| 219 | There are many more themes available at
|
---|
| 220 | <ulink url="http://gnome-look.org/">Gnome-Look.org</ulink> and other
|
---|
| 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"
|
---|
| 231 | include "/usr/share/themes/<replaceable>Clearlooks</replaceable>/gtk-2.0/gtkrc"
|
---|
| 232 | gtk-icon-theme-name = "<replaceable>elementary</replaceable>"
|
---|
| 233 | EOF</userinput></screen>
|
---|
| 234 |
|
---|
[352d95c] | 235 | <para>
|
---|
[b04a049] | 236 | <ulink url="http://sourceforge.net/projects/lxde/files/LXAppearance/">
|
---|
| 237 | LXAppearance</ulink> is a <application>Gtk+-2</application> application
|
---|
| 238 | that can help you choose the themes you like.
|
---|
| 239 | </para>
|
---|
[bcef05b] | 240 | </sect3>
|
---|
[39fbd200] | 241 | </sect2>
|
---|
| 242 |
|
---|
| 243 | <sect2 role="content">
|
---|
| 244 | <title>Contents</title>
|
---|
| 245 |
|
---|
| 246 | <segmentedlist>
|
---|
| 247 | <segtitle>Installed Programs</segtitle>
|
---|
| 248 | <segtitle>Installed Libraries</segtitle>
|
---|
| 249 | <segtitle>Installed Directories</segtitle>
|
---|
| 250 |
|
---|
| 251 | <seglistitem>
|
---|
[b04a049] | 252 | <seg>
|
---|
| 253 | gtk-builder-convert, gtk-demo, gtk-query-immodules-2.0 and
|
---|
| 254 | gtk-update-icon-cache
|
---|
| 255 | </seg>
|
---|
| 256 | <seg>
|
---|
| 257 | libpixmap.so, im-am-et.so, im-cedilla.so, im-cyrillic-translit.so,
|
---|
| 258 | im-inuktitut.so, im-ipa.so, im-multipress.so, im-thai.so, im-ti-er.so,
|
---|
| 259 | im-ti-et.so, im-viqr.so, im-xim.so, libprintbackend-cups.so
|
---|
| 260 | libprintbackend-file.so, libprintbackend-lpr.so,
|
---|
| 261 | libferret.so, libgail.so, libgailutil.so, libgdk-x11-2.0.so and
|
---|
| 262 | libgtk-x11-2.0.so
|
---|
| 263 | </seg>
|
---|
| 264 | <seg>
|
---|
| 265 | /etc/gtk-2.0, /usr/include/gail-1.0, /usr/include/gtk-2.0,
|
---|
| 266 | /usr/include/gtk-unix-print-2.0, /usr/lib/gtk-2.0,
|
---|
| 267 | /usr/share/doc/gtk+->k2-version;,
|
---|
| 268 | /usr/share/gtk-doc/html/gail-libgail-util,
|
---|
| 269 | /usr/share/gtk-doc/html/gdk-pixbuf, /usr/share/gtk-doc/html/gtk,
|
---|
| 270 | /usr/share/themes/Default, /usr/share/themes/Emacs and
|
---|
| 271 | /usr/share/themes/Raleigh
|
---|
| 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
|
---|
| 286 | GtkBuilder.
|
---|
| 287 | </para>
|
---|
[49f7d8b] | 288 | <indexterm zone="gtk2 gtk-builder-convert">
|
---|
| 289 | <primary
|
---|
| 290 | sortas="b-gtk-builder-convert">gtk-builder-convert</primary>
|
---|
| 291 | </indexterm>
|
---|
| 292 | </listitem>
|
---|
| 293 | </varlistentry>
|
---|
| 294 |
|
---|
| 295 | <varlistentry id="gtk-demo">
|
---|
| 296 | <term><command>gtk-demo</command></term>
|
---|
| 297 | <listitem>
|
---|
[b04a049] | 298 | <para>
|
---|
| 299 | demonstrates <application>Gtk+-2</application> functionality and
|
---|
| 300 | provides code for the examples.
|
---|
| 301 | </para>
|
---|
[49f7d8b] | 302 | <indexterm zone="gtk2 gtk-demo">
|
---|
| 303 | <primary
|
---|
| 304 | sortas="b-gtk-demo">gtk-demo</primary>
|
---|
| 305 | </indexterm>
|
---|
| 306 | </listitem>
|
---|
| 307 | </varlistentry>
|
---|
| 308 |
|
---|
[39fbd200] | 309 | <varlistentry id="gtk-query-immodules-2.0">
|
---|
| 310 | <term><command>gtk-query-immodules-2.0</command></term>
|
---|
| 311 | <listitem>
|
---|
[b04a049] | 312 | <para>
|
---|
| 313 | collects information about loadable input method modules for
|
---|
| 314 | <application>Gtk+-2</application> and writes it to standard output.
|
---|
| 315 | </para>
|
---|
[39fbd200] | 316 | <indexterm zone="gtk2 gtk-query-immodules-2.0">
|
---|
| 317 | <primary
|
---|
| 318 | sortas="b-gtk-query-immodules-2.0">gtk-query-immodules-2.0</primary>
|
---|
| 319 | </indexterm>
|
---|
| 320 | </listitem>
|
---|
| 321 | </varlistentry>
|
---|
| 322 |
|
---|
| 323 | <varlistentry id="gtk-update-icon-cache">
|
---|
| 324 | <term><command>gtk-update-icon-cache</command></term>
|
---|
| 325 | <listitem>
|
---|
[b04a049] | 326 | <para>
|
---|
| 327 | creates mmap()able cache files for icon themes.
|
---|
| 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 |
|
---|
[89488b4] | 335 | <varlistentry id="gtk2libs">
|
---|
[b04a049] | 336 | <term>Gtk+-2 Libraries</term>
|
---|
[39fbd200] | 337 | <listitem>
|
---|
[b04a049] | 338 | <para>
|
---|
| 339 | provide an API to implement graphical user interfaces.
|
---|
| 340 | </para>
|
---|
[89488b4] | 341 | <indexterm zone="gtk2 gtk2libs">
|
---|
[b04a049] | 342 | <primary sortas="c-gtk2libs">Gtk+-2 Libraries</primary>
|
---|
[39fbd200] | 343 | </indexterm>
|
---|
| 344 | </listitem>
|
---|
| 345 | </varlistentry>
|
---|
| 346 | </variablelist>
|
---|
| 347 | </sect2>
|
---|
[f45b1953] | 348 | </sect1>
|
---|