wrapped some actions in a gimp_undo_push_group_start/end, so you dont have
2001-01-24 Simon Budig <simon@gimp.org>
* plug-ins/common/colortoalpha.c: wrapped some actions in a
gimp_undo_push_group_start/end, so you dont have to undo
two steps when the plugin adds an alpha channel.
This commit is contained in:
parent
ced452d43e
commit
9c132bf8b2
2 changed files with 15 additions and 2 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2001-01-24 Simon Budig <simon@gimp.org>
|
||||
|
||||
* plug-ins/common/colortoalpha.c: wrapped some actions in a
|
||||
gimp_undo_push_group_start/end, so you dont have to undo
|
||||
two steps when the plugin adds an alpha channel.
|
||||
|
||||
2001-01-24 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* libgimpwidgets/.cvsignore
|
||||
|
|
|
|||
|
|
@ -188,6 +188,7 @@ run (gchar *name,
|
|||
|
||||
if (status == GIMP_PDB_SUCCESS)
|
||||
{
|
||||
gimp_undo_push_group_start (image_ID);
|
||||
/* Add alpha if not present */
|
||||
gimp_layer_add_alpha (drawable->id);
|
||||
drawable = gimp_drawable_get (drawable->id);
|
||||
|
|
@ -200,14 +201,20 @@ run (gchar *name,
|
|||
gimp_progress_init (_("Removing color..."));
|
||||
|
||||
toalpha (drawable);
|
||||
gimp_displays_flush ();
|
||||
}
|
||||
gimp_drawable_detach (drawable);
|
||||
gimp_undo_push_group_end (image_ID);
|
||||
gimp_displays_flush ();
|
||||
}
|
||||
else
|
||||
{
|
||||
gimp_drawable_detach (drawable);
|
||||
}
|
||||
|
||||
if (run_mode == GIMP_RUN_INTERACTIVE)
|
||||
gimp_set_data ("plug_in_colortoalpha", &pvals, sizeof (pvals));
|
||||
|
||||
values[0].data.d_status = status;
|
||||
gimp_drawable_detach (drawable);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in a new issue