BaulMenu: Baul Extension Reference Manual

## BaulMenu BaulMenu — Menu descriptor object |

## Functions

BaulMenu * | baul_menu_new ()
void | baul_menu_append_item ()
GList * | baul_menu_get_items ()
void | baul_menu_item_list_free ()

## Types and Values

| BaulMenuPrivate
struct | BaulMenu

## Object Hierarchy

        GObject
        ╰── BaulMenu

## Includes

    #include <libbaul-extension/baul-menu.h>

## Description

BaulMenu is an object that describes a submenu in a file manager menu. Extensions can provide BaulMenu objects by attaching them to BaulMenuItem objects, using `baul_menu_item_set_submenu()`.

## Functions

### baul_menu_new ()

    BaulMenu *
    baul_menu_new (void);

### baul_menu_append_item ()

    void
    baul_menu_append_item (BaulMenu *menu,
                           BaulMenuItem *item);

### baul_menu_get_items ()

    GList *
    baul_menu_get_items (BaulMenu *menu);

#### Parameters

menu | a BaulMenu |

#### Returns

the provided BaulMenuItem list.

[element-type BaulMenuItem][transfer full]

### baul_menu_item_list_free ()

    void
    baul_menu_item_list_free (GList *item_list);

#### Parameters

item_list | a list of BaulMenuItem. | [element-type BaulMenuItem]

## Types and Values

### BaulMenuPrivate

    typedef struct _BaulMenuPrivate BaulMenuPrivate;

### struct BaulMenu

    struct BaulMenu;