GTK+ Reference Manual
for GTK+ 2.3.5
Table of Contents
I.
GTK+ Overview
Compiling the GTK+ libraries
- How to compile GTK+ itself
Compiling GTK+ Applications
- How to compile your GTK+ application
Running GTK+ Applications
- How to run and debug your GTK+ application
Using GTK+ on Windows
- Windows-specific aspects of using GTK+
Using GTK+ on the Framebuffer
- Linux framebuffer aspects of using GTK+
Using GTK+ on the X Window System
- X11 aspects of using GTK+
Mailing lists and bug reports
- Getting help with GTK+
Common Questions
- Find answers to common questions in the GTK+ manual
II.
GTK+ Core Reference
Main loop and Events
- Library initialization, main event loop, and events
Accelerator Groups
- Groups of global keyboard accelerators for an entire GtkWindow
Accelerator Maps
- Loadable keyboard accelerator specifications
Clipboards
- Storing data on clipboards
Drag and Drop
- Functions for controlling drag and drop handling
GtkIconTheme
- Looking up icons by name
Stock Items
- Prebuilt common menu/toolbar items and corresponding icons
Themeable Stock Images
- Manipulating stock icons
Resource Files
- Routines for handling resource files
Settings
- Sharing settings between applications
Bindings
- Key bindings for individual widgets
Standard Enumerations
- Public enumerated types used throughout GTK+
Graphics Contexts
- A shared pool of GdkGC objects
Styles
- Functions for drawing widget parts
Selections
- Functions for handling inter-process communication via selections
Version Information
- Variables and functions to check the GTK+ version
Signals
- Object methods and callbacks
Types
- Handle run-time type creation
III.
GTK+ Widgets and Objects
Object Hierarchy
Windows
Display Widgets
Buttons and Toggles
Numeric/Text Data Entry
Multiline Text Editor
Tree and List Widget
Menus, Combo Box, Toolbar
Action-based menus and toolbars
Selectors (File/Font/Color/Input Devices)
Layout Containers
Ornaments
Scrolling
Miscellaneous
Abstract Base Classes
Cross-process Embedding
Special-purpose features
Deprecated
IV.
Migrating from Previous Versions of GTK+
Migration Checklist
Implement GtkWidget::popup_menu
Use GdkEventExpose.region
Test for modifier keys correctly
Changes from 1.0 to 1.2
- Incompatible changes made between version 1.0 and version 1.2
Changes from 1.2 to 2.0
- Incompatible changes made between version 1.2 and version 2.0
Migrating from GtkFileSelection to GtkFileChooser
Creating a GtkFileChooserDialog
Selection Modes
Installing a Preview widget
Installing Extra Widgets
New features
Migrating from old menu and toolbar systems to GtkAction
Actions and Action Groups
User Interface Manager Object
Migrating from GnomeUIInfo
Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and GtkComboBoxEntry
Migrating from GtkOptionMenu to GtkComboBox
Migrating from GtkCombo to GtkComboBoxEntry
New features
V.
GTK+ Tools
gtk-query-immodules-2.0
- Input method module registration utility
Index
List of Examples
1.
Typical main function for a GTK+ application
2.
Updating the GUI during a long computation.
3.
A persistent window
1.
Simple GtkDialog usage.
2.
A modal dialog.
3.
A non-modal dialog.
1.
Creating a simple menu item with an accelerator key.
2.
Handling button press events on a GtkImage.
1.
How to create a group of two radio buttons.
2.
Creating two GtkToggleButton widgets.
1.
Using a GtkSpinButton to get an integer.
2.
Using a GtkSpinButton to get a floating point value.
3.
Forcing entry to uppercase.
1.
Acquiring a GtkTreeIter
2.
Reading data from a GtkTreeModel
3.
Using a GtkTreeModelSort
4.
Accessing the child model of in a selection changed callback
5.
Creating a simple list store.
1.
Connecting the popup signal handler.
2.
Signal handler which displays a popup menu.
3.
How to create a group of radio menu items.
1.
A UI definition
1.
Getting a filename from the user.
2.
Sample Usage
3.
Sample Usage
4.
Typical usage
1.
Simple GtkDrawingArea usage.
2.
Adding tooltips to buttons.
1.
Creating a paned widget with minimum sizes.
1.
Obtaining the window ID of a socket.
1.
Creating a GtkCombo widget with simple text items.
2.
Creating a GtkCombo widget with a complex item.
1.
GnomeUIInfo Example
2.
GtkActionEntry Structures
3.
XML Description
4.
Creating the Menu Bar
Part I. GTK+ Overview >>