summaryrefslogtreecommitdiff
path: root/libcaja-extension/caja-menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-extension/caja-menu.c')
-rw-r--r--libcaja-extension/caja-menu.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libcaja-extension/caja-menu.c b/libcaja-extension/caja-menu.c
index 5f0c06b4..f6f15f20 100644
--- a/libcaja-extension/caja-menu.c
+++ b/libcaja-extension/caja-menu.c
@@ -44,6 +44,12 @@ caja_menu_append_item (CajaMenu *menu, CajaMenuItem *item)
menu->priv->item_list = g_list_append (menu->priv->item_list, g_object_ref (item));
}
+/**
+ * caja_menu_get_items:
+ * @menu: a #CajaMenu
+ *
+ * Returns: (element-type CajaMenuItem) (transfer full): the provided #CajaMenuItem list
+ */
GList *
caja_menu_get_items (CajaMenu *menu)
{
@@ -57,6 +63,11 @@ caja_menu_get_items (CajaMenu *menu)
return item_list;
}
+/**
+ * caja_menu_item_list_free:
+ * @item_list: (element-type CajaMenuItem): a list of #CajaMenuItem
+ *
+ */
void
caja_menu_item_list_free (GList *item_list)
{