[gimp] libgimp: gimpexport.c: default to saving as animation
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimp: gimpexport.c: default to saving as animation
- Date: Sun, 4 Sep 2016 15:12:52 +0000 (UTC)
commit f222a08e26875070539d81d6370a78cac7a8e875
Author: Michael Natterer <mitch gimp org>
Date: Sun Sep 4 17:10:57 2016 +0200
libgimp: gimpexport.c: default to saving as animation
if the plug-in specifies GIMP_EXPORT_CAN_HANDLE_LAYERS_AS_AMINATION
(instead of defaulting to flattening or merging visible layers).
libgimp/gimpexport.c | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/libgimp/gimpexport.c b/libgimp/gimpexport.c
index 8634812..2b211f6 100644
--- a/libgimp/gimpexport.c
+++ b/libgimp/gimpexport.c
@@ -256,19 +256,19 @@ static ExportAction export_action_merge_single =
static ExportAction export_action_animate_or_merge =
{
- export_merge,
NULL,
+ export_merge,
N_("%s plug-in can only handle layers as animation frames"),
- { N_("Merge Visible Layers"), N_("Save as Animation")},
+ { N_("Save as Animation"), N_("Merge Visible Layers") },
0
};
static ExportAction export_action_animate_or_flatten =
{
- export_flatten,
NULL,
+ export_flatten,
N_("%s plug-in can only handle layers as animation frames"),
- { N_("Flatten Image"), N_("Save as Animation") },
+ { N_("Save as Animation"), N_("Flatten Image") },
0
};
@@ -381,10 +381,14 @@ static ExportFunc
export_action_get_func (const ExportAction *action)
{
if (action->choice == 0 && action->default_action)
- return action->default_action;
+ {
+ return action->default_action;
+ }
if (action->choice == 1 && action->alt_action)
- return action->alt_action;
+ {
+ return action->alt_action;
+ }
return export_void;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]