plug-ins/common/curve_bend.c plug-ins/common/plugin-browser.c
2005-08-19 Sven Neumann <sven@gimp.org> * plug-ins/common/curve_bend.c * plug-ins/common/plugin-browser.c * plug-ins/helpbrowser/dialog.c * plug-ins/imagemap/imap_main.c * plug-ins/jpeg/jpeg-load.c: use canonical procedure names with gimp_run_procedure(). 2005-08-19 Sven Neumann <sven@gimp.org> * gimpmodule.c * gimp-drawable.c: use canonical procedure names with gimp_run_procedure().
This commit is contained in:

committed by
Sven Neumann

parent
fd7ed3dfd1
commit
f64b986b48
@ -1,3 +1,12 @@
|
||||
2005-08-19 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/common/curve_bend.c
|
||||
* plug-ins/common/plugin-browser.c
|
||||
* plug-ins/helpbrowser/dialog.c
|
||||
* plug-ins/imagemap/imap_main.c
|
||||
* plug-ins/jpeg/jpeg-load.c: use canonical procedure names with
|
||||
gimp_run_procedure().
|
||||
|
||||
2005-08-19 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/dialogs/authors.xsl: generate a NULL terminated array.
|
||||
|
@ -375,7 +375,7 @@ p_gimp_rotate (gint32 image_id,
|
||||
gint32 interpolation,
|
||||
gdouble angle_deg)
|
||||
{
|
||||
static gchar *l_rotate_proc = "gimp_rotate";
|
||||
static gchar *l_rotate_proc = "gimp-rotate";
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
gdouble l_angle_rad;
|
||||
@ -383,7 +383,7 @@ p_gimp_rotate (gint32 image_id,
|
||||
gint l_rc;
|
||||
|
||||
#ifdef ROTATE_OPTIMIZE
|
||||
static gchar *l_rotate_proc2 = "plug_in_rotate";
|
||||
static gchar *l_rotate_proc2 = "plug-in-rotate";
|
||||
gint32 l_angle_step;
|
||||
|
||||
if (angle_deg == 90.0) { l_angle_step = 1; }
|
||||
|
@ -380,7 +380,7 @@ browser_search (GimpBrowser *gimp_browser,
|
||||
gimp_browser_show_message (GIMP_BROWSER (browser->browser),
|
||||
_("Searching by name - please wait"));
|
||||
|
||||
return_vals = gimp_run_procedure ("gimp_plugins_query",
|
||||
return_vals = gimp_run_procedure ("gimp-plugins-query",
|
||||
&nreturn_vals,
|
||||
GIMP_PDB_STRING, search_text,
|
||||
GIMP_PDB_END);
|
||||
|
@ -952,7 +952,7 @@ load_remote_page (const gchar *uri)
|
||||
gint nreturn_vals;
|
||||
|
||||
/* try to call the user specified web browser */
|
||||
return_vals = gimp_run_procedure ("plug_in_web_browser",
|
||||
return_vals = gimp_run_procedure ("plug-in-web-browser",
|
||||
&nreturn_vals,
|
||||
GIMP_PDB_STRING, uri,
|
||||
GIMP_PDB_END);
|
||||
|
@ -449,7 +449,7 @@ fuzzy_select_on_button_press (GtkWidget *widget,
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
|
||||
return_vals = gimp_run_procedure ("plug_in_sel2path",
|
||||
return_vals = gimp_run_procedure ("plug-in-sel2path",
|
||||
&nreturn_vals,
|
||||
GIMP_PDB_INT32, TRUE,
|
||||
GIMP_PDB_IMAGE, image_ID,
|
||||
|
@ -334,7 +334,7 @@ load_image (const gchar *filename,
|
||||
len - sizeof (JPEG_APP_HEADER_XMP));
|
||||
|
||||
/* FIXME: running this through the PDB is not very efficient */
|
||||
return_vals = gimp_run_procedure ("plug_in_metadata_decode_xmp",
|
||||
return_vals = gimp_run_procedure ("plug-in-metadata-decode-xmp",
|
||||
&nreturn_vals,
|
||||
GIMP_PDB_IMAGE, image_ID,
|
||||
GIMP_PDB_STRING, xmp_packet,
|
||||
|
@ -1,3 +1,9 @@
|
||||
2005-08-19 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* gimpmodule.c
|
||||
* gimp-drawable.c: use canonical procedure names with
|
||||
gimp_run_procedure().
|
||||
|
||||
2005-08-06 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/benchmark-foreground-extract.py: pass run-mode to PDB
|
||||
|
@ -284,7 +284,7 @@ pygimp_set_data(PyObject *self, PyObject *args)
|
||||
if (!PyArg_ParseTuple(args, "ss#:set_data", &id, &data, &bytes))
|
||||
return NULL;
|
||||
|
||||
return_vals = gimp_run_procedure("gimp_procedural_db_set_data",
|
||||
return_vals = gimp_run_procedure("gimp-procedural-db-set-data",
|
||||
&nreturn_vals,
|
||||
GIMP_PDB_STRING, id,
|
||||
GIMP_PDB_INT32, bytes,
|
||||
@ -313,7 +313,7 @@ pygimp_get_data(PyObject *self, PyObject *args)
|
||||
if (!PyArg_ParseTuple(args, "s:get_data", &id))
|
||||
return NULL;
|
||||
|
||||
return_vals = gimp_run_procedure("gimp_procedural_db_get_data",
|
||||
return_vals = gimp_run_procedure("gimp-procedural-db-get-data",
|
||||
&nreturn_vals,
|
||||
GIMP_PDB_STRING, id,
|
||||
GIMP_PDB_END);
|
||||
|
@ -1,9 +1,9 @@
|
||||
/* -*- Mode: C; c-basic-offset: 4 -*-
|
||||
/* -*- Mode: C; c-basic-offset: 4 -*-
|
||||
Gimp-Python - allows the writing of Gimp plugins in Python.
|
||||
Copyright (C) 1997-2002 James Henstridge <james@daa.com.au>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published
|
||||
it under the terms of the GNU General Public License as published
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
@ -255,7 +255,7 @@ drw_parasite_detach(PyGimpDrawable *self, PyObject *args)
|
||||
return NULL;
|
||||
|
||||
if (!gimp_drawable_parasite_detach(self->ID, name)) {
|
||||
PyErr_Format(pygimp_error,
|
||||
PyErr_Format(pygimp_error,
|
||||
"could not detach parasite '%s' from drawable (ID %d)",
|
||||
name, self->ID);
|
||||
return NULL;
|
||||
@ -281,7 +281,7 @@ drw_parasite_list(PyGimpDrawable *self)
|
||||
PyTuple_SetItem(ret, i, PyString_FromString(parasites[i]));
|
||||
g_free(parasites[i]);
|
||||
}
|
||||
|
||||
|
||||
g_free(parasites);
|
||||
return ret;
|
||||
}
|
||||
@ -356,7 +356,7 @@ drw_set_pixel(PyGimpDrawable *self, PyObject *args)
|
||||
|
||||
if (!PyInt_Check(item)) {
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
"pixel values must be a sequence of ints");
|
||||
"pixel values must be a sequence of ints");
|
||||
goto out;
|
||||
}
|
||||
|
||||
@ -364,7 +364,7 @@ drw_set_pixel(PyGimpDrawable *self, PyObject *args)
|
||||
|
||||
if (val < 0 || val > 255) {
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
"pixel values must be between 0 and 255");
|
||||
"pixel values must be between 0 and 255");
|
||||
goto out;
|
||||
}
|
||||
|
||||
@ -393,7 +393,7 @@ out:
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
} else
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
@ -808,7 +808,7 @@ drw_transform_matrix(PyGimpDrawable *self, PyObject *args, PyObject *kwargs)
|
||||
|
||||
static char *kwlist[] = { "coeff_0_0", "coeff_0_1", "coeff_0_2",
|
||||
"coeff_1_0", "coeff_1_1", "coeff_1_2",
|
||||
"coeff_2_0", "coeff_2_1", "coeff_2_2",
|
||||
"coeff_2_0", "coeff_2_1", "coeff_2_2",
|
||||
"transform_direction", "interpolation",
|
||||
"supersample", "recursion_level",
|
||||
"clip_result", NULL };
|
||||
@ -817,7 +817,7 @@ drw_transform_matrix(PyGimpDrawable *self, PyObject *args, PyObject *kwargs)
|
||||
"dddddddddii|iii:transform_matrix", kwlist,
|
||||
&coeff_0_0, &coeff_0_1, &coeff_0_2,
|
||||
&coeff_1_0, &coeff_1_1, &coeff_1_2,
|
||||
&coeff_2_0, &coeff_2_1, &coeff_2_2,
|
||||
&coeff_2_0, &coeff_2_1, &coeff_2_2,
|
||||
&transform_direction, &interpolation,
|
||||
&supersample, &recursion_level,
|
||||
&clip_result))
|
||||
@ -826,7 +826,7 @@ drw_transform_matrix(PyGimpDrawable *self, PyObject *args, PyObject *kwargs)
|
||||
id = gimp_drawable_transform_matrix(self->ID,
|
||||
coeff_0_0, coeff_0_1, coeff_0_2,
|
||||
coeff_1_0, coeff_1_1, coeff_1_2,
|
||||
coeff_2_0, coeff_2_1, coeff_2_2,
|
||||
coeff_2_0, coeff_2_1, coeff_2_2,
|
||||
transform_direction, interpolation,
|
||||
supersample, recursion_level,
|
||||
clip_result);
|
||||
@ -845,7 +845,7 @@ drw_transform_matrix_default(PyGimpDrawable *self, PyObject *args, PyObject *kwa
|
||||
|
||||
static char *kwlist[] = { "coeff_0_0", "coeff_0_1", "coeff_0_2",
|
||||
"coeff_1_0", "coeff_1_1", "coeff_1_2",
|
||||
"coeff_2_0", "coeff_2_1", "coeff_2_2",
|
||||
"coeff_2_0", "coeff_2_1", "coeff_2_2",
|
||||
"interpolate", "clip_result", NULL };
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs,
|
||||
@ -853,7 +853,7 @@ drw_transform_matrix_default(PyGimpDrawable *self, PyObject *args, PyObject *kwa
|
||||
kwlist,
|
||||
&coeff_0_0, &coeff_0_1, &coeff_0_2,
|
||||
&coeff_1_0, &coeff_1_1, &coeff_1_2,
|
||||
&coeff_2_0, &coeff_2_1, &coeff_2_2,
|
||||
&coeff_2_0, &coeff_2_1, &coeff_2_2,
|
||||
&interpolate, &clip_result))
|
||||
return NULL;
|
||||
|
||||
@ -1075,7 +1075,7 @@ drw_get_visible(PyGimpDrawable *self, void *closure)
|
||||
{
|
||||
return PyBool_FromLong(gimp_drawable_get_visible(self->ID));
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
drw_set_visible(PyGimpDrawable *self, PyObject *value, void *closure)
|
||||
{
|
||||
@ -1238,8 +1238,8 @@ lay_copy(PyGimpLayer *self, PyObject *args, PyObject *kwargs)
|
||||
&add_alpha))
|
||||
return NULL;
|
||||
|
||||
return_vals = gimp_run_procedure("gimp_layer_copy",
|
||||
&nreturn_vals,
|
||||
return_vals = gimp_run_procedure("gimp-layer-copy",
|
||||
&nreturn_vals,
|
||||
GIMP_PDB_LAYER, self->ID,
|
||||
GIMP_PDB_INT32, add_alpha,
|
||||
GIMP_PDB_END);
|
||||
@ -1698,7 +1698,7 @@ lay_init(PyGimpLayer *self, PyObject *args, PyObject *kwargs)
|
||||
GimpImageType type = GIMP_RGB_IMAGE;
|
||||
double opacity = 100.0;
|
||||
GimpLayerModeEffects mode = GIMP_NORMAL_MODE;
|
||||
|
||||
|
||||
|
||||
if (!PyArg_ParseTuple(args, "O!sii|idi:gimp.Layer.__init__",
|
||||
&PyGimpImage_Type, &img, &name, &width, &height,
|
||||
@ -1793,7 +1793,7 @@ static PyObject *
|
||||
chn_copy(PyGimpChannel *self)
|
||||
{
|
||||
gint32 id;
|
||||
|
||||
|
||||
id = gimp_channel_copy(self->ID);
|
||||
|
||||
if (id == -1) {
|
||||
|
Reference in New Issue
Block a user