29
29
* gimp_palettes_popup:
30
30
* @palette_callback: The callback PDB proc to call when palette selection is made.
31
* @popup_title: Title to give the palette popup window.
31
* @popup_title: Title of the palette selection dialog.
32
32
* @initial_palette: The name of the palette to set as the first selected.
34
34
* Invokes the Gimp palette selection.
36
* This procedure popups the palette selection dialog.
36
* This procedure opens the palette selection dialog.
38
38
* Returns: TRUE on success.
41
41
gimp_palettes_popup (const gchar *palette_callback,
42
const gchar *popup_title,
43
const gchar *initial_palette)
42
const gchar *popup_title,
43
const gchar *initial_palette)
45
45
GimpParam *return_vals;
47
47
gboolean success = TRUE;
49
return_vals = gimp_run_procedure ("gimp_palettes_popup",
51
GIMP_PDB_STRING, palette_callback,
52
GIMP_PDB_STRING, popup_title,
53
GIMP_PDB_STRING, initial_palette,
49
return_vals = gimp_run_procedure ("gimp-palettes-popup",
51
GIMP_PDB_STRING, palette_callback,
52
GIMP_PDB_STRING, popup_title,
53
GIMP_PDB_STRING, initial_palette,
56
56
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
64
64
* gimp_palettes_close_popup:
65
* @palette_callback: The name of the callback registered for this popup.
65
* @palette_callback: The name of the callback registered for this pop-up.
67
* Popdown the Gimp palette selection.
67
* Close the palette selection dialog.
69
69
* This procedure closes an opened palette selection dialog.
78
78
gboolean success = TRUE;
80
return_vals = gimp_run_procedure ("gimp_palettes_close_popup",
82
GIMP_PDB_STRING, palette_callback,
80
return_vals = gimp_run_procedure ("gimp-palettes-close-popup",
82
GIMP_PDB_STRING, palette_callback,
85
85
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
93
93
* gimp_palettes_set_popup:
94
* @palette_callback: The name of the callback registered for this popup.
94
* @palette_callback: The name of the callback registered for this pop-up.
95
95
* @palette_name: The name of the palette to set as selected.
97
* Sets the current palette selection in a popup.
97
* Sets the current palette in a palette selection dialog.
99
* Sets the current palette selection in a popup.
99
* Sets the current palette in a palette selection dialog.
101
101
* Returns: TRUE on success.
104
104
gimp_palettes_set_popup (const gchar *palette_callback,
105
const gchar *palette_name)
105
const gchar *palette_name)
107
107
GimpParam *return_vals;
108
108
gint nreturn_vals;
109
109
gboolean success = TRUE;
111
return_vals = gimp_run_procedure ("gimp_palettes_set_popup",
113
GIMP_PDB_STRING, palette_callback,
114
GIMP_PDB_STRING, palette_name,
111
return_vals = gimp_run_procedure ("gimp-palettes-set-popup",
113
GIMP_PDB_STRING, palette_callback,
114
GIMP_PDB_STRING, palette_name,
117
117
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;