GtkDialog, GtkFileSelection, GtkColorSelectionDialog, and GtkFontSelectionDialog

These are comparable to the “Windows Common Dialog Boxes.” The GtkDialog widget is analogous to the start of a MessageBox form, and the rest are self-explanatory. The GtkFileSelection can also be used to select a directory. Figure 3.4 shows Listing 3.4 compiled and running. When you click the various buttons in that program, you access the dialog boxes represented in Figures 3.5, 3.6, and 3.7. The dialog box in Figure 3.5 is instantiated by the “File Selection” button in Figure 3.4, Figure 3.6 is instantiated by the “Color Selection” button, and Figure 3.7 is instantiated by the “Change My Font” button. Figures 3.5, 3.6, and 3.7 are placed in Listing 3.4 near the ...

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.