[76a07db] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[b84342d6] | 7 | <!ENTITY gtk3-download-http "&gnome-download-http;/gtk+/3.4/gtk+->k3-version;.tar.xz">
|
---|
| 8 | <!ENTITY gtk3-download-ftp "&gnome-download-ftp;/gtk+/3.4/gtk+->k3-version;.tar.xz">
|
---|
[7ded7e3] | 9 | <!ENTITY gtk3-md5sum "e552d52c3b0824eb99842dc9c5f4875f">
|
---|
[b314b388] | 10 | <!ENTITY gtk3-size "13 MB">
|
---|
[b84342d6] | 11 | <!ENTITY gtk3-buildsize "325 MB">
|
---|
| 12 | <!ENTITY gtk3-time "2.8 SBU">
|
---|
[76a07db] | 13 | ]>
|
---|
| 14 |
|
---|
[b84342d6] | 15 | <sect1 id="gtk3" xreflabel="Gtk+->k3-version;">
|
---|
[76a07db] | 16 | <?dbhtml filename="gtk3.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
[7e2c95d] | 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
[76a07db] | 21 | </sect1info>
|
---|
| 22 |
|
---|
[ebee860] | 23 | <title>Gtk+->k3-version;</title>
|
---|
[76a07db] | 24 |
|
---|
| 25 | <indexterm zone="gtk3">
|
---|
[89488b4] | 26 | <primary sortas="a-gtk3">gtk+-3</primary>
|
---|
[76a07db] | 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
[ebee860] | 30 | <title>Introduction to Gtk+ 3</title>
|
---|
[76a07db] | 31 |
|
---|
[ce9d22a] | 32 | <para>
|
---|
[ebee860] | 33 | The <application>Gtk+ 3</application> package contains
|
---|
[b84342d6] | 34 | <application>Gtk+ 3</application> libraries used for creating
|
---|
[ce9d22a] | 35 | graphical user interfaces for applications.
|
---|
| 36 | </para>
|
---|
[76a07db] | 37 |
|
---|
[4c77a949] | 38 | &lfs71_checked;
|
---|
[76a07db] | 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[ce9d22a] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url=">k3-download-http;"/>
|
---|
| 45 | </para>
|
---|
[76a07db] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[ce9d22a] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url=">k3-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[76a07db] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[ce9d22a] | 53 | <para>
|
---|
| 54 | Download MD5 sum: >k3-md5sum;
|
---|
| 55 | </para>
|
---|
[76a07db] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[ce9d22a] | 58 | <para>
|
---|
| 59 | Download size: >k3-size;
|
---|
| 60 | </para>
|
---|
[76a07db] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[ce9d22a] | 63 | <para>
|
---|
| 64 | Estimated disk space required: >k3-buildsize;
|
---|
| 65 | </para>
|
---|
[76a07db] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[ce9d22a] | 68 | <para>
|
---|
| 69 | Estimated build time: >k3-time;
|
---|
| 70 | </para>
|
---|
[76a07db] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
[ebee860] | 74 | <bridgehead renderas="sect3">Gtk+ 3 Dependencies</bridgehead>
|
---|
[76a07db] | 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[ce9d22a] | 77 | <para role="required">
|
---|
| 78 | <xref linkend="atk"/>,
|
---|
| 79 | <xref linkend="gdk-pixbuf"/> and
|
---|
[742b99e] | 80 | <xref linkend="pango"/>
|
---|
| 81 | </para>
|
---|
| 82 |
|
---|
[4c2be438] | 83 | <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
|
---|
| 84 | <para role="optional">
|
---|
| 85 | <xref linkend="gobject-introspection"/>
|
---|
| 86 | </para>
|
---|
| 87 |
|
---|
[76a07db] | 88 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[ce9d22a] | 89 | <para role="optional">
|
---|
[b7a80c66] | 90 | <xref linkend="colord"/>,
|
---|
[ce9d22a] | 91 | <xref linkend="cups"/>,
|
---|
[4c2be438] | 92 | <xref linkend="docbook-utils"/> and
|
---|
[b7a80c66] | 93 | <xref linkend="gtk-doc"/>.
|
---|
[ce9d22a] | 94 | </para>
|
---|
| 95 |
|
---|
| 96 | <para condition="html" role="usernotes">
|
---|
| 97 | User Notes: <ulink url="&blfs-wiki;/gtk3"/>
|
---|
| 98 | </para>
|
---|
[76a07db] | 99 | </sect2>
|
---|
| 100 |
|
---|
| 101 | <sect2 role="installation">
|
---|
[ebee860] | 102 | <title>Installation of Gtk+ 3</title>
|
---|
[76a07db] | 103 |
|
---|
[b84342d6] | 104 | <note>
|
---|
| 105 | <para>
|
---|
| 106 | <application>Gtk+ 3</application> will overwrite
|
---|
| 107 | <command>gtk-update-icon-cache</command> from
|
---|
| 108 | <xref linkend="gtk2"/> if it is installed.
|
---|
| 109 | There is nothing wrong about that assuming
|
---|
| 110 | that both programs provide same functionality.
|
---|
| 111 | If you wish to keep one from
|
---|
| 112 | <application>Gtk+ 2</application> you can add
|
---|
| 113 | <option>--enable-gtk2-dependency</option> to the
|
---|
| 114 | <command>configure</command> command.
|
---|
| 115 | </para>
|
---|
| 116 | </note>
|
---|
| 117 |
|
---|
[ce9d22a] | 118 | <para>
|
---|
[ebee860] | 119 | Install <application>Gtk+ 3</application> by running the following
|
---|
[ce9d22a] | 120 | commands:
|
---|
| 121 | </para>
|
---|
[76a07db] | 122 |
|
---|
[60ba44f] | 123 | <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc &&
|
---|
[76a07db] | 124 | make</userinput></screen>
|
---|
| 125 |
|
---|
[ce9d22a] | 126 | <para>
|
---|
| 127 | To test the results:
|
---|
| 128 | </para>
|
---|
[76a07db] | 129 |
|
---|
| 130 | <screen><userinput>rm tests/css/parser/selector.css &&
|
---|
| 131 | rm tests/a11y/pickers.ui &&
|
---|
| 132 | make check</userinput></screen>
|
---|
| 133 |
|
---|
[ce9d22a] | 134 | <para>
|
---|
| 135 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 136 | </para>
|
---|
[76a07db] | 137 |
|
---|
| 138 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 139 | </sect2>
|
---|
| 140 |
|
---|
| 141 | <sect2 role="commands">
|
---|
| 142 | <title>Command Explanations</title>
|
---|
| 143 |
|
---|
[ce9d22a] | 144 | <para>
|
---|
[b84342d6] | 145 | <option>--disable-packagekit</option>: This parameter disables use
|
---|
[ce9d22a] | 146 | of PackageKit which isn't suitable for BLFS.
|
---|
| 147 | </para>
|
---|
[76a07db] | 148 |
|
---|
[ce9d22a] | 149 | <para>
|
---|
| 150 | <command>rm tests/css/parser/selector.css</command> and
|
---|
| 151 | <command>rm tests/a11y/pickers.ui</command>: This prevents two tests
|
---|
| 152 | being run as they are known to fail.
|
---|
| 153 | </para>
|
---|
[76a07db] | 154 | </sect2>
|
---|
| 155 |
|
---|
| 156 | <sect2 role="configuration">
|
---|
[ebee860] | 157 | <title>Configuring Gtk+ 3</title>
|
---|
[76a07db] | 158 |
|
---|
| 159 | <sect3 id="gtk3-config">
|
---|
| 160 | <title>Config Files</title>
|
---|
[ce9d22a] | 161 | <para>
|
---|
| 162 | <filename>~/.config/gtk-3.0/settings.ini</filename> and
|
---|
| 163 | <filename>/etc/gtk-3.0/settings.ini</filename>
|
---|
| 164 | </para>
|
---|
[76a07db] | 165 |
|
---|
| 166 | <indexterm zone="gtk3 gtk3-config">
|
---|
| 167 | <primary sortas="e-AA.home-settings.ini">~/.config/gtk-3.0/settings.ini</primary>
|
---|
| 168 | </indexterm>
|
---|
| 169 |
|
---|
| 170 | <indexterm zone="gtk3 gtk3-config">
|
---|
| 171 | <primary sortas="e-etc-path-settings.ini">/etc/gtk-3.0/settings.ini</primary>
|
---|
| 172 | </indexterm>
|
---|
| 173 | </sect3>
|
---|
| 174 |
|
---|
| 175 | <sect3><title>Configuration Information</title>
|
---|
| 176 |
|
---|
[ce9d22a] | 177 | <para>
|
---|
[ebee860] | 178 | <application>Gtk+ 3</application> themes change the way a
|
---|
| 179 | <application>Gtk+</application> application looks. An icon theme can be
|
---|
| 180 | used to change the icons that appear on the application's toolbar. If
|
---|
| 181 | you have installed a <application>Gtk+ 3</application> theme (eg
|
---|
[ce9d22a] | 182 | <xref linkend="gnome-themes-standard"/> or an icon theme (such as
|
---|
| 183 | <xref linkend="gnome-icon-theme"/>) you can set your prefences in
|
---|
[ebee860] | 184 | <filename>~/.config/gtk-3.0/settings.ini</filename>. Eg:
|
---|
[ce9d22a] | 185 | </para>
|
---|
[76a07db] | 186 |
|
---|
| 187 | <screen><userinput>cat > ~/.config/gtk-3.0/settings.ini << "EOF"
|
---|
| 188 | [Settings]
|
---|
| 189 | gtk-theme-name = <replaceable>Adwaita</replaceable>
|
---|
| 190 | gtk-fallback-icon-theme = <replaceable>gnome</replaceable>
|
---|
| 191 | EOF</userinput></screen>
|
---|
| 192 |
|
---|
[ce9d22a] | 193 | <para>
|
---|
| 194 | There are many more themes available at
|
---|
| 195 | <ulink url="http://gnome-look.org/"/> and other places.
|
---|
| 196 | </para>
|
---|
[76a07db] | 197 |
|
---|
[ce9d22a] | 198 | <para>
|
---|
| 199 | Once you've settled on themes you like, you can (as the
|
---|
| 200 | <systemitem class="username">root</systemitem> user) make them the
|
---|
| 201 | default system wide:
|
---|
| 202 | </para>
|
---|
[76a07db] | 203 |
|
---|
| 204 | <screen role="root"><userinput>cat > /etc/gtk-3.0/settings.ini << "EOF"[Settings]
|
---|
| 205 | gtk-theme-name = <replaceable>Clearwaita</replaceable>
|
---|
| 206 | gtk-fallback-icon-theme = <replaceable>elementary</replaceable>
|
---|
| 207 | EOF</userinput></screen>
|
---|
| 208 | </sect3>
|
---|
| 209 | </sect2>
|
---|
| 210 |
|
---|
| 211 | <sect2 role="content">
|
---|
| 212 | <title>Contents</title>
|
---|
| 213 |
|
---|
| 214 | <segmentedlist>
|
---|
| 215 | <segtitle>Installed Programs</segtitle>
|
---|
| 216 | <segtitle>Installed Libraries</segtitle>
|
---|
| 217 | <segtitle>Installed Directories</segtitle>
|
---|
| 218 |
|
---|
| 219 | <seglistitem>
|
---|
[ce9d22a] | 220 | <seg>
|
---|
[742b99e] | 221 | gtk3-demo, gtk-query-immodules-3.0 and gtk-update-icon-cache
|
---|
| 222 | </seg>
|
---|
| 223 | <seg>
|
---|
| 224 | libgailutil.so, libgdk-3.so and libgtk-3.so
|
---|
| 225 | </seg>
|
---|
| 226 | <seg>
|
---|
[b84342d6] | 227 | /etc/gtk-3.0,
|
---|
| 228 | /usr/include/{gail-3.0,gtk-3.0},
|
---|
| 229 | /usr/lib/gtk-3.0,
|
---|
| 230 | /usr/share/gtk-3.0 and
|
---|
[742b99e] | 231 | /usr/share/gtk-doc/html/{gail-libgail-util3,gdk3,gtk3}
|
---|
[ce9d22a] | 232 | </seg>
|
---|
[76a07db] | 233 | </seglistitem>
|
---|
| 234 | </segmentedlist>
|
---|
| 235 |
|
---|
| 236 | <variablelist>
|
---|
| 237 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 238 | <?dbfo list-presentation="list"?>
|
---|
| 239 | <?dbhtml list-presentation="table"?>
|
---|
| 240 |
|
---|
| 241 | <varlistentry id="gtk3-demo">
|
---|
| 242 | <term><command>gtk3-demo</command></term>
|
---|
| 243 | <listitem>
|
---|
[ce9d22a] | 244 | <para>
|
---|
| 245 | is a simple program that demonstrates some of the things that can be
|
---|
[ebee860] | 246 | done with <application>Gtk+ 3</application>
|
---|
[ce9d22a] | 247 | </para>
|
---|
[76a07db] | 248 | <indexterm zone="gtk3 gtk3-demo">
|
---|
| 249 | <primary sortas="b-gtk3-demo">gtk3-demo</primary>
|
---|
| 250 | </indexterm>
|
---|
| 251 | </listitem>
|
---|
| 252 | </varlistentry>
|
---|
| 253 |
|
---|
| 254 | <varlistentry id="gtk-query-immodules-3.0">
|
---|
| 255 | <term><command>gtk-query-immodules-3.0</command></term>
|
---|
| 256 | <listitem>
|
---|
[ce9d22a] | 257 | <para>
|
---|
| 258 | collects information about loadable input method modules for
|
---|
[ebee860] | 259 | <application>Gtk+ 3</application> and writes it to the default cache
|
---|
[ce9d22a] | 260 | file location, or to standard output.
|
---|
| 261 | </para>
|
---|
[76a07db] | 262 | <indexterm zone="gtk3 gtk-query-immodules-3.0">
|
---|
| 263 | <primary sortas="b-gtk-query-immodules-3.0">gtk-query-immodules-3.0</primary>
|
---|
| 264 | </indexterm>
|
---|
| 265 | </listitem>
|
---|
| 266 | </varlistentry>
|
---|
| 267 |
|
---|
| 268 | <varlistentry id="gtk-update-icon-cache3">
|
---|
| 269 | <term><command>gtk-update-icon-cache</command></term>
|
---|
| 270 | <listitem>
|
---|
[ce9d22a] | 271 | <para>
|
---|
| 272 | is an icon theme caching utility that creates mmap()able cache files
|
---|
| 273 | for icon themes.
|
---|
| 274 | </para>
|
---|
[76a07db] | 275 | <indexterm zone="gtk3 gtk-update-icon-cache3">
|
---|
| 276 | <primary sortas="b-gtk-update-icon-cache3">gtk-update-icon-cache</primary>
|
---|
| 277 | </indexterm>
|
---|
| 278 | </listitem>
|
---|
| 279 | </varlistentry>
|
---|
| 280 |
|
---|
| 281 | <varlistentry id="libgailutil">
|
---|
| 282 | <term><filename class='libraryfile'>libgailutil.so</filename></term>
|
---|
| 283 | <listitem>
|
---|
[ce9d22a] | 284 | <para>
|
---|
| 285 | contains functions that implements the accessibility interfaces
|
---|
| 286 | defined by the GNOME Accessibility Toolkit
|
---|
| 287 | </para>
|
---|
[76a07db] | 288 | <indexterm zone="gtk3 libgailutil">
|
---|
| 289 | <primary sortas="c-libgailutil">libgailutil.so</primary>
|
---|
| 290 | </indexterm>
|
---|
| 291 | </listitem>
|
---|
| 292 | </varlistentry>
|
---|
| 293 |
|
---|
| 294 | <varlistentry id="libgdk-3">
|
---|
| 295 | <term><filename class='libraryfile'>libgdk-3.so</filename></term>
|
---|
| 296 | <listitem>
|
---|
[ce9d22a] | 297 | <para>
|
---|
| 298 | contains functions that act as a wrapper around the low-level
|
---|
| 299 | drawing and windowing functions provided by the underlying graphics
|
---|
[742b99e] | 300 | system.
|
---|
[ce9d22a] | 301 | </para>
|
---|
[76a07db] | 302 | <indexterm zone="gtk3 libgdk-3">
|
---|
| 303 | <primary sortas="c-libgdk-3">libgdk-3.so</primary>
|
---|
| 304 | </indexterm>
|
---|
| 305 | </listitem>
|
---|
| 306 | </varlistentry>
|
---|
| 307 |
|
---|
| 308 | <varlistentry id="libgtk-3">
|
---|
| 309 | <term><filename class='libraryfile'>libgtk-3.so</filename></term>
|
---|
| 310 | <listitem>
|
---|
[ce9d22a] | 311 | <para>
|
---|
| 312 | contains functions that provide an API to implement graphical user
|
---|
| 313 | interfaces.
|
---|
| 314 | </para>
|
---|
[76a07db] | 315 | <indexterm zone="gtk3 libgtk-3">
|
---|
| 316 | <primary sortas="c-libgtk-3">libgtk-3.so</primary>
|
---|
| 317 | </indexterm>
|
---|
| 318 | </listitem>
|
---|
| 319 | </varlistentry>
|
---|
| 320 | </variablelist>
|
---|
[b84342d6] | 321 |
|
---|
[76a07db] | 322 | </sect2>
|
---|
[b84342d6] | 323 |
|
---|
[76a07db] | 324 | </sect1>
|
---|