Sha256: 4c982df4f3c66905d25a70350b72ba6fdf7404c63d8bebb9ac4b3e37c183c06c

Contents?: true

Size: 568 Bytes

Versions: 12

Compression:

Stored size: 568 Bytes

Contents

# Step 4: Add a menu

The original files are located in the following directory.

- https://gitlab.gnome.org/GNOME/gtk/-/blob/main/examples/application4

They are written in the C language and use `g_action_map_add_action entries`.
It is a convenience function for creating multiple GSimpleAction instances and adding them to a GActionMap.
If you write a program in C, it is the best way.

However, the program in this directory doesn't use `add_action_entries` method.
Instead, it uses `each` method of an array of action names.
The way above is flexible and simple.

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
gtk4-4.2.4 sample/examples/application4/README.md
gtk4-4.2.3 sample/examples/application4/README.md
gtk4-4.2.2 sample/examples/application4/README.md
gtk4-4.2.1 sample/examples/application4/README.md
gtk4-4.2.0 sample/examples/application4/README.md
gtk4-4.1.9 sample/examples/application4/README.md
gtk4-4.1.8 sample/examples/application4/README.md
gtk4-4.1.7 sample/examples/application4/README.md
gtk4-4.1.6 sample/examples/application4/README.md
gtk4-4.1.5 sample/examples/application4/README.md
gtk4-4.1.4 sample/examples/application4/README.md
gtk4-4.1.3 sample/examples/application4/README.md