GtkTable
The GtkTable widget is like a grid, or perhaps what you would get if you crossed a horizontal packing box with a vertical packing box (see Figure 4.1). A tic-tac-toe game would work well as a three-by-three GtkTable. In addition, you can tell the table to span child widgets across more than one position in the table, either vertically or horizontally.
Figure 4.1. The GtkTable demo program running.
The GtkTable demo program shows the table widget in action (albeit in a slightly ugly implementation). It also shows a new paradigm for a program-in-action—that of destroying and re-creating a widget in response to events. Remember that if ...
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.