got rid of a global variable.

2004-12-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/unsharp.c: got rid of a global variable.
This commit is contained in:
Sven Neumann 2004-12-11 13:45:06 +00:00 committed by Sven Neumann
parent 9cd408dd8f
commit ef3c2d48da
2 changed files with 9 additions and 4 deletions

View file

@ -1,5 +1,7 @@
2004-12-11 Sven Neumann <sven@gimp.org>
* plug-ins/common/unsharp.c: got rid of a global variable.
* plug-ins/common/bumpmap.c (dialog_bumpmap_callback): more changes
to restore the gimp-2.0 behaviour.

View file

@ -36,15 +36,18 @@
#include "libgimp/stdplugins-intl.h"
#define PLUG_IN_VERSION "0.10"
#define SCALE_WIDTH 150
#define ENTRY_WIDTH 4
/* uncomment this line to get a rough feel of how long the
plug-in takes to run */
/* Uncomment this line to get a rough estimate of
* how long the plug-in takes to run.
*/
/* #define TIMER */
typedef struct
{
gdouble radius;
@ -116,7 +119,6 @@ GimpPlugInInfo PLUG_IN_INFO =
run, /* run_proc */
};
static GimpRunMode run_mode;
MAIN ()
@ -164,8 +166,9 @@ run (const gchar *name,
static GimpParam values[1];
GimpPDBStatusType status = GIMP_PDB_SUCCESS;
GimpDrawable *drawable;
GimpRunMode run_mode;
#ifdef TIMER
GTimer *timer = g_timer_new ();
GTimer *timer = g_timer_new ();
#endif
run_mode = param[0].data.d_int32;