[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">
|
---|
[ebee860] | 32 | <title>Introduction to Gtk+ 2</title>
|
---|
[39fbd200] | 33 |
|
---|
[b04a049] | 34 | <para>
|
---|
[ebee860] | 35 | The <application>Gtk+ 2</application> package contains
|
---|
| 36 | <application>|Gtk+ 2</application> libraries. These are useful for
|
---|
[b04a049] | 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 |
|
---|
[ebee860] | 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">
|
---|
[ebee860] | 115 | <title>Installation of Gtk+ 2</title>
|
---|
[e08a501] | 116 |
|
---|
[b04a049] | 117 | <para>
|
---|
[ebee860] | 118 | Install <application>Gtk+ 2</application> by running the following
|
---|
[b04a049] | 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">
|
---|
[ebee860] | 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>
|
---|
[ebee860] | 203 | <application>Gtk+ 2</application> themes change the way a
|
---|
| 204 | <application>Gtk+ 2</application> application looks. A
|
---|
| 205 | <application>Gtk+ 2</application> icon theme can be used to change the
|
---|
| 206 | icons that appear on the application's toolbar. If you have installed a
|
---|
| 207 | <application>Gtk+ 2</application> theme (such as <ulink
|
---|
[b04a049] | 208 | url="http://ftp.gnome.org/pub/gnome/sources/gnome-themes/2.32/">gnome-themes</ulink>
|
---|
[ebee860] | 209 | (requires <xref linkend="gtk-engines"/>)) or a
|
---|
| 210 | <application>Gtk+ 2</application> icon theme (such as
|
---|
[b04a049] | 211 | <xref linkend="gnome-icon-theme"/>) you can set your preferences in
|
---|
| 212 | <filename>~/.gtkrc-2.0</filename>:
|
---|
| 213 | </para>
|
---|
[bcef05b] | 214 |
|
---|
[05d91c4] | 215 | <screen><userinput>cat > ~/.gtkrc-2.0 << "EOF"
|
---|
[bcef05b] | 216 | include "/usr/share/themes/<replaceable>Glider</replaceable>/gtk-2.0/gtkrc"
|
---|
| 217 | gtk-icon-theme-name = "<replaceable>hicolor</replaceable>"
|
---|
| 218 | EOF</userinput></screen>
|
---|
| 219 |
|
---|
[b04a049] | 220 | <para>
|
---|
| 221 | There are many more themes available at
|
---|
| 222 | <ulink url="http://gnome-look.org/">Gnome-Look.org</ulink> and other
|
---|
| 223 | places.
|
---|
| 224 | </para>
|
---|
[352d95c] | 225 |
|
---|
[b04a049] | 226 | <para>
|
---|
| 227 | Once you've settled on themes you like, you can (as the
|
---|
| 228 | <systemitem class="username">root</systemitem> user) make them the
|
---|
| 229 | default system wide:
|
---|
| 230 | </para>
|
---|
[bcef05b] | 231 |
|
---|
| 232 | <screen role="root"><userinput>cat > /etc/gtk-2.0/gtkrc << "EOF"
|
---|
| 233 | include "/usr/share/themes/<replaceable>Clearlooks</replaceable>/gtk-2.0/gtkrc"
|
---|
| 234 | gtk-icon-theme-name = "<replaceable>elementary</replaceable>"
|
---|
| 235 | EOF</userinput></screen>
|
---|
| 236 |
|
---|
[352d95c] | 237 | <para>
|
---|
[b04a049] | 238 | <ulink url="http://sourceforge.net/projects/lxde/files/LXAppearance/">
|
---|
[ebee860] | 239 | LXAppearance</ulink> is a <application>Gtk+ 2</application> application
|
---|
[b04a049] | 240 | that can help you choose the themes you like.
|
---|
| 241 | </para>
|
---|
[bcef05b] | 242 | </sect3>
|
---|
[39fbd200] | 243 | </sect2>
|
---|
| 244 |
|
---|
| 245 | <sect2 role="content">
|
---|
| 246 | <title>Contents</title>
|
---|
| 247 |
|
---|
| 248 | <segmentedlist>
|
---|
| 249 | <segtitle>Installed Programs</segtitle>
|
---|
| 250 | <segtitle>Installed Libraries</segtitle>
|
---|
| 251 | <segtitle>Installed Directories</segtitle>
|
---|
| 252 |
|
---|
| 253 | <seglistitem>
|
---|
[b04a049] | 254 | <seg>
|
---|
| 255 | gtk-builder-convert, gtk-demo, gtk-query-immodules-2.0 and
|
---|
| 256 | gtk-update-icon-cache
|
---|
| 257 | </seg>
|
---|
| 258 | <seg>
|
---|
| 259 | libpixmap.so, im-am-et.so, im-cedilla.so, im-cyrillic-translit.so,
|
---|
| 260 | im-inuktitut.so, im-ipa.so, im-multipress.so, im-thai.so, im-ti-er.so,
|
---|
| 261 | im-ti-et.so, im-viqr.so, im-xim.so, libprintbackend-cups.so
|
---|
| 262 | libprintbackend-file.so, libprintbackend-lpr.so,
|
---|
| 263 | libferret.so, libgail.so, libgailutil.so, libgdk-x11-2.0.so and
|
---|
| 264 | libgtk-x11-2.0.so
|
---|
| 265 | </seg>
|
---|
| 266 | <seg>
|
---|
| 267 | /etc/gtk-2.0, /usr/include/gail-1.0, /usr/include/gtk-2.0,
|
---|
| 268 | /usr/include/gtk-unix-print-2.0, /usr/lib/gtk-2.0,
|
---|
| 269 | /usr/share/doc/gtk+->k2-version;,
|
---|
| 270 | /usr/share/gtk-doc/html/gail-libgail-util,
|
---|
| 271 | /usr/share/gtk-doc/html/gdk-pixbuf, /usr/share/gtk-doc/html/gtk,
|
---|
| 272 | /usr/share/themes/Default, /usr/share/themes/Emacs and
|
---|
| 273 | /usr/share/themes/Raleigh
|
---|
| 274 | </seg>
|
---|
[39fbd200] | 275 | </seglistitem>
|
---|
| 276 | </segmentedlist>
|
---|
| 277 |
|
---|
| 278 | <variablelist>
|
---|
| 279 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 280 | <?dbfo list-presentation="list"?>
|
---|
| 281 | <?dbhtml list-presentation="table"?>
|
---|
| 282 |
|
---|
[49f7d8b] | 283 | <varlistentry id="gtk-builder-convert">
|
---|
| 284 | <term><command>gtk-builder-convert</command></term>
|
---|
| 285 | <listitem>
|
---|
[b04a049] | 286 | <para>
|
---|
| 287 | converts glade files into XML files which can be loaded with
|
---|
| 288 | GtkBuilder.
|
---|
| 289 | </para>
|
---|
[49f7d8b] | 290 | <indexterm zone="gtk2 gtk-builder-convert">
|
---|
| 291 | <primary
|
---|
| 292 | sortas="b-gtk-builder-convert">gtk-builder-convert</primary>
|
---|
| 293 | </indexterm>
|
---|
| 294 | </listitem>
|
---|
| 295 | </varlistentry>
|
---|
| 296 |
|
---|
| 297 | <varlistentry id="gtk-demo">
|
---|
| 298 | <term><command>gtk-demo</command></term>
|
---|
| 299 | <listitem>
|
---|
[b04a049] | 300 | <para>
|
---|
[ebee860] | 301 | demonstrates <application>Gtk+ 2</application> functionality and
|
---|
[b04a049] | 302 | provides code for the examples.
|
---|
| 303 | </para>
|
---|
[49f7d8b] | 304 | <indexterm zone="gtk2 gtk-demo">
|
---|
| 305 | <primary
|
---|
| 306 | sortas="b-gtk-demo">gtk-demo</primary>
|
---|
| 307 | </indexterm>
|
---|
| 308 | </listitem>
|
---|
| 309 | </varlistentry>
|
---|
| 310 |
|
---|
[39fbd200] | 311 | <varlistentry id="gtk-query-immodules-2.0">
|
---|
| 312 | <term><command>gtk-query-immodules-2.0</command></term>
|
---|
| 313 | <listitem>
|
---|
[b04a049] | 314 | <para>
|
---|
| 315 | collects information about loadable input method modules for
|
---|
[ebee860] | 316 | <application>Gtk+ 2</application> and writes it to standard output.
|
---|
[b04a049] | 317 | </para>
|
---|
[39fbd200] | 318 | <indexterm zone="gtk2 gtk-query-immodules-2.0">
|
---|
| 319 | <primary
|
---|
| 320 | sortas="b-gtk-query-immodules-2.0">gtk-query-immodules-2.0</primary>
|
---|
| 321 | </indexterm>
|
---|
| 322 | </listitem>
|
---|
| 323 | </varlistentry>
|
---|
| 324 |
|
---|
| 325 | <varlistentry id="gtk-update-icon-cache">
|
---|
| 326 | <term><command>gtk-update-icon-cache</command></term>
|
---|
| 327 | <listitem>
|
---|
[b04a049] | 328 | <para>
|
---|
| 329 | creates mmap()able cache files for icon themes.
|
---|
| 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 |
|
---|
[89488b4] | 337 | <varlistentry id="gtk2libs">
|
---|
[ebee860] | 338 | <term>Gtk+ 2 Libraries</term>
|
---|
[39fbd200] | 339 | <listitem>
|
---|
[b04a049] | 340 | <para>
|
---|
| 341 | provide an API to implement graphical user interfaces.
|
---|
| 342 | </para>
|
---|
[89488b4] | 343 | <indexterm zone="gtk2 gtk2libs">
|
---|
[ebee860] | 344 | <primary sortas="c-gtk2libs">Gtk+ 2 Libraries</primary>
|
---|
[39fbd200] | 345 | </indexterm>
|
---|
| 346 | </listitem>
|
---|
| 347 | </varlistentry>
|
---|
| 348 | </variablelist>
|
---|
| 349 | </sect2>
|
---|
[f45b1953] | 350 | </sect1>
|
---|