Gtk+-3.4.3

Introduction to Gtk+ 3

The Gtk+ 3 package contains Gtk+ 3 libraries used for creating graphical user interfaces for applications.

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

Package Information

Gtk+ 3 Dependencies

Required

atk-2.4.0, gdk-pixbuf-2.26.1 and Pango-1.30.0

Optional (Required if building GNOME)

gobject-introspection-1.32.1

Optional

Colord-0.1.19, Cups-1.5.0, DocBook-utils-0.6.14 and GTK-Doc-1.18.

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

Installation of Gtk+ 3

[Note]

Note

Gtk+ 3 will overwrite gtk-update-icon-cache from gtk+-2.24.10 if it is installed. There is nothing wrong about that assuming that both programs provide same functionality. If you wish to keep one from Gtk+ 2 you can add --enable-gtk2-dependency to the configure command.

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

--disable-packagekit: This parameter disables use of PackageKit which isn't suitable for BLFS.

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-3.4.2 or an icon theme (such as gnome-icon-theme-3.4.0) you can set your prefences in ~/.config/gtk-3.0/settings.ini. Eg:

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 http://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/{gail-3.0,gtk-3.0}, /usr/lib/gtk-3.0, /usr/share/gtk-3.0 and /usr/share/gtk-doc/html/{gail-libgail-util3,gdk3,gtk3}

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.

libgtk-3.so

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

Last updated on 2012-05-16 16:39:28 +0000