GtkFrame and GtkAspectFrame

The GtkFrame and GtkAspectFrame widgets are, like many other widgets, pretty much what you expect. The GtkFrame is a container object into which you can place other objects, and the GtkAspectFrame widget allows you to maintain the aspect of the child widget whenever the parent window is resized. Figure 3.3 shows Listing 3.3 in action.

Figure 3.3. GtkFrame and GtkAspectFrame widgets demo program.

Listing 3.3. Demo of the Frame and Aspect Frame Widgets: GtkFrame and GtkAspectFrame
 #include <gtk/gtk.h> GtkWidget *frm_frames; GtkWidget *left_frame; GtkWidget *right_aspect_frame; void destroy_main(); void cmd_left_clicked(); ...

Get MySQL Building User Interfaces now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.