mirror of https://github.com/GNOME/gimp.git
pdb, libgimp: Fix return type of gimp-buffer-get-image-type
gimp-buffer-get-image-type returns the output of gimp_babl_format_get_image_type (), which itself returns a GimpImageType enum. However, the PDB claims that it's a GimpImageBaseType enum instead. This patch fixes the documentation to match the actual output enum type.
This commit is contained in:
parent
d38362c9a0
commit
b5a8f46b37
|
@ -492,8 +492,8 @@ register_buffer_procs (GimpPDB *pdb)
|
|||
g_param_spec_enum ("image-type",
|
||||
"image type",
|
||||
"The buffer image type",
|
||||
GIMP_TYPE_IMAGE_BASE_TYPE,
|
||||
GIMP_RGB,
|
||||
GIMP_TYPE_IMAGE_TYPE,
|
||||
GIMP_RGB_IMAGE,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
g_object_unref (procedure);
|
||||
|
|
|
@ -270,12 +270,12 @@ gimp_buffer_get_bytes (const gchar *buffer_name)
|
|||
*
|
||||
* Since: 2.4
|
||||
**/
|
||||
GimpImageBaseType
|
||||
GimpImageType
|
||||
gimp_buffer_get_image_type (const gchar *buffer_name)
|
||||
{
|
||||
GimpValueArray *args;
|
||||
GimpValueArray *return_vals;
|
||||
GimpImageBaseType image_type = 0;
|
||||
GimpImageType image_type = 0;
|
||||
|
||||
args = gimp_value_array_new_from_types (NULL,
|
||||
G_TYPE_STRING, buffer_name,
|
||||
|
|
|
@ -32,14 +32,14 @@ G_BEGIN_DECLS
|
|||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
gchar** gimp_buffers_get_list (const gchar *filter);
|
||||
gchar* gimp_buffer_rename (const gchar *buffer_name,
|
||||
const gchar *new_name);
|
||||
gboolean gimp_buffer_delete (const gchar *buffer_name);
|
||||
gint gimp_buffer_get_width (const gchar *buffer_name);
|
||||
gint gimp_buffer_get_height (const gchar *buffer_name);
|
||||
gint gimp_buffer_get_bytes (const gchar *buffer_name);
|
||||
GimpImageBaseType gimp_buffer_get_image_type (const gchar *buffer_name);
|
||||
gchar** gimp_buffers_get_list (const gchar *filter);
|
||||
gchar* gimp_buffer_rename (const gchar *buffer_name,
|
||||
const gchar *new_name);
|
||||
gboolean gimp_buffer_delete (const gchar *buffer_name);
|
||||
gint gimp_buffer_get_width (const gchar *buffer_name);
|
||||
gint gimp_buffer_get_height (const gchar *buffer_name);
|
||||
gint gimp_buffer_get_bytes (const gchar *buffer_name);
|
||||
GimpImageType gimp_buffer_get_image_type (const gchar *buffer_name);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -213,7 +213,7 @@ sub buffer_get_image_type {
|
|||
);
|
||||
|
||||
@outargs = (
|
||||
{ name => 'image_type', type => 'enum GimpImageBaseType',
|
||||
{ name => 'image_type', type => 'enum GimpImageType',
|
||||
desc => "The buffer image type" }
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue