gtk+-3.2.3

Introduction to gtk+-3

The gtk+-3 package contains gtk+-3 libraries. These are used for creating graphical user interfaces for applications.

This package is known to build and work properly using an LFS-7.0 platform.

Package Information

gtk+-3 Dependencies

Required

cairo-1.10.2 (compiled with support for glib and libX11), atk-2.2.0, Pango-1.29.4, gdk-pixbuf-2.24.0 and X Window System (specifically, libX11, libXext, libXi and libXrender are required, libXinerama, libXcomposite, libXrandr and libXdamage are optional)

Optional

Cups-1.5.0, DocBook-utils-0.6.14, Colord, gobject-introspection-1.30.0 and GTK-Doc-1.18 (only needed if you want to rebuild the documentation).

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/gtk3

Installation of gtk+-3

Install gtk+-3 by running the following commands:

./configure --prefix=/usr --sysconfdir=/etc &&
make

To test the results:

rm tests/css/parser/selector.css &&
rm tests/a11y/pickers.ui &&
make check

Now, as the root user:

make install

Command Explanations

rm tests/css/parser/selector.css and rm tests/a11y/pickers.ui: This prevents two tests being run as they are known to fail.

Configuring gtk+-3

Config Files

~/.config/gtk-3.0/settings.ini and /etc/gtk-3.0/settings.ini

Configuration Information

Gtk+-3 themes change the way a gtk application looks. An icon theme can be used to change the icons that appear on the application's toolbar. If you have installed a Gtk+-3 theme (eg gnome-themes-standard) or an icon theme (such as GNOME Icon Theme-2.30.3) you can set your prefences in ~/.config/gtk-3.0/settings.ini:

cat > ~/.config/gtk-3.0/settings.ini << "EOF"
[Settings]
gtk-theme-name = Adwaita
gtk-fallback-icon-theme = gnome
EOF

There are many more themes available at Gnome-Look.org and other places.

Once you've settled on themes you like, you can (as the root user) make them the default system wide:

cat > /etc/gtk-3.0/settings.ini << "EOF"[Settings]
gtk-theme-name = Clearwaita
gtk-fallback-icon-theme = elementary
EOF

Contents

Installed Programs: gtk3-demo, gtk-query-immodules-3.0, and gtk-update-icon-cache
Installed Libraries: libgailutil.so, libgdk-3.so, and libgtk-3.so
Installed Directories: /etc/gtk-3.0, /usr/include/gtk-3.0, /usr/include/gail-3.0, /usr/lib/gtk-3.0 and /usr/share/gtk-3.0

Short Descriptions

gtk3-demo

is a simple program that demonstrates some of the things that can be done with gtk+-3

gtk-query-immodules-3.0

collects information about loadable input method modules for gtk+-3 and writes it to the default cache file location, or to standard output.

gtk-update-icon-cache

is an icon theme caching utility that creates mmap()able cache files for icon themes.

libgailutil.so

contains functions that implements the accessibility interfaces defined by the GNOME Accessibility Toolkit

libgdk-3.so

contains functions that act as a wrapper around the low-level drawing and windowing functions provided by the underlying graphics system (libX11 for now, but maybe in the future wayland).

libgtk-3.so

contains functions that provide an API to implement graphical user interfaces.

Last updated on 2007-04-04 20:42:53 +0100