Ruby/GTK2 Tutorial
Synopsis
This document covers the Ruby/GTK2 library used to ease creation of graphical user interfaces (GUIs). GTK+ can create native application on the GNOME Desktop, and also runs great on almost any desktop environment: Linux, Windows, OSX, FreeBSD and more; and using ruby all without and modifications or recompilation! This tutorial is currently being translated from the Japanese version by Laurent Sansonetti.
As of January 2009, brand new material mainly based on Andrew Krause's book Foundations of GTK+ Development is currently being added by Igor Pirnovar. The numbers at the beginning of the top level lines refer to the chapters in Andrew's book, the "warning" street signs (!) mark places where there may be a problem area with the current Ruby 1.8/GNOME2 2-0.17.0-rc1 release used to test examples in this tutorial.
Table of Contents
- Introduction
- Getting Started
- Moving On
- Packing Widgets
- (3) Container Widgets
- (4) Basic Widgets
- Toggle Button
- Check Button
- Radio Button
- ** Not a button but vaguely related Button Box

- ** Font Button (bellow undeer Selector And Chooser ...) (!)
- Numeric - Text Data Entry
- Single Line Entry Field
- Spin Buttons
- Horizontal And Vertical Scales
- Selector And Chooser Interface And Widgets
- File Chooser Button
- Colour Button
- Font Button (!)
- Test Your Understanding
- (5) Dialogs
- (6) GLib Short Introduction
- (7) The Text View Widget
- (8) The Tree View Widget
- Parts of a Tree View
- Using Gtk::TreeStore
- Referencing Rows
- Adding Rows and Handling Selections
- Editable Text Renderers
- Cell Data Functions
- Cell Renderers
- Toggle Button Renderers
- (!) ... problems
- Pixbuf Renderers (!,f)
- (!) ... problems
- Spin Button Renderers (!,f)

- Combo Box Renderers (!,f)
- Keyboard Accelerator Renderers
- Toggle Button Renderers
- (9) Menus and Toolbars
- (10) Dynamic User Interfaces
- (12) Additional GTK+ Widgets
Keyword(s):
References:[ref] [Ruby-GNOME2 Tutorials] [igor-info]