## nautilus-menu-provider

nautilus-menu-provider

## Synopsis

                        NautilusMenuProvider;
    struct              NautilusMenuProviderIface;
    GList *             nautilus_menu_provider_get_file_items
                                                            (NautilusMenuProvider *provider,
                                                             GtkWidget *window,
                                                             GList *files);
    GList *             nautilus_menu_provider_get_background_items
                                                            (NautilusMenuProvider *provider,
                                                             GtkWidget *window,
                                                             NautilusFileInfo *current_folder);
    void                nautilus_menu_provider_emit_items_updated_signal
                                                            (NautilusMenuProvider *provider);

## Object Hierarchy

      GInterface
       +----NautilusMenuProvider

## Prerequisites

NautilusMenuProvider requires GObject.

## Signals

      "items-updated"                                  : Run Last

## Description

## Details

### NautilusMenuProvider

    typedef struct _NautilusMenuProvider NautilusMenuProvider;

### struct NautilusMenuProviderIface

    struct NautilusMenuProviderIface {
    	GTypeInterface g_iface;

    	GList *(*get_file_items)       (NautilusMenuProvider *provider,
    					GtkWidget            *window,
    					GList                *files);
    	GList *(*get_background_items) (NautilusMenuProvider *provider,
    					GtkWidget            *window,
    					NautilusFileInfo     *current_folder);
    };

### nautilus_menu_provider_get_file_items ()

    GList *             nautilus_menu_provider_get_file_items
                                                            (NautilusMenuProvider *provider,
                                                             GtkWidget *window,
                                                             GList *files);

`provider` : | a NautilusMenuProvider
`window` : | the parent GtkWidget window
`files` : | a list of NautilusFileInfo. [element-type NautilusFileInfo]
Returns : | the provided list of NautilusMenuItem. [element-type NautilusMenuItem][transfer full]

### nautilus_menu_provider_get_background_items ()

    GList *             nautilus_menu_provider_get_background_items
                                                            (NautilusMenuProvider *provider,
                                                             GtkWidget *window,
                                                             NautilusFileInfo *current_folder);

`provider` : | a NautilusMenuProvider
`window` : | the parent GtkWidget window
`current_folder` : | the folder for which background items are requested
Returns : | the provided list of NautilusMenuItem. [element-type NautilusMenuItem][transfer full]

### nautilus_menu_provider_emit_items_updated_signal ()

    void                nautilus_menu_provider_emit_items_updated_signal
                                                            (NautilusMenuProvider *provider);

## Signal Details

### The `"items-updated"` signal

    void                user_function                      (NautilusMenuProvider *nautilusmenuprovider,
                                                            gpointer              user_data)                 : Run Last

`nautilusmenuprovider` : | the object which received the signal.
`user_data` : | user data set when the signal handler was connected.