added a new export_action type so PNG for example correctly shows "PNG

2000-06-26  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpexport.c: added a new export_action type
	so PNG for example correctly shows "PNG can't handle layers"
	even if the suggested action is to flatten the image since
	the background has no alpha-channel. Fixes bug #15085.
This commit is contained in:
Sven Neumann 2000-06-25 23:18:56 +00:00 committed by Sven Neumann
parent 05581fce40
commit 679e597e77
2 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2000-06-26 Sven Neumann <sven@gimp.org>
* libgimp/gimpexport.c: added a new export_action type
so PNG for example correctly shows "PNG can't handle layers"
even if the suggested action is to flatten the image since
the background has no alpha-channel. Fixes bug #15085.
2000-06-26 Sven Neumann <sven@gimp.org>
* plug-ins/common/url.c: use a fixed-size buffer to make

View File

@ -178,6 +178,15 @@ static ExportAction export_action_animate_or_flatten =
0
};
static ExportAction export_action_merge_flat =
{
export_flatten,
NULL,
N_("can't Handle Layers"),
{ N_("Flatten Image"), NULL },
0
};
static ExportAction export_action_flatten =
{
export_flatten,
@ -512,7 +521,7 @@ gimp_export_image (gint32 *image_ID,
if (background_has_alpha || capabilities & NEEDS_ALPHA)
actions = g_slist_prepend (actions, &export_action_merge);
else
actions = g_slist_prepend (actions, &export_action_flatten);
actions = g_slist_prepend (actions, &export_action_merge_flat);
}
}