mirror of https://github.com/GNOME/gimp.git
indentation & whitespace cleanup.
2003-12-21 Michael Natterer <mitch@gimp.org> * plug-ins/common/convmatrix.c: indentation & whitespace cleanup.
This commit is contained in:
parent
92a3a65e8e
commit
c0e8e2474b
|
@ -1,3 +1,7 @@
|
||||||
|
2003-12-21 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
|
* plug-ins/common/convmatrix.c: indentation & whitespace cleanup.
|
||||||
|
|
||||||
2003-12-21 Michael Natterer <mitch@gimp.org>
|
2003-12-21 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
* app/display/gimpdisplayshell-dnd.[ch]: added
|
* app/display/gimpdisplayshell-dnd.[ch]: added
|
||||||
|
|
|
@ -212,8 +212,6 @@ run (const gchar *name,
|
||||||
|
|
||||||
INIT_I18N ();
|
INIT_I18N ();
|
||||||
|
|
||||||
(void) name; /* Shut up warnings about unused parameters. */
|
|
||||||
|
|
||||||
*nreturn_vals = 1;
|
*nreturn_vals = 1;
|
||||||
*return_vals = values;
|
*return_vals = values;
|
||||||
|
|
||||||
|
@ -237,12 +235,17 @@ run (const gchar *name,
|
||||||
if (run_mode == GIMP_RUN_NONINTERACTIVE)
|
if (run_mode == GIMP_RUN_NONINTERACTIVE)
|
||||||
{
|
{
|
||||||
if (nparams != 11)
|
if (nparams != 11)
|
||||||
|
{
|
||||||
status = GIMP_PDB_CALLING_ERROR;
|
status = GIMP_PDB_CALLING_ERROR;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (param[3].data.d_int32 != 25) {
|
if (param[3].data.d_int32 != 25)
|
||||||
|
{
|
||||||
status = GIMP_PDB_CALLING_ERROR;
|
status = GIMP_PDB_CALLING_ERROR;
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
for (y = 0; y < 5; y++)
|
for (y = 0; y < 5; y++)
|
||||||
for (x = 0; x < 5; x++)
|
for (x = 0; x < 5; x++)
|
||||||
my_config.matrix[x][y]=param[4].data.d_floatarray[y*5+x];
|
my_config.matrix[x][y]=param[4].data.d_floatarray[y*5+x];
|
||||||
|
@ -253,9 +256,12 @@ run (const gchar *name,
|
||||||
my_config.offset = param[7].data.d_float;
|
my_config.offset = param[7].data.d_float;
|
||||||
|
|
||||||
|
|
||||||
if (param[8].data.d_int32 != 5) {
|
if (param[8].data.d_int32 != 5)
|
||||||
|
{
|
||||||
status = GIMP_PDB_CALLING_ERROR;
|
status = GIMP_PDB_CALLING_ERROR;
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
for (y = 0; y < 5; y++)
|
for (y = 0; y < 5; y++)
|
||||||
my_config.channels[y] = param[9].data.d_int32array[y];
|
my_config.channels[y] = param[9].data.d_int32array[y];
|
||||||
}
|
}
|
||||||
|
@ -275,7 +281,8 @@ run (const gchar *name,
|
||||||
* expect the user to set us up with the right values using gdb.
|
* expect the user to set us up with the right values using gdb.
|
||||||
*/
|
*/
|
||||||
check_config ();
|
check_config ();
|
||||||
if (!dialog())
|
|
||||||
|
if (! dialog ())
|
||||||
{
|
{
|
||||||
/* The dialog was closed, or something similarly evil happened. */
|
/* The dialog was closed, or something similarly evil happened. */
|
||||||
status = GIMP_PDB_EXECUTION_ERROR;
|
status = GIMP_PDB_EXECUTION_ERROR;
|
||||||
|
@ -286,8 +293,8 @@ run (const gchar *name,
|
||||||
if (status == GIMP_PDB_SUCCESS)
|
if (status == GIMP_PDB_SUCCESS)
|
||||||
{
|
{
|
||||||
/* Make sure that the drawable is gray or RGB color */
|
/* Make sure that the drawable is gray or RGB color */
|
||||||
if (gimp_drawable_is_rgb(drawable->drawable_id) ||
|
if (gimp_drawable_is_rgb (drawable->drawable_id) ||
|
||||||
gimp_drawable_is_gray(drawable->drawable_id))
|
gimp_drawable_is_gray (drawable->drawable_id))
|
||||||
{
|
{
|
||||||
gimp_progress_init (_("Applying convolution"));
|
gimp_progress_init (_("Applying convolution"));
|
||||||
gimp_tile_cache_ntiles (2 * (drawable->width /
|
gimp_tile_cache_ntiles (2 * (drawable->width /
|
||||||
|
@ -305,6 +312,7 @@ run (const gchar *name,
|
||||||
{
|
{
|
||||||
status = GIMP_PDB_EXECUTION_ERROR;
|
status = GIMP_PDB_EXECUTION_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
gimp_drawable_detach (drawable);
|
gimp_drawable_detach (drawable);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue