mirror of https://github.com/GNOME/gimp.git
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:
parent
05581fce40
commit
679e597e77
|
@ -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>
|
2000-06-26 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* plug-ins/common/url.c: use a fixed-size buffer to make
|
* plug-ins/common/url.c: use a fixed-size buffer to make
|
||||||
|
|
|
@ -178,6 +178,15 @@ static ExportAction export_action_animate_or_flatten =
|
||||||
0
|
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 =
|
static ExportAction export_action_flatten =
|
||||||
{
|
{
|
||||||
export_flatten,
|
export_flatten,
|
||||||
|
@ -512,7 +521,7 @@ gimp_export_image (gint32 *image_ID,
|
||||||
if (background_has_alpha || capabilities & NEEDS_ALPHA)
|
if (background_has_alpha || capabilities & NEEDS_ALPHA)
|
||||||
actions = g_slist_prepend (actions, &export_action_merge);
|
actions = g_slist_prepend (actions, &export_action_merge);
|
||||||
else
|
else
|
||||||
actions = g_slist_prepend (actions, &export_action_flatten);
|
actions = g_slist_prepend (actions, &export_action_merge_flat);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue