Fix method format string, so the method is actual callable in a script.

2008-08-24  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/pygimp-drawable.c (drw_transform_rotate,
	drw_transform_flip_simple): Fix method format string, so the
	method is actual callable in a script.


svn path=/trunk/; revision=26744
This commit is contained in:
Lars-Peter Clausen 2008-08-24 16:31:35 +00:00 committed by Lars-Peter Clausen
parent ee44ab3d32
commit c796bca92f
2 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2008-08-24 Lars-Peter Clausen <lars@metafoo.de>
* plug-ins/pygimp/pygimp-drawable.c (drw_transform_rotate,
drw_transform_flip_simple): Fix method format string, so the
method is actual callable in a script.
2008-08-24 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimplevelstool.c (gimp_levels_tool_dialog): Set

View File

@ -131,6 +131,12 @@ drw_get_tile(PyGimpDrawable *self, PyObject *args, PyObject *kwargs)
ensure_drawable(self);
if(row < 0 || row >= self->drawable->ntile_rows ||
col < 0 || col >= self->drawable->ntile_cols) {
Py_INCREF(Py_None);
return Py_None;
}
t = gimp_drawable_get_tile(self->drawable, shadow, row, col);
return pygimp_tile_new(t, self);
}
@ -148,6 +154,11 @@ drw_get_tile2(PyGimpDrawable *self, PyObject *args, PyObject *kwargs)
return NULL;
ensure_drawable(self);
if(x < 0 || x >= self->drawable->width ||
y < 0 || y >= self->drawable->height) {
Py_INCREF(Py_None);
return Py_None;
}
t = gimp_drawable_get_tile2(self->drawable, shadow, x, y);
return pygimp_tile_new(t, self);
@ -474,7 +485,7 @@ drw_transform_flip_simple(PyGimpDrawable *self, PyObject *args, PyObject *kwargs
"clip_result", NULL };
if (!PyArg_ParseTupleAndKeywords(args, kwargs,
"iid|:transform_flip_simple", kwlist,
"iid|i:transform_flip_simple", kwlist,
&flip_type, &auto_center, &axis,
&clip_result))
return NULL;
@ -578,7 +589,7 @@ drw_transform_rotate(PyGimpDrawable *self, PyObject *args, PyObject *kwargs)
"clip_result", NULL };
if (!PyArg_ParseTupleAndKeywords(args, kwargs,
"diiii|iii:transform_rotate", kwlist,
"diiiii|iii:transform_rotate", kwlist,
&angle, &auto_center, &center_x, &center_y,
&transform_direction, &interpolation,
&supersample, &recursion_level,