[gimp] file-gif-save: Export images in non-interactive run mode (Bug #698450)



commit 197280311ab1bbe4aa2e5e5fbb8a621c54232df4
Author: Mukund Sivaraman <muks banu com>
Date:   Fri Sep 26 13:35:54 2014 +0530

    file-gif-save: Export images in non-interactive run mode (Bug #698450)

 plug-ins/common/file-gif-save.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/file-gif-save.c b/plug-ins/common/file-gif-save.c
index 90c43ae..3233c71 100644
--- a/plug-ins/common/file-gif-save.c
+++ b/plug-ins/common/file-gif-save.c
@@ -283,7 +283,8 @@ run (const gchar      *name,
               break;
 
             default:
-              break;
+              g_warning("Unhandled run_mode (%d)", run_mode);
+              status = GIMP_PDB_CALLING_ERROR;
             }
         }
 
@@ -291,6 +292,7 @@ run (const gchar      *name,
       switch (run_mode)
         {
         case GIMP_RUN_INTERACTIVE:
+        case GIMP_RUN_NONINTERACTIVE:
         case GIMP_RUN_WITH_LAST_VALS:
           {
             GimpExportCapabilities capabilities =
@@ -313,8 +315,9 @@ run (const gchar      *name,
               }
           }
           break;
+
         default:
-          break;
+          status = GIMP_PDB_CALLING_ERROR;
         }
 
       /* Write the image to file */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]