mirror of https://github.com/GNOME/gimp.git
slight fix for arg handling, shouldn't have any functional difference.
2003-07-25 Manish Singh <yosh@gimp.org> * plug-ins/pygimp/gimpfu.py: slight fix for arg handling, shouldn't have any functional difference. This code should be redone at some point. * plug-ins/pygimp/gimpmodule.c * plug-ins/pygimp/pygimp.h * plug-ins/pygimp/pygimp-pdb.c: constify * plug-ins/pygimp/plug-ins/sphere.py: use new blend pdb interface
This commit is contained in:
parent
bb07ffe9a4
commit
4c3671b29f
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
|||
2003-07-25 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* plug-ins/pygimp/gimpfu.py: slight fix for arg handling, shouldn't
|
||||
have any functional difference. This code should be redone at some
|
||||
point.
|
||||
|
||||
* plug-ins/pygimp/gimpmodule.c
|
||||
* plug-ins/pygimp/pygimp.h
|
||||
* plug-ins/pygimp/pygimp-pdb.c: constify
|
||||
|
||||
* plug-ins/pygimp/plug-ins/sphere.py: use new blend pdb interface
|
||||
|
||||
2003-07-25 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/core/gimpimage-undo-push.c (gimp_image_remove_layer)
|
||||
|
|
|
@ -427,7 +427,7 @@ def _run(func_name, params):
|
|||
menupath = _registered_plugins_[func_name][5]
|
||||
func = _registered_plugins_[func_name][10]
|
||||
|
||||
if plugin_type == PLUGIN:
|
||||
if plugin_type == PLUGIN and menupath[:10] != '<Toolbox>/':
|
||||
if menupath[:7] == '<Save>/':
|
||||
end = 5
|
||||
else:
|
||||
|
|
|
@ -88,7 +88,7 @@ pygimp_query_proc(void)
|
|||
}
|
||||
|
||||
static void
|
||||
pygimp_run_proc(char *name, int nparams, GimpParam *params,
|
||||
pygimp_run_proc(const char *name, int nparams, const GimpParam *params,
|
||||
int *nreturn_vals, GimpParam **return_vals)
|
||||
{
|
||||
PyObject *args, *ret;
|
||||
|
|
|
@ -58,8 +58,8 @@ def python_sphere(radius, light, shadow, bg_colour, sphere_colour):
|
|||
pdb.gimp_ellipse_select(img, cx - radius, cy - radius, 2 * radius,
|
||||
2 * radius, CHANNEL_OP_REPLACE, TRUE, FALSE, 0)
|
||||
pdb.gimp_blend(drawable, FG_BG_RGB_MODE, NORMAL_MODE, RADIAL,
|
||||
100, offset, REPEAT_NONE, FALSE, 0, 0, light_x,
|
||||
light_y, light_end_x, light_end_y)
|
||||
100, offset, REPEAT_NONE, FALSE, FALSE, 0, 0, TRUE,
|
||||
light_x, light_y, light_end_x, light_end_y)
|
||||
pdb.gimp_selection_none(img)
|
||||
gimp.set_background(old_bg)
|
||||
gimp.set_foreground(old_fg)
|
||||
|
|
|
@ -109,7 +109,7 @@ pygimp_param_print(int nparams, GimpParam *params)
|
|||
#endif
|
||||
|
||||
PyObject *
|
||||
pygimp_param_to_tuple(int nparams, GimpParam *params)
|
||||
pygimp_param_to_tuple(int nparams, const GimpParam *params)
|
||||
{
|
||||
PyObject *args, *tmp;
|
||||
int i, j, n;
|
||||
|
@ -303,7 +303,7 @@ pygimp_param_to_tuple(int nparams, GimpParam *params)
|
|||
}
|
||||
|
||||
GimpParam *
|
||||
pygimp_param_from_tuple(PyObject *args, GimpParamDef *ptype, int nparams)
|
||||
pygimp_param_from_tuple(PyObject *args, const GimpParamDef *ptype, int nparams)
|
||||
{
|
||||
PyObject *tuple, *item, *r, *g, *b, *x, *y, *w, *h;
|
||||
GimpParam *ret;
|
||||
|
|
|
@ -27,8 +27,8 @@ G_BEGIN_DECLS
|
|||
|
||||
extern PyObject *pygimp_error;
|
||||
|
||||
PyObject *pygimp_param_to_tuple(int nparams, GimpParam *params);
|
||||
GimpParam *pygimp_param_from_tuple(PyObject *args, GimpParamDef *ptype,
|
||||
PyObject *pygimp_param_to_tuple(int nparams, const GimpParam *params);
|
||||
GimpParam *pygimp_param_from_tuple(PyObject *args, const GimpParamDef *ptype,
|
||||
int nparams);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue