GtkLayout

The GtkLayout widget is very similar to the GtkFixed widget, but it allows a larger widget placement area. It also handles re-drawing of child widgets differently, necessitating the use of the *_freeze* and *_thaw* calls (see the end of Listing 4.4). Listing 4.4 is presented in Figure 4.4.

Figure 4.4. The GtkLayout demo program running.

Listing 4.4 and Figure 4.4 are intentionally very similar to Listing 4.3 and Figure 4.3 The purpose is to demonstrate the similarities and differences between these two very similar widgets; compile and run both to see which will best fit your needs.

Listing 4.4. GtkLayout Demo
 #include <gtk/gtk.h> ...

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.