Ruby Developer's Guide

Using the GTK+ Toolkit

GTK+ is a cross-platform GUI originally developed for use with the GNU Image Manipulation Program (GIMP) toolkit (available at www.gimp.org). Although GTK+ is primarily designed for the X Window system, it has also been ported to Microsoft Windows. As a part of the GNU project, it is used for a lot of popular free software and is a core component of the GNU project's GNU Network Object Model Environment (GNOME) desktop environment.

Ruby/GTK is a Ruby extension module written in C that provides an interface from Ruby to GTK+. This extension was originally developed by Yukihiro Matsumoto (the author of Ruby) and is currently maintained by Hiroshi Igarashi.

Obtaining Ruby/GTK

The home page for Ruby/GTK is www.ruby-lang.org/gtk. If you're using the standard Ruby for Windows installation from the Pragmatic Programmers' site, there's a good chance that it includes precompiled binaries for Ruby/GTK. For other platforms (including Unix and Linux) you'll need to build Ruby/GTK from the source code.

In order to build Ruby/GTK from the source code, you will need a working installation of GTK+ itself. Most Linux distributions include a GTK+ development package as an installation option; in Red Hat Linux, for example, this is the gtk+-devel package. If your operating system doesn't already have a working GTK+ installation, the GTK+ home page (www.gtk.org) has plenty of information about how to download the source code and build it yourself. You can also download the sources for Ruby/GTK from its home page.

Once you've established...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Integrated Development Environment (IDE)
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.