[gimp] Bug 736437 - Ignore unknown file extensions when loading palettes and gradients



commit 0c33499b7b23eedec1d94fc9966c455bd3e39557
Author: Michael Natterer <mitch gimp org>
Date:   Sun Sep 14 23:27:18 2014 +0200

    Bug 736437 - Ignore unknown file extensions when loading palettes and gradients
    
    Don't try to load palettes and gradients with unknown extension. We
    introduced extensions for these files a *lot* of years ago, so we're
    dropping this legacy feature now, everybody can just rename their old
    files to have the right extensions (the file formats have not
    changed).

 app/core/gimp.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/app/core/gimp.c b/app/core/gimp.c
index 2cafa16..68bd32c 100644
--- a/app/core/gimp.c
+++ b/app/core/gimp.c
@@ -614,20 +614,18 @@ gimp_real_initialize (Gimp               *gimp,
   static const GimpDataFactoryLoaderEntry pattern_loader_entries[] =
   {
     { gimp_pattern_load,         GIMP_PATTERN_FILE_EXTENSION,         FALSE },
-    { gimp_pattern_load_pixbuf,  NULL,                                FALSE }
+    { gimp_pattern_load_pixbuf,  NULL /* fallback loader */,          FALSE }
   };
 
   static const GimpDataFactoryLoaderEntry gradient_loader_entries[] =
   {
     { gimp_gradient_load,        GIMP_GRADIENT_FILE_EXTENSION,        TRUE  },
-    { gimp_gradient_load_svg,    GIMP_GRADIENT_SVG_FILE_EXTENSION,    FALSE },
-    { gimp_gradient_load,        NULL /* legacy loader */,            TRUE  }
+    { gimp_gradient_load_svg,    GIMP_GRADIENT_SVG_FILE_EXTENSION,    FALSE }
   };
 
   static const GimpDataFactoryLoaderEntry palette_loader_entries[] =
   {
-    { gimp_palette_load,         GIMP_PALETTE_FILE_EXTENSION,         TRUE  },
-    { gimp_palette_load,         NULL /* legacy loader */,            TRUE  }
+    { gimp_palette_load,         GIMP_PALETTE_FILE_EXTENSION,         TRUE  }
   };
 
   static const GimpDataFactoryLoaderEntry tool_preset_loader_entries[] =


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