mirror of https://github.com/GNOME/gimp.git
applied patch from Wolfgang Hofer which makes the plug-in use its
2004-11-22 Michael Natterer <mitch@gimp.org> * plug-ins/common/struc.c: applied patch from Wolfgang Hofer which makes the plug-in use its procedure name for storing the "last_vals" struct. Fixes bug #159028. * plug-ins/common/tileit.c: ditto. Fixes bug #159029.
This commit is contained in:
parent
02b0c67397
commit
88b3cb7df2
|
@ -1,3 +1,11 @@
|
|||
2004-11-22 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* plug-ins/common/struc.c: applied patch from Wolfgang Hofer
|
||||
which makes the plug-in use its procedure name for
|
||||
storing the "last_vals" struct. Fixes bug #159028.
|
||||
|
||||
* plug-ins/common/tileit.c: ditto. Fixes bug #159029.
|
||||
|
||||
2004-11-22 DindinX <dindinx@gimp.org>
|
||||
|
||||
* plug-ins/gfig/gfig-line.c: fixed a stupid bug which made all lines
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
|
||||
#include "libgimp/stdplugins-intl.h"
|
||||
|
||||
#define PLUG_IN_NAME "plug_in_apply_canvas"
|
||||
|
||||
static const gchar sdata[] =
|
||||
{
|
||||
|
@ -1136,7 +1137,7 @@ query (void)
|
|||
{ GIMP_PDB_INT32, "depth", "Texture depth (1 - 50)" }
|
||||
};
|
||||
|
||||
gimp_install_procedure ("plug_in_apply_canvas",
|
||||
gimp_install_procedure (PLUG_IN_NAME,
|
||||
"Adds a canvas texture map to the picture",
|
||||
"This function applies a canvas texture map to the drawable.",
|
||||
"Karl-Johan Andersson", /* Author */
|
||||
|
@ -1148,8 +1149,7 @@ query (void)
|
|||
G_N_ELEMENTS (args), 0,
|
||||
args, NULL);
|
||||
|
||||
gimp_plugin_menu_register ("plug_in_apply_canvas",
|
||||
"<Image>/Filters/Artistic");
|
||||
gimp_plugin_menu_register (PLUG_IN_NAME, "<Image>/Filters/Artistic");
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1181,7 +1181,7 @@ run (const gchar *name,
|
|||
{
|
||||
case GIMP_RUN_INTERACTIVE:
|
||||
/* Possibly retrieve data */
|
||||
gimp_get_data ("plug_in_struc", &svals);
|
||||
gimp_get_data (PLUG_IN_NAME, &svals);
|
||||
|
||||
/* First acquire information with a dialog */
|
||||
if (! struc_dialog (drawable))
|
||||
|
@ -1211,7 +1211,7 @@ run (const gchar *name,
|
|||
|
||||
case GIMP_RUN_WITH_LAST_VALS:
|
||||
/* Possibly retrieve data */
|
||||
gimp_get_data ("plug_in_struc", &svals);
|
||||
gimp_get_data (PLUG_IN_NAME, &svals);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -1233,7 +1233,7 @@ run (const gchar *name,
|
|||
gimp_displays_flush ();
|
||||
/* Store data */
|
||||
if (run_mode == GIMP_RUN_INTERACTIVE)
|
||||
gimp_set_data ("plug_in_struc", &svals, sizeof (StrucValues));
|
||||
gimp_set_data (PLUG_IN_NAME, &svals, sizeof (StrucValues));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -49,6 +49,7 @@
|
|||
|
||||
#include "libgimp/stdplugins-intl.h"
|
||||
|
||||
#define PLUG_IN_NAME "plug_in_small_tiles"
|
||||
|
||||
/***** Magic numbers *****/
|
||||
|
||||
|
@ -214,7 +215,7 @@ query (void)
|
|||
{ GIMP_PDB_INT32, "number_of_tiles", "Number of tiles to make" }
|
||||
};
|
||||
|
||||
gimp_install_procedure ("plug_in_small_tiles",
|
||||
gimp_install_procedure (PLUG_IN_NAME,
|
||||
"Tiles image into smaller versions of the orginal",
|
||||
"More here later",
|
||||
"Andy Thomas",
|
||||
|
@ -226,7 +227,7 @@ query (void)
|
|||
G_N_ELEMENTS (args), 0,
|
||||
args, NULL);
|
||||
|
||||
gimp_plugin_menu_register ("plug_in_small_tiles", "<Image>/Filters/Map");
|
||||
gimp_plugin_menu_register (PLUG_IN_NAME, "<Image>/Filters/Map");
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -282,7 +283,7 @@ run (const gchar *name,
|
|||
switch (run_mode)
|
||||
{
|
||||
case GIMP_RUN_INTERACTIVE:
|
||||
gimp_get_data ("plug_in_tileit", &itvals);
|
||||
gimp_get_data (PLUG_IN_NAME, &itvals);
|
||||
if (! tileit_dialog ())
|
||||
{
|
||||
gimp_drawable_detach (drawable);
|
||||
|
@ -302,7 +303,7 @@ run (const gchar *name,
|
|||
break;
|
||||
|
||||
case GIMP_RUN_WITH_LAST_VALS:
|
||||
gimp_get_data ("plug_in_tileit", &itvals);
|
||||
gimp_get_data (PLUG_IN_NAME, &itvals);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -325,7 +326,7 @@ run (const gchar *name,
|
|||
gimp_displays_flush ();
|
||||
|
||||
if (run_mode == GIMP_RUN_INTERACTIVE)
|
||||
gimp_set_data ("plug_in_tileit", &itvals, sizeof (TileItVals));
|
||||
gimp_set_data (PLUG_IN_NAME, &itvals, sizeof (TileItVals));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue