File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -433,8 +433,8 @@ See also: [al_insert_menu_item], [al_remove_menu_item]
433
433
434
434
### API: al_insert_menu_item
435
435
436
- Inserts a menu item at the spot specified. See the introductory text for a
437
- detailed explanation of how the `pos` parameter is interpreted.
436
+ Inserts a menu item at the spot specified. See the [ introductory text](#menus)
437
+ for a detailed explanation of how the `pos` parameter is interpreted.
438
438
439
439
The `parent` menu can be a popup menu or a regular menu. To underline
440
440
one character in the `title`, prefix it with an ampersand.
@@ -459,7 +459,8 @@ The `submenu` parameter indicates that this item contains a child menu.
459
459
The child menu must have previously been created with `al_create_menu`,
460
460
and not be associated with any other menu.
461
461
462
- Returns `true` on success.
462
+ Returns the index at which the item was inserted (which can be different than
463
+ what is implied by `pos`), or -1 if there was an error.
463
464
464
465
Since: 5.1.0
465
466
You can’t perform that action at this time.
0 commit comments