Gtk

From MEPIS Documentation Wiki

Jump to: navigation, search

This article or section is a stub. You can help Mepis Documentation Project by expanding it.

Contents

Introduction

GTK+ is a cross-platform widget toolkit for creating graphical user interfaces.

Installation

MEPIS 11

GTK+ applications, the people at KDE have recently put together what appears to be the best Oxygen-like GTK+ style yet: Oxygen-Gtk. It doesn't depend on Qt, (but considering the manager of the project also works on Oxygen I'd guess that Oxygen-Gtk is actually a full port of Oxygen to GTK+), so it can even be used in GTK+ to get the Oxygen theme without any Qt or KDE libraries.

To use this on Debian / Mepis

1. Oxygen-Gtk depends on the GTK+ development library to build, and it's rather useless without the System Settings module to configure it, so install those two packages and cmake:

$ apt-get install libgtk2.0-dev kde-config-gtk-style cmake

2. Download the tarball, http://dl.dropbox.com/u/19720676/oxygen ... .0.tar.bz2 3. Extract it with bunzip2 and tar and change to the new directory:

$ bunzip2 oxygen-gtk-1.0.0.tar.bz2
$ tar -xf oxygen-gtk-1.0.0.tar
$ cd oxygen-gtk-1.0.0/

4. The "INSTALL" file in the tarball tells you to make a "build" directory and work in that, which is not a bad idea. So make it, change to it, and follow the usual CMake + GNU Make procedure from there:

$ mkdir build
$ cd build/
$ cmake ../
$ make
$ su -c 'make install'

Also, if you have multiple CPUs and/or cores, you can add an option like '-j 2' to the first make command to cut compilation time.
5. Open up System Settings, go to Appearance, and select GTK Styles and Fonts. Make sure "Use another style:" is selected and choose "oxygen-gtk" in the adjacent combo box, Click Apply. You may be instructed to restart KDE.
6. Enjoy GTK+ applications that at least look native

Use

Tips and tricks

Links

Personal tools