GTK+ 2.0 Tutorial

Tony Gale

Ian Main

the GTK team


Table of Contents
Tutorial Availability
Introduction
Getting Started
Hello World in GTK
Compiling Hello World
Theory of Signals and Callbacks
Events
Stepping Through Hello World
Moving On
Data Types
More on Signal Handlers
An Upgraded Hello World
Packing Widgets
Theory of Packing Boxes
Details of Boxes
Packing Demonstration Program
Packing Using Tables
Table Packing Example
Widget Overview
Casting
Widget Hierarchy
Widgets Without Windows
The Button Widget
Normal Buttons
Toggle Buttons
Check Buttons
Radio Buttons
Adjustments
Creating an Adjustment
Using Adjustments the Easy Way
Adjustment Internals
Range Widgets
Scrollbar Widgets
Scale Widgets
Creating a Scale Widget
Functions and Signals (well, functions, at least)
Common Range Functions
Setting the Update Policy
Getting and Setting Adjustments
Key and Mouse bindings
Example
Miscellaneous Widgets
Labels
Arrows
The Tooltips Object
Progress Bars
Dialogs
Rulers
Statusbars
Text Entries
Spin Buttons
Combo Box
Calendar