| GIMP Library Reference Manual |
|---|
gimppalettemenu — A widget for selecting palettes.
GtkWidget* gimp_palette_select_widget_new (const gchar *title, const gchar *palette_name, GimpRunPaletteCallback callback, gpointer data); void gimp_palette_select_widget_close (GtkWidget *widget); void gimp_palette_select_widget_set (GtkWidget *widget, const gchar *palette_name);
GtkWidget* gimp_palette_select_widget_new (const gchar *title,
const gchar *palette_name,
GimpRunPaletteCallback callback,
gpointer data);Creates a new GtkWidget that completely controls the selection of a palette. This widget is suitable for placement in a table in a plug-in dialog.
| title : | Title of the dialog to use or NULL means to use the default title. |
| palette_name : | Initial palette name. |
| callback : | A function to call when the selected palette changes. |
| data : | A pointer to arbitary data to be used in the call to callback. |
| Returns : | A GtkWidget that you can use in your UI. |
Since GIMP 2.2
void gimp_palette_select_widget_close
(GtkWidget *widget);Closes the popup window associated with widget.
| widget : | A palette select widget. |
Since GIMP 2.2
void gimp_palette_select_widget_set (GtkWidget *widget,
const gchar *palette_name);Sets the current palette for the palette select widget. Calls the callback function if one was supplied in the call to gimp_palette_select_widget_new().
| widget : | A palette select widget. |
| palette_name : | Palette name to set; NULL means no change. |
Since GIMP 2.2
| << gimpgradientmenu | gimppatternmenu >> |