The Basic Widget Tour—As a Program
The program in Listing 2.2 is a short demonstration of what is required to build a GTK+ application. Listing 2.2 is a tour of the basic widgets: label, command button, toggle, check and radio buttons, List, and CList. The running program is designed to demonstrate the functionality of these widgets. It does nothing special, but it attempts to tie together some of the more common widgets to show how they work.
Listing 2.2. Working Tour of Some Basic GTK+ Widgets
#include <gtk/gtk.h> /* These are the top-level windows. Normally, they would * be the only global variables, but in order to demonstrate * widget functionality, many widgets are declared global * that normally wouldn't be in a production * application. ... |
Get MySQL Building User Interfaces now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.