gimppaletteselect

## gimppaletteselect gimppaletteselect — Functions providing a palette selection dialog. |

## Synopsis

    void        (*GimpRunPaletteCallback)       (const gchar *palette_name,
                                                 gboolean dialog_closing,
                                                 gpointer user_data);
    const gchar* gimp_palette_select_new        (const gchar *title,
                                                 const gchar *palette_name,
                                                 GimpRunPaletteCallback callback,
                                                 gpointer data);
    void        gimp_palette_select_destroy     (const gchar *palette_callback);
    gboolean    gimp_palettes_popup             (const gchar *palette_callback,
                                                 const gchar *popup_title,
                                                 const gchar *initial_palette);
    gboolean    gimp_palettes_close_popup       (const gchar *palette_callback);
    gboolean    gimp_palettes_set_popup         (const gchar *palette_callback,
                                                 const gchar *palette_name);

## Description

Functions providing a palette selection dialog.

## Details

### GimpRunPaletteCallback ()

    void        (*GimpRunPaletteCallback)       (const gchar *palette_name,
                                                 gboolean dialog_closing,
                                                 gpointer user_data);

`palette_name` : |
`dialog_closing` : |
`user_data` : |

### gimp_palette_select_new ()

    const gchar* gimp_palette_select_new        (const gchar *title,
                                                 const gchar *palette_name,
                                                 GimpRunPaletteCallback callback,
                                                 gpointer data);

`title` : |
`palette_name` : |
`callback` : |
`data` : |
Returns : |

### gimp_palette_select_destroy ()

    void        gimp_palette_select_destroy     (const gchar *palette_callback);

`palette_callback` : |

### gimp_palettes_popup ()

    gboolean    gimp_palettes_popup             (const gchar *palette_callback,
                                                 const gchar *popup_title,
                                                 const gchar *initial_palette);

Invokes the Gimp palette selection.

This procedure popups the palette selection dialog.

`palette_callback` : | The callback PDB proc to call when palette selection is made.
`popup_title` : | Title to give the palette popup window.
`initial_palette` : | The name of the palette to set as the first selected.
Returns : | TRUE on success.

### gimp_palettes_close_popup ()

    gboolean    gimp_palettes_close_popup       (const gchar *palette_callback);

Popdown the Gimp palette selection.

This procedure closes an opened palette selection dialog.

`palette_callback` : | The name of the callback registered for this popup.
Returns : | TRUE on success.

### gimp_palettes_set_popup ()

    gboolean    gimp_palettes_set_popup         (const gchar *palette_callback,
                                                 const gchar *palette_name);

Sets the current palette selection in a popup.

Sets the current palette selection in a popup.

`palette_callback` : | The name of the callback registered for this popup.
`palette_name` : | The name of the palette to set as selected.
Returns : | TRUE on success.