Menu Widget, ItemFactory, and Popup Menu Widgets

Finally, I will cover the Menu widgets. In any part of a finished application, a menu at the top of the main application window is something users have come to expect, but somehow it also manages to be one of the things that gets left behind in the rush to deliver the application. Figure 3.8 shows the program compiled from Listing 3.5, which provides the menu options available in GTK+.

Figure 3.8. The Menu widgets demo.

Listing 3.5. Demo of the Menu Widgets: Menu, ItemFactory, and Popup Menu Widgets
 #include <gtk/gtk.h> GtkWidget *frm_menus; GtkWidget *frm_item_factory; GtkWidget *frm_popup; ...

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.