The GtkProgressBar and GtkStatusBar Widgets

The GtkProgressBar and GtkStatusBar widgets are exactly what you’d expect: a progress bar and a status bar. The GtkProgressBar widget indicates a sliding value from 0 to 100, normally. However, this can be customized in GTK+. Also, the progress can be set to move visually from left to right, right to left, top to bottom, or bottom to top. The GtkStatusBar widget allows the program to communicate short text messages to the user. Normally, both would be found at the bottom of a user interface window. Keeping with the previous listing, Figure 3.2 shows the program from Listing 3.2, compiled and running.

Figure 3.2. The GtkProgressBar and GtkStatusBar demo program.

A Note About the Status Bar Widget ...

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.