CHAPTER 9Menus and Toolbars

This chapter will teach you how to create pop-up menus, menu bars, and toolbars. You will begin by creating each manually, so you learn how the widgets are constructed. This will give you a firm understanding of all of the concepts on which menus and toolbars rely.

After you understand each widget, you will be introduced to GtkUIManager, which allows you to dynamically create menus and toolbars through custom XML files. Each user interface file is loaded, and each element applied to a corresponding action object, which tells the item how it will be displayed and how it will act.

In this chapter, you will learn the following:

  • How to create pop-up menus, menu bars, and toolbars
  • How to apply keyboard accelerators to ...

Get Foundations of GTK+ Development 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.