[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 |
|
---|
[bcef05b] | 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">
|
---|
[2b95bda] | 9 | <!ENTITY gtk2-md5sum "5408d4a70ac132f7c439d7de40e83aff">
|
---|
[0dae9b6] | 10 | <!ENTITY gtk2-size "12.2 MB">
|
---|
[2b95bda] | 11 | <!ENTITY gtk2-buildsize "337 MB">
|
---|
| 12 | <!ENTITY gtk2-time "2.7 SBU">
|
---|
[feeb99a] | 13 | ]>
|
---|
| 14 |
|
---|
[89488b4] | 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 |
|
---|
[89488b4] | 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">
|
---|
[89488b4] | 30 | <title>Introduction to gtk+-2</title>
|
---|
[39fbd200] | 31 |
|
---|
[89488b4] | 32 | <para>The <application>gtk+-2</application> package contains
|
---|
| 33 | <application>gtk+-2</application> libraries. These are useful
|
---|
[39fbd200] | 34 | for creating graphical user interfaces for applications.</para>
|
---|
| 35 |
|
---|
[bcef05b] | 36 | &lfs70_checked;
|
---|
[a10f4a7] | 37 |
|
---|
[39fbd200] | 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url=">k2-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url=">k2-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: >k2-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: >k2-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: >k2-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: >k2-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
[89488b4] | 60 | <bridgehead renderas="sect3">gtk+-2 Dependencies</bridgehead>
|
---|
[39fbd200] | 61 |
|
---|
| 62 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[bcef05b] | 63 | <para role="required"><xref linkend="cairo"/> (compiled with libX11
|
---|
| 64 | support), <xref linkend="gdk-pixbuf"/>, the
|
---|
| 65 | <xref linkend="x-window-system"/> (specifically, libX11, libXext and
|
---|
| 66 | libXrender), <xref linkend="pango"/> and <xref linkend="atk"/></para>
|
---|
[39fbd200] | 67 |
|
---|
[f6deaf77] | 68 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[bcef05b] | 69 | <para role="recommended"><xref linkend="hicolor-icon-theme"/></para>
|
---|
[f6deaf77] | 70 |
|
---|
[49f7d8b] | 71 | <!-- hicolor-icon-theme is required for the test suite -->
|
---|
| 72 |
|
---|
[39fbd200] | 73 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[5d4e5c7] | 74 | <para role="optional"><xref linkend="cups"/>,
|
---|
[74cfec8] | 75 | <xref linkend="docbook-utils"/>,
|
---|
[bcef05b] | 76 | <!-- <ulink url="http://beagle-project.org/Main_Page">libbeagle</ulink>,
|
---|
| 77 | This beagle page appears to be just adverts -->
|
---|
| 78 | <!-- <ulink url="http://sourceforge.net/projects/openprinting/">papi</ulink>,
|
---|
| 79 | I think papi is just for solaris. It was a bugger to compile... -->
|
---|
| 80 | <!-- <ulink url="http://www.tracker-project.org/">Tracker</ulink>
|
---|
| 81 | This tracker page is a dead link -->
|
---|
| 82 | <xref linkend="gobject-introspection"/> and
|
---|
| 83 | <xref linkend="gtk-doc"/>.</para>
|
---|
[39fbd200] | 84 |
|
---|
[c5c2654] | 85 | <para condition="html" role="usernotes">User Notes:
|
---|
| 86 | <ulink url="&blfs-wiki;/gtk+2"/></para>
|
---|
| 87 |
|
---|
[39fbd200] | 88 | </sect2>
|
---|
| 89 |
|
---|
| 90 | <sect2 role="installation">
|
---|
[89488b4] | 91 | <title>Installation of gtk+-2</title>
|
---|
[39fbd200] | 92 |
|
---|
[89488b4] | 93 | <para>Install <application>gtk+-2</application> by running
|
---|
[39fbd200] | 94 | the following commands:</para>
|
---|
| 95 |
|
---|
[2b95bda] | 96 | <screen><userinput>sed -i '/db2html/i@HAVE_DOCBOOK_TRUE@\t mkdir gtk-tut; \\
|
---|
| 97 | /gtk-tut html/i@HAVE_DOCBOOK_TRUE@\t mv *.html gtk-tut; \\' \
|
---|
[bcef05b] | 98 | docs/tutorial/Makefile.in &&
|
---|
[2b95bda] | 99 | sed -i '/db2html/i@HAVE_DOCBOOK_TRUE@\t mkdir gtk-faq; \\
|
---|
| 100 | /gtk-faq html/i@HAVE_DOCBOOK_TRUE@\t mv *.html gtk-faq; \\' \
|
---|
[bcef05b] | 101 | docs/faq/Makefile.in &&
|
---|
[352d95c] | 102 | sed -i 's#^\( gtk_icon_view_\)l#\1queue_l#' gtk/gtkiconview.c &&
|
---|
[bcef05b] | 103 | ./configure --prefix=/usr --sysconfdir=/etc &&
|
---|
[39fbd200] | 104 | make</userinput></screen>
|
---|
| 105 |
|
---|
[c9786f06] | 106 | <para>To test the results, issue: <command>make check</command>. Note that
|
---|
| 107 | you must run the tests from a session with X Window Display capability
|
---|
| 108 | (i.e., not a text-based terminal/console) as the tests attempt to open an X
|
---|
[12c3430] | 109 | window, and the tests can take an excessively long time. Using an X Window,
|
---|
| 110 | the tests should take less than .3 SBUs</para>
|
---|
[39fbd200] | 111 |
|
---|
| 112 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 113 |
|
---|
[0011bd6] | 114 | <screen role="root"><userinput>make install &&
|
---|
[bcef05b] | 115 | sed -i 's/#man_MANS/man_MANS/' docs/reference/gtk/Makefile &&
|
---|
| 116 | make -C docs/reference/gtk install-man &&
|
---|
[2b95bda] | 117 | install -v -m755 -d /usr/share/doc/gtk+->k2-version; &&
|
---|
[57a0e04] | 118 | cp -v -R docs/faq/html /usr/share/doc/gtk+->k2-version;/faq &&
|
---|
| 119 | cp -v -R docs/tutorial/html /usr/share/doc/gtk+->k2-version;/tutorial &&
|
---|
[5d4e5c7] | 120 | install -v -m644 docs/*.txt /usr/share/doc/gtk+->k2-version;</userinput></screen>
|
---|
[39fbd200] | 121 |
|
---|
[8013fbe3] | 122 | <warning>
|
---|
[bcef05b] | 123 |
|
---|
[8013fbe3] | 124 | <para>If you installed the package on to your system using a
|
---|
[bcef05b] | 125 | <quote>DESTDIR</quote> method two important files were not installed and
|
---|
| 126 | must be copied and/or generated. Generate them using the following
|
---|
| 127 | commands as the <systemitem class="username">root</systemitem>
|
---|
[8013fbe3] | 128 | user:</para>
|
---|
| 129 |
|
---|
[bcef05b] | 130 | <screen role="root"><userinput>gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders &&
|
---|
| 131 | gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules</userinput></screen>
|
---|
| 132 |
|
---|
[8013fbe3] | 133 | </warning>
|
---|
| 134 |
|
---|
[39fbd200] | 135 | </sect2>
|
---|
| 136 |
|
---|
| 137 | <sect2 role="commands">
|
---|
| 138 | <title>Command Explanations</title>
|
---|
| 139 |
|
---|
[bcef05b] | 140 | <para><command>sed -i '/db2html/i@HAVE_DOCBOOK...</command>: If you have
|
---|
| 141 | <xref linkend="docbook-utils"/> installed (specifically, if configure finds
|
---|
| 142 | db2html) then it will try to use it to rebuild some of it's html
|
---|
| 143 | documentation and fail due to bugs in some of the Makefiles. These seds fix
|
---|
| 144 | the Makefiles.</para>
|
---|
| 145 |
|
---|
[352d95c] | 146 | <para><command>sed -i...gtk/gtkiconview.c</command>: This fixes a bug in
|
---|
| 147 | gtk+-2.24.8 that makes some applications (eg, lxappearance) crash.</para>
|
---|
| 148 |
|
---|
[39fbd200] | 149 | <para><parameter>--sysconfdir=/etc</parameter>: This switch installs the
|
---|
| 150 | configuration files into <filename class="directory">/etc</filename>
|
---|
| 151 | instead of <filename class="directory">/usr/etc</filename>.</para>
|
---|
| 152 |
|
---|
[bcef05b] | 153 | <para><command>sed -i 's/#man_MANS...</command> and
|
---|
| 154 | <command>make -C docs...install-man</command> these commands install the
|
---|
| 155 | man pages for gtk-builder-convert, gtk-query-immodules-2.0 and
|
---|
| 156 | gtk-update-icon-cache.</para>
|
---|
| 157 |
|
---|
[39fbd200] | 158 | <para><option>--enable-gtk-doc</option>: This switch will rebuild
|
---|
[0d35663] | 159 | the API documentation during the <command>make</command> command. Ensure
|
---|
| 160 | you really want to rebuild this documentation (and end up with what is
|
---|
| 161 | already shipped in the source tree) as it takes a very long time.</para>
|
---|
[39fbd200] | 162 |
|
---|
[bcef05b] | 163 | </sect2>
|
---|
| 164 |
|
---|
| 165 | <sect2 role="configuration">
|
---|
[89488b4] | 166 | <title>Configuring gtk+-2</title>
|
---|
[bcef05b] | 167 |
|
---|
| 168 | <sect3 id="gtk2-config">
|
---|
| 169 | <title>Config Files</title>
|
---|
| 170 | <para><filename>~/.gtkrc-2.0</filename> and
|
---|
| 171 | <filename>/etc/gtk-2.0/gtkrc</filename></para>
|
---|
[f6deaf77] | 172 |
|
---|
[bcef05b] | 173 | <indexterm zone="gtk2 gtk2-config">
|
---|
| 174 | <primary sortas="e-AA.gtkrc-2.0">~/.gtkrc-2.0</primary>
|
---|
| 175 | </indexterm>
|
---|
[f6deaf77] | 176 |
|
---|
[bcef05b] | 177 | <indexterm zone="gtk2 gtk2-config">
|
---|
| 178 | <primary sortas="e-etc-path-gtkrc">/etc/gtk-2.0/gtkrc</primary>
|
---|
| 179 | </indexterm>
|
---|
| 180 | </sect3>
|
---|
[1b9e36e] | 181 |
|
---|
[bcef05b] | 182 | <sect3><title>Configuration Information</title>
|
---|
| 183 |
|
---|
| 184 | <para>Gtk themes change the way a gtk application looks. A Gtk icon theme
|
---|
| 185 | can be used to change the icons that appear on the application's
|
---|
| 186 | toolbar. If you have installed a Gtk theme (eg
|
---|
| 187 | <xref linkend="gnome-themes"/>) or a Gtk icon theme (such as
|
---|
| 188 | <xref linkend="gnome-icon-theme"/>) you can set your prefences in
|
---|
| 189 | <filename>~/.gtkrc-2.0</filename>:</para>
|
---|
| 190 |
|
---|
[05d91c4] | 191 | <screen><userinput>cat > ~/.gtkrc-2.0 << "EOF"
|
---|
[bcef05b] | 192 | include "/usr/share/themes/<replaceable>Glider</replaceable>/gtk-2.0/gtkrc"
|
---|
| 193 | gtk-icon-theme-name = "<replaceable>hicolor</replaceable>"
|
---|
| 194 | EOF</userinput></screen>
|
---|
| 195 |
|
---|
| 196 | <para>There are many more themes available at
|
---|
| 197 | <ulink url="http://gnome-look.org/">Gnome-Look.org</ulink> and other
|
---|
| 198 | places.</para>
|
---|
[352d95c] | 199 |
|
---|
[bcef05b] | 200 | <para>Once you've settled on themes you like, you can (as the
|
---|
| 201 | <systemitem class="username">root</systemitem> user) make them the
|
---|
| 202 | default system wide:</para>
|
---|
| 203 |
|
---|
| 204 | <screen role="root"><userinput>cat > /etc/gtk-2.0/gtkrc << "EOF"
|
---|
| 205 | include "/usr/share/themes/<replaceable>Clearlooks</replaceable>/gtk-2.0/gtkrc"
|
---|
| 206 | gtk-icon-theme-name = "<replaceable>elementary</replaceable>"
|
---|
| 207 | EOF</userinput></screen>
|
---|
| 208 |
|
---|
[352d95c] | 209 | <para>
|
---|
| 210 | <ulink url="http://sourceforge.net/projects/lxde/files/LXAppearance/">
|
---|
[89488b4] | 211 | LXAppearance</ulink> is a gtk+-2 application that can help you choose the
|
---|
[352d95c] | 212 | themes you like.</para>
|
---|
| 213 |
|
---|
[bcef05b] | 214 | </sect3>
|
---|
[1b9e36e] | 215 |
|
---|
[39fbd200] | 216 | </sect2>
|
---|
| 217 |
|
---|
| 218 | <sect2 role="content">
|
---|
| 219 | <title>Contents</title>
|
---|
| 220 |
|
---|
| 221 | <segmentedlist>
|
---|
| 222 | <segtitle>Installed Programs</segtitle>
|
---|
| 223 | <segtitle>Installed Libraries</segtitle>
|
---|
| 224 | <segtitle>Installed Directories</segtitle>
|
---|
| 225 |
|
---|
| 226 | <seglistitem>
|
---|
[bcef05b] | 227 | <seg>gtk-builder-convert, gtk-demo, gtk-query-immodules-2.0, and
|
---|
| 228 | gtk-update-icon-cache</seg>
|
---|
[72de95a] | 229 | <seg>libpixmap.so, im-am-et.so, im-cedilla.so, im-cyrillic-translit.so,
|
---|
| 230 | im-inuktitut.so, im-ipa.so, im-multipress.so, im-thai.so, im-ti-er.so,
|
---|
[bcef05b] | 231 | im-ti-et.so, im-viqr.so, im-xim.so, libprintbackend-cups.so
|
---|
[72de95a] | 232 | libprintbackend-file.so, libprintbackend-lpr.so,
|
---|
[bcef05b] | 233 | libferret.so, libgail.so, libgailutil.so, libgdk-x11-2.0.so and
|
---|
[72de95a] | 234 | libgtk-x11-2.0.so</seg>
|
---|
[bcef05b] | 235 | <seg>/etc/gtk-2.0, /usr/include/gail-1.0,
|
---|
| 236 | /usr/include/gtk-2.0, /usr/include/gtk-unix-print-2.0},
|
---|
| 237 | /usr/lib/gtk-2.0, /usr/share/doc/gtk+->k2-version;,
|
---|
| 238 | /usr/share/gtk-doc/html/gail-libgail-util,
|
---|
| 239 | /usr/share/gtk-doc/html/gdk-pixbuf, /usr/share/gtk-doc/html/gtk,
|
---|
| 240 | /usr/share/themes/Default, /usr/share/themes/Emacs and
|
---|
| 241 | /usr/share/themes/Raleigh</seg>
|
---|
[39fbd200] | 242 | </seglistitem>
|
---|
| 243 | </segmentedlist>
|
---|
| 244 |
|
---|
| 245 | <variablelist>
|
---|
| 246 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 247 | <?dbfo list-presentation="list"?>
|
---|
| 248 | <?dbhtml list-presentation="table"?>
|
---|
| 249 |
|
---|
[49f7d8b] | 250 | <varlistentry id="gtk-builder-convert">
|
---|
| 251 | <term><command>gtk-builder-convert</command></term>
|
---|
| 252 | <listitem>
|
---|
[a41f643] | 253 | <para>converts glade files into XML files which can be loaded with
|
---|
[49f7d8b] | 254 | GtkBuilder.</para>
|
---|
| 255 | <indexterm zone="gtk2 gtk-builder-convert">
|
---|
| 256 | <primary
|
---|
| 257 | sortas="b-gtk-builder-convert">gtk-builder-convert</primary>
|
---|
| 258 | </indexterm>
|
---|
| 259 | </listitem>
|
---|
| 260 | </varlistentry>
|
---|
| 261 |
|
---|
| 262 | <varlistentry id="gtk-demo">
|
---|
| 263 | <term><command>gtk-demo</command></term>
|
---|
| 264 | <listitem>
|
---|
[89488b4] | 265 | <para>demonstrates <application>gtk+-2</application> functionality and
|
---|
[49f7d8b] | 266 | provides code for the examples.</para>
|
---|
| 267 | <indexterm zone="gtk2 gtk-demo">
|
---|
| 268 | <primary
|
---|
| 269 | sortas="b-gtk-demo">gtk-demo</primary>
|
---|
| 270 | </indexterm>
|
---|
| 271 | </listitem>
|
---|
| 272 | </varlistentry>
|
---|
| 273 |
|
---|
[39fbd200] | 274 | <varlistentry id="gtk-query-immodules-2.0">
|
---|
| 275 | <term><command>gtk-query-immodules-2.0</command></term>
|
---|
| 276 | <listitem>
|
---|
| 277 | <para>collects information about loadable input method modules for
|
---|
[89488b4] | 278 | <application>gtk+-2</application> and writes it to standard output.</para>
|
---|
[39fbd200] | 279 | <indexterm zone="gtk2 gtk-query-immodules-2.0">
|
---|
| 280 | <primary
|
---|
| 281 | sortas="b-gtk-query-immodules-2.0">gtk-query-immodules-2.0</primary>
|
---|
| 282 | </indexterm>
|
---|
| 283 | </listitem>
|
---|
| 284 | </varlistentry>
|
---|
| 285 |
|
---|
| 286 | <varlistentry id="gtk-update-icon-cache">
|
---|
| 287 | <term><command>gtk-update-icon-cache</command></term>
|
---|
| 288 | <listitem>
|
---|
| 289 | <para>creates mmap()able cache files for icon themes.</para>
|
---|
| 290 | <indexterm zone="gtk2 gtk-update-icon-cache">
|
---|
| 291 | <primary sortas="b-gtk-update-icon-cache">gtk-update-icon-cache</primary>
|
---|
| 292 | </indexterm>
|
---|
| 293 | </listitem>
|
---|
| 294 | </varlistentry>
|
---|
| 295 |
|
---|
[89488b4] | 296 | <varlistentry id="gtk2libs">
|
---|
| 297 | <term>gtk+-2 Libraries</term>
|
---|
[39fbd200] | 298 | <listitem>
|
---|
| 299 | <para>provide an API to implement graphical user interfaces.</para>
|
---|
[89488b4] | 300 | <indexterm zone="gtk2 gtk2libs">
|
---|
| 301 | <primary sortas="c-gtk2libs">gtk+-2 Libraries</primary>
|
---|
[39fbd200] | 302 | </indexterm>
|
---|
| 303 | </listitem>
|
---|
| 304 | </varlistentry>
|
---|
| 305 |
|
---|
| 306 | </variablelist>
|
---|
| 307 |
|
---|
| 308 | </sect2>
|
---|
[f45b1953] | 309 |
|
---|
| 310 | </sect1>
|
---|