hopefully this helps tigert, but I doubt it ...

--Sven
This commit is contained in:
Sven Neumann
1999-09-01 19:09:52 +00:00
parent a212e44d79
commit 53af3d104a
2 changed files with 23 additions and 17 deletions

View File

@ -1,3 +1,7 @@
Wed Sep 1 21:12:42 MEST 1999 Sven Neumann <sven@gimp.org>
* plug-ins/common/screenshot.c: a small bugfix
Wed Sep 1 20:45:56 MEST 1999 Sven Neumann <sven@gimp.org> Wed Sep 1 20:45:56 MEST 1999 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/fileops.pdb * tools/pdbgen/pdb/fileops.pdb

View File

@ -1,7 +1,7 @@
/* /*
* ScreenShot plug-in v0.9.1 * ScreenShot plug-in v0.9.2
* Sven Neumann, neumanns@uni-duesseldorf.de * Sven Neumann, neumanns@uni-duesseldorf.de
* 1999/08/12 * 1999/09/01
* *
* Any suggestions, bug-reports or patches are very welcome. * Any suggestions, bug-reports or patches are very welcome.
* *
@ -40,8 +40,9 @@
* (98/05/28) v0.7 use g_message for error output * (98/05/28) v0.7 use g_message for error output
* (98/06/04) v0.8 added delay-time for root window shot * (98/06/04) v0.8 added delay-time for root window shot
* (98/06/06) v0.9 fixed a stupid bug in the dialog * (98/06/06) v0.9 fixed a stupid bug in the dialog
* (99/08/12) v0.9.1 somebody changed the dialog, * (99/08/12) v0.9.1 somebody changed the dialog;
* unset the image name and set the resolution * unset the image name and set the resolution
* (99/09/01) v0.9.2 try to fix a bug
*/ */
#include <stdio.h> #include <stdio.h>
@ -57,7 +58,7 @@
/* Defines */ /* Defines */
#define PLUG_IN_NAME "extension_screenshot" #define PLUG_IN_NAME "extension_screenshot"
#define PLUG_IN_PRINT_NAME "Screen Shot" #define PLUG_IN_PRINT_NAME "Screen Shot"
#define PLUG_IN_VERSION "v0.9.1 (99/08/12)" #define PLUG_IN_VERSION "v0.9.2 (99/09/01)"
#define PLUG_IN_MENU_PATH "<Toolbox>/File/Acquire/Screen Shot..." #define PLUG_IN_MENU_PATH "<Toolbox>/File/Acquire/Screen Shot..."
#define PLUG_IN_AUTHOR "Sven Neumann (neumanns@uni-duesseldorf.de)" #define PLUG_IN_AUTHOR "Sven Neumann (neumanns@uni-duesseldorf.de)"
#define PLUG_IN_COPYRIGHT "Sven Neumann" #define PLUG_IN_COPYRIGHT "Sven Neumann"
@ -111,17 +112,17 @@ static void run (gchar *name,
GParam * param, /* parameters passed in */ GParam * param, /* parameters passed in */
gint *nreturn_vals, /* number of parameters returned */ gint *nreturn_vals, /* number of parameters returned */
GParam ** return_vals); /* parameters to be returned */ GParam ** return_vals); /* parameters to be returned */
static void shoot (void); static void shoot (void);
static gint shoot_dialog (void); static gint shoot_dialog (void);
static void shoot_close_callback (GtkWidget *widget, static void shoot_close_callback (GtkWidget *widget,
gpointer data); gpointer data);
static void shoot_ok_callback (GtkWidget *widget, static void shoot_ok_callback (GtkWidget *widget,
gpointer data); gpointer data);
static void shoot_toggle_update (GtkWidget *widget, static void shoot_toggle_update (GtkWidget *widget,
gpointer radio_button); gpointer radio_button);
static void shoot_display_image (gint32 image); static void shoot_display_image (gint32 image);
static void shoot_delay (gint32 delay); static void shoot_delay (gint32 delay);
static gint shoot_delay_callback (gpointer data); static gint shoot_delay_callback (gpointer data);
/* Global Variables */ /* Global Variables */
GPlugInInfo PLUG_IN_INFO = GPlugInInfo PLUG_IN_INFO =
@ -163,11 +164,11 @@ static void query (void)
} }
static void static void
run (gchar *name, /* name of plugin */ run (gchar *name, /* name of plugin */
gint nparams, /* number of in-paramters */ gint nparams, /* number of in-paramters */
GParam * param, /* in-parameters */ GParam * param, /* in-parameters */
gint *nreturn_vals, /* number of out-parameters */ gint *nreturn_vals, /* number of out-parameters */
GParam ** return_vals) /* out-parameters */ GParam ** return_vals) /* out-parameters */
{ {
/* Get the runmode from the in-parameters */ /* Get the runmode from the in-parameters */
@ -601,6 +602,7 @@ shoot_display_image (gint32 image)
&retvals, &retvals,
PARAM_IMAGE, image, PARAM_IMAGE, image,
PARAM_END); PARAM_END);
gimp_destroy_params (params, retvals);
} }