[gimp] app: add a GimpContext parameter to GimpDataLoadFunc



commit caad58d203d3923981eed4b0541efaa2a6685ab6
Author: Michael Natterer <mitch gimp org>
Date:   Sun Apr 11 13:12:41 2010 +0200

    app: add a GimpContext parameter to GimpDataLoadFunc

 app/actions/data-commands.c        |    3 ++-
 app/core/gimp.c                    |   18 ++++++++++++------
 app/core/gimpbrush-load.c          |   11 +++++++----
 app/core/gimpbrush-load.h          |    9 ++++++---
 app/core/gimpbrushgenerated-load.c |    3 ++-
 app/core/gimpbrushgenerated-load.h |    3 ++-
 app/core/gimpbrushpipe-load.c      |    6 ++++--
 app/core/gimpbrushpipe-load.h      |    3 ++-
 app/core/gimpdatafactory.c         |   28 +++++++++++++++++++---------
 app/core/gimpdatafactory.h         |    7 +++++--
 app/core/gimpdynamics-load.c       |    3 ++-
 app/core/gimpdynamics-load.h       |    3 ++-
 app/core/gimpgradient-load.c       |    6 ++++--
 app/core/gimpgradient-load.h       |    6 ++++--
 app/core/gimppalette-import.c      |    2 +-
 app/core/gimppalette-load.c        |    3 ++-
 app/core/gimppalette-load.h        |    3 ++-
 app/core/gimppattern-load.c        |    6 ++++--
 app/core/gimppattern-load.h        |    6 ++++--
 app/core/gimptoolpreset-load.c     |    5 ++++-
 app/core/gimptoolpreset-load.h     |    3 ++-
 app/pdb/brushes-cmds.c             |    2 +-
 app/pdb/gradients-cmds.c           |    2 +-
 app/pdb/palettes-cmds.c            |    2 +-
 app/pdb/patterns-cmds.c            |    2 +-
 tools/pdbgen/pdb/brushes.pdb       |    2 +-
 tools/pdbgen/pdb/gradients.pdb     |    2 +-
 tools/pdbgen/pdb/palettes.pdb      |    2 +-
 tools/pdbgen/pdb/patterns.pdb      |    2 +-
 29 files changed, 100 insertions(+), 53 deletions(-)
---
diff --git a/app/actions/data-commands.c b/app/actions/data-commands.c
index c0f048e..f15d93b 100644
--- a/app/actions/data-commands.c
+++ b/app/actions/data-commands.c
@@ -278,7 +278,8 @@ data_refresh_cmd_callback (GtkAction *action,
   return_if_no_gimp (gimp, user_data);
 
   gimp_set_busy (gimp);
-  gimp_data_factory_data_refresh (gimp_data_factory_view_get_data_factory (view));
+  gimp_data_factory_data_refresh (gimp_data_factory_view_get_data_factory (view),
+                                  action_data_get_context (user_data));
   gimp_unset_busy (gimp);
 }
 
diff --git a/app/core/gimp.c b/app/core/gimp.c
index 6bf20a4..9aeb0b0 100644
--- a/app/core/gimp.c
+++ b/app/core/gimp.c
@@ -949,23 +949,28 @@ gimp_restore (Gimp               *gimp,
 
   /*  initialize the list of gimp brushes    */
   status_callback (NULL, _("Brushes"), 0.1);
-  gimp_data_factory_data_init (gimp->brush_factory, gimp->no_data);
+  gimp_data_factory_data_init (gimp->brush_factory, gimp->user_context,
+                               gimp->no_data);
 
   /*  initialize the list of gimp dynamics   */
   status_callback (NULL, _("Dynamics"), 0.2);
-  gimp_data_factory_data_init (gimp->dynamics_factory, gimp->no_data);
+  gimp_data_factory_data_init (gimp->dynamics_factory, gimp->user_context,
+                               gimp->no_data);
 
   /*  initialize the list of gimp patterns   */
   status_callback (NULL, _("Patterns"), 0.3);
-  gimp_data_factory_data_init (gimp->pattern_factory, gimp->no_data);
+  gimp_data_factory_data_init (gimp->pattern_factory, gimp->user_context,
+                               gimp->no_data);
 
   /*  initialize the list of gimp palettes   */
   status_callback (NULL, _("Palettes"), 0.4);
-  gimp_data_factory_data_init (gimp->palette_factory, gimp->no_data);
+  gimp_data_factory_data_init (gimp->palette_factory, gimp->user_context,
+                               gimp->no_data);
 
   /*  initialize the list of gimp gradients  */
   status_callback (NULL, _("Gradients"), 0.5);
-  gimp_data_factory_data_init (gimp->gradient_factory, gimp->no_data);
+  gimp_data_factory_data_init (gimp->gradient_factory, gimp->user_context,
+                               gimp->no_data);
 
   /*  initialize the list of fonts  */
   status_callback (NULL, _("Fonts (this may take a while)"), 0.6);
@@ -974,7 +979,8 @@ gimp_restore (Gimp               *gimp,
 
   /*  initialize the list of gimp tool presets   */
   status_callback (NULL, _("Tool Presets"), 0.65);
-  gimp_data_factory_data_init (gimp->tool_preset_factory, gimp->no_data);
+  gimp_data_factory_data_init (gimp->tool_preset_factory, gimp->user_context,
+                               gimp->no_data);
 
   /*  initialize the template list  */
   status_callback (NULL, _("Templates"), 0.7);
diff --git a/app/core/gimpbrush-load.c b/app/core/gimpbrush-load.c
index 0551d28..56368a8 100644
--- a/app/core/gimpbrush-load.c
+++ b/app/core/gimpbrush-load.c
@@ -122,7 +122,8 @@ static gint32      abr_rle_decode                (FILE         *file,
 /*  public functions  */
 
 GList *
-gimp_brush_load (const gchar  *filename,
+gimp_brush_load (GimpContext  *context,
+                 const gchar  *filename,
                  GError      **error)
 {
   GimpBrush *brush;
@@ -141,7 +142,7 @@ gimp_brush_load (const gchar  *filename,
       return NULL;
     }
 
-  brush = gimp_brush_load_brush (fd, filename, error);
+  brush = gimp_brush_load_brush (context, fd, filename, error);
 
   close (fd);
 
@@ -152,7 +153,8 @@ gimp_brush_load (const gchar  *filename,
 }
 
 GimpBrush *
-gimp_brush_load_brush (gint          fd,
+gimp_brush_load_brush (GimpContext  *context,
+                       gint          fd,
                        const gchar  *filename,
                        GError      **error)
 {
@@ -400,7 +402,8 @@ gimp_brush_load_brush (gint          fd,
 }
 
 GList *
-gimp_brush_load_abr (const gchar  *filename,
+gimp_brush_load_abr (GimpContext  *context,
+                     const gchar  *filename,
                      GError      **error)
 {
   FILE      *file;
diff --git a/app/core/gimpbrush-load.h b/app/core/gimpbrush-load.h
index 6206915..4ed5716 100644
--- a/app/core/gimpbrush-load.h
+++ b/app/core/gimpbrush-load.h
@@ -25,13 +25,16 @@
 #define GIMP_BRUSH_PSP_FILE_EXTENSION    ".jbr"
 
 
-GList     * gimp_brush_load        (const gchar  *filename,
+GList     * gimp_brush_load        (GimpContext  *context,
+                                    const gchar  *filename,
                                     GError      **error);
-GimpBrush * gimp_brush_load_brush  (gint          fd,
+GimpBrush * gimp_brush_load_brush  (GimpContext  *context,
+                                    gint          fd,
                                     const gchar  *filename,
                                     GError      **error);
 
-GList     * gimp_brush_load_abr    (const gchar  *filename,
+GList     * gimp_brush_load_abr    (GimpContext  *context,
+                                    const gchar  *filename,
                                     GError      **error);
 
 
diff --git a/app/core/gimpbrushgenerated-load.c b/app/core/gimpbrushgenerated-load.c
index e54f4ad..9b08f48 100644
--- a/app/core/gimpbrushgenerated-load.c
+++ b/app/core/gimpbrushgenerated-load.c
@@ -43,7 +43,8 @@
 
 
 GList *
-gimp_brush_generated_load (const gchar  *filename,
+gimp_brush_generated_load (GimpContext  *context,
+                           const gchar  *filename,
                            GError      **error)
 {
   GimpBrush               *brush;
diff --git a/app/core/gimpbrushgenerated-load.h b/app/core/gimpbrushgenerated-load.h
index 03573ca..548690d 100644
--- a/app/core/gimpbrushgenerated-load.h
+++ b/app/core/gimpbrushgenerated-load.h
@@ -24,7 +24,8 @@
 #define GIMP_BRUSH_GENERATED_FILE_EXTENSION ".vbr"
 
 
-GList * gimp_brush_generated_load (const gchar  *filename,
+GList * gimp_brush_generated_load (GimpContext  *context,
+                                   const gchar  *filename,
                                    GError      **error);
 
 
diff --git a/app/core/gimpbrushpipe-load.c b/app/core/gimpbrushpipe-load.c
index 4a7c9cd..58fd7a3 100644
--- a/app/core/gimpbrushpipe-load.c
+++ b/app/core/gimpbrushpipe-load.c
@@ -55,7 +55,8 @@
 
 
 GList *
-gimp_brush_pipe_load (const gchar  *filename,
+gimp_brush_pipe_load (GimpContext  *context,
+                      const gchar  *filename,
                       GError      **error)
 {
   GimpBrushPipe     *pipe = NULL;
@@ -209,7 +210,8 @@ gimp_brush_pipe_load (const gchar  *filename,
 
   while (pipe->nbrushes < num_of_brushes)
     {
-      pipe->brushes[pipe->nbrushes] = gimp_brush_load_brush (fd, filename, NULL);
+      pipe->brushes[pipe->nbrushes] = gimp_brush_load_brush (context,
+                                                             fd, filename, NULL);
 
       if (pipe->brushes[pipe->nbrushes])
         {
diff --git a/app/core/gimpbrushpipe-load.h b/app/core/gimpbrushpipe-load.h
index 4e26ec5..0c08634 100644
--- a/app/core/gimpbrushpipe-load.h
+++ b/app/core/gimpbrushpipe-load.h
@@ -23,7 +23,8 @@
 #define GIMP_BRUSH_PIPE_FILE_EXTENSION ".gih"
 
 
-GList * gimp_brush_pipe_load (const gchar  *filename,
+GList * gimp_brush_pipe_load (GimpContext  *context,
+                              const gchar  *filename,
                               GError      **error);
 
 
diff --git a/app/core/gimpdatafactory.c b/app/core/gimpdatafactory.c
index aecdf2c..cbcc3b6 100644
--- a/app/core/gimpdatafactory.c
+++ b/app/core/gimpdatafactory.c
@@ -74,6 +74,7 @@ struct _GimpDataFactoryPriv
 static void    gimp_data_factory_finalize     (GObject              *object);
 
 static void    gimp_data_factory_data_load    (GimpDataFactory      *factory,
+                                               GimpContext          *context,
                                                GHashTable           *cache);
 
 static gint64  gimp_data_factory_get_memsize  (GimpObject           *object,
@@ -215,9 +216,11 @@ gimp_data_factory_new (Gimp                             *gimp,
 
 void
 gimp_data_factory_data_init (GimpDataFactory *factory,
+                             GimpContext     *context,
                              gboolean         no_data)
 {
   g_return_if_fail (GIMP_IS_DATA_FACTORY (factory));
+  g_return_if_fail (GIMP_IS_CONTEXT (context));
 
   /*  Freeze and thaw the container even if no_data,
    *  this creates the standard data that serves as fallback.
@@ -233,7 +236,7 @@ gimp_data_factory_data_init (GimpDataFactory *factory,
           g_print ("Loading '%s' data\n", name ? name : "???");
         }
 
-      gimp_data_factory_data_load (factory, NULL);
+      gimp_data_factory_data_load (factory, context, NULL);
     }
 
   gimp_container_thaw (factory->priv->container);
@@ -304,11 +307,13 @@ gimp_data_factory_data_foreach (GimpDataFactory     *factory,
 typedef struct
 {
   GimpDataFactory *factory;
+  GimpContext     *context;
   GHashTable      *cache;
 } GimpDataLoadContext;
 
 static void
 gimp_data_factory_data_load (GimpDataFactory *factory,
+                             GimpContext     *context,
                              GHashTable      *cache)
 {
   gchar *path;
@@ -323,10 +328,11 @@ gimp_data_factory_data_load (GimpDataFactory *factory,
     {
       GList               *writable_list = NULL;
       gchar               *tmp;
-      GimpDataLoadContext  context;
+      GimpDataLoadContext  load_context;
 
-      context.factory = factory;
-      context.cache   = cache;
+      load_context.factory = factory;
+      load_context.context = context;
+      load_context.cache   = cache;
 
       tmp = gimp_config_path_expand (path, TRUE, NULL);
       g_free (path);
@@ -345,11 +351,12 @@ gimp_data_factory_data_load (GimpDataFactory *factory,
         }
 
       gimp_datafiles_read_directories (path, G_FILE_TEST_IS_REGULAR,
-                                       gimp_data_factory_load_data, &context);
+                                       gimp_data_factory_load_data,
+                                       &load_context);
 
       gimp_datafiles_read_directories (path, G_FILE_TEST_IS_DIR,
                                        gimp_data_factory_load_data_recursive,
-                                       &context);
+                                       &load_context);
 
       if (writable_path)
         {
@@ -363,11 +370,13 @@ gimp_data_factory_data_load (GimpDataFactory *factory,
 }
 
 void
-gimp_data_factory_data_refresh (GimpDataFactory *factory)
+gimp_data_factory_data_refresh (GimpDataFactory *factory,
+                                GimpContext     *context)
 {
   GHashTable *cache;
 
   g_return_if_fail (GIMP_IS_DATA_FACTORY (factory));
+  g_return_if_fail (GIMP_IS_CONTEXT (context));
 
   gimp_container_freeze (factory->priv->container);
 
@@ -387,7 +396,7 @@ gimp_data_factory_data_refresh (GimpDataFactory *factory)
    *  objects remaining there will be those that are not present on
    *  the disk (that have to be destroyed)
    */
-  gimp_data_factory_data_load (factory, cache);
+  gimp_data_factory_data_load (factory, context, cache);
 
   /*  Now all the data is loaded. Free what remains in the cache  */
   g_hash_table_foreach_remove (cache,
@@ -832,7 +841,8 @@ gimp_data_factory_load_data (const GimpDatafileData *file_data,
         GList  *data_list;
         GError *error = NULL;
 
-        data_list = loader->load_func (file_data->filename, &error);
+        data_list = loader->load_func (context->context,
+                                       file_data->filename, &error);
 
         if (G_LIKELY (data_list))
           {
diff --git a/app/core/gimpdatafactory.h b/app/core/gimpdatafactory.h
index 62c0505..6ca395f 100644
--- a/app/core/gimpdatafactory.h
+++ b/app/core/gimpdatafactory.h
@@ -27,7 +27,8 @@
 
 typedef GimpData * (* GimpDataNewFunc)         (GimpContext  *context,
                                                 const gchar  *name);
-typedef GList    * (* GimpDataLoadFunc)        (const gchar  *filename,
+typedef GList    * (* GimpDataLoadFunc)        (GimpContext  *context,
+                                                const gchar  *filename,
                                                 GError      **error);
 typedef GimpData * (* GimpDataGetStandardFunc) (GimpContext  *context);
 
@@ -78,8 +79,10 @@ GimpDataFactory * gimp_data_factory_new      (Gimp                             *
                                               GimpDataGetStandardFunc           get_standard_func);
 
 void            gimp_data_factory_data_init         (GimpDataFactory  *factory,
+                                                     GimpContext      *context,
                                                      gboolean          no_data);
-void            gimp_data_factory_data_refresh      (GimpDataFactory  *factory);
+void            gimp_data_factory_data_refresh      (GimpDataFactory  *factory,
+                                                     GimpContext      *context);
 void            gimp_data_factory_data_save         (GimpDataFactory  *factory);
 void            gimp_data_factory_data_free         (GimpDataFactory  *factory);
 
diff --git a/app/core/gimpdynamics-load.c b/app/core/gimpdynamics-load.c
index 79ca153..19b5597 100644
--- a/app/core/gimpdynamics-load.c
+++ b/app/core/gimpdynamics-load.c
@@ -28,7 +28,8 @@
 
 
 GList *
-gimp_dynamics_load (const gchar  *filename,
+gimp_dynamics_load (GimpContext  *context,
+                    const gchar  *filename,
                     GError      **error)
 {
   GimpDynamics *dynamics;
diff --git a/app/core/gimpdynamics-load.h b/app/core/gimpdynamics-load.h
index e7321c6..3dcbdb3 100644
--- a/app/core/gimpdynamics-load.h
+++ b/app/core/gimpdynamics-load.h
@@ -22,7 +22,8 @@
 #define GIMP_DYNAMICS_FILE_EXTENSION ".gdyn"
 
 
-GList * gimp_dynamics_load (const gchar  *filename,
+GList * gimp_dynamics_load (GimpContext  *context,
+                            const gchar  *filename,
                             GError      **error);
 
 
diff --git a/app/core/gimpgradient-load.c b/app/core/gimpgradient-load.c
index 6bc6b0f..8e5df24 100644
--- a/app/core/gimpgradient-load.c
+++ b/app/core/gimpgradient-load.c
@@ -38,7 +38,8 @@
 
 
 GList *
-gimp_gradient_load (const gchar  *filename,
+gimp_gradient_load (GimpContext  *context,
+                    const gchar  *filename,
                     GError      **error)
 {
   GimpGradient        *gradient;
@@ -310,7 +311,8 @@ static const GMarkupParser markup_parser =
 
 
 GList *
-gimp_gradient_load_svg (const gchar  *filename,
+gimp_gradient_load_svg (GimpContext  *context,
+                        const gchar  *filename,
                         GError      **error)
 {
   GimpXmlParser *xml_parser;
diff --git a/app/core/gimpgradient-load.h b/app/core/gimpgradient-load.h
index e9abea1..c8d4329 100644
--- a/app/core/gimpgradient-load.h
+++ b/app/core/gimpgradient-load.h
@@ -23,9 +23,11 @@
 #define GIMP_GRADIENT_SVG_FILE_EXTENSION ".svg"
 
 
-GList  * gimp_gradient_load     (const gchar  *filename,
+GList  * gimp_gradient_load     (GimpContext  *context,
+                                 const gchar  *filename,
                                  GError      **error);
-GList  * gimp_gradient_load_svg (const gchar  *filename,
+GList  * gimp_gradient_load_svg (GimpContext  *context,
+                                 const gchar  *filename,
                                  GError      **error);
 
 
diff --git a/app/core/gimppalette-import.c b/app/core/gimppalette-import.c
index 20e79d4..11217d7 100644
--- a/app/core/gimppalette-import.c
+++ b/app/core/gimppalette-import.c
@@ -518,7 +518,7 @@ gimp_palette_import_from_file (GimpContext  *context,
   switch (gimp_palette_load_detect_format (filename))
     {
     case GIMP_PALETTE_FILE_FORMAT_GPL:
-      palette_list = gimp_palette_load (filename, error);
+      palette_list = gimp_palette_load (context, filename, error);
       break;
 
     case GIMP_PALETTE_FILE_FORMAT_ACT:
diff --git a/app/core/gimppalette-load.c b/app/core/gimppalette-load.c
index 5ca57d2..4116eb8 100644
--- a/app/core/gimppalette-load.c
+++ b/app/core/gimppalette-load.c
@@ -50,7 +50,8 @@
 
 
 GList *
-gimp_palette_load (const gchar  *filename,
+gimp_palette_load (GimpContext  *context,
+                   const gchar  *filename,
                    GError      **error)
 {
   GimpPalette      *palette;
diff --git a/app/core/gimppalette-load.h b/app/core/gimppalette-load.h
index 46d631b..b8764c5 100644
--- a/app/core/gimppalette-load.h
+++ b/app/core/gimppalette-load.h
@@ -34,7 +34,8 @@ typedef enum
 } GimpPaletteFileFormat;
 
 
-GList               * gimp_palette_load               (const gchar  *filename,
+GList               * gimp_palette_load               (GimpContext  *context,
+                                                       const gchar  *filename,
                                                        GError      **error);
 GList               * gimp_palette_load_act           (GimpContext  *context,
                                                        const gchar  *filename,
diff --git a/app/core/gimppattern-load.c b/app/core/gimppattern-load.c
index d99db24..812e1c1 100644
--- a/app/core/gimppattern-load.c
+++ b/app/core/gimppattern-load.c
@@ -55,7 +55,8 @@
 
 
 GList *
-gimp_pattern_load (const gchar  *filename,
+gimp_pattern_load (GimpContext  *context,
+                   const gchar  *filename,
                    GError      **error)
 {
   GimpPattern   *pattern = NULL;
@@ -178,7 +179,8 @@ gimp_pattern_load (const gchar  *filename,
 }
 
 GList *
-gimp_pattern_load_pixbuf (const gchar  *filename,
+gimp_pattern_load_pixbuf (GimpContext  *context,
+                          const gchar  *filename,
                           GError      **error)
 {
   GimpPattern *pattern;
diff --git a/app/core/gimppattern-load.h b/app/core/gimppattern-load.h
index 075c629..d104555 100644
--- a/app/core/gimppattern-load.h
+++ b/app/core/gimppattern-load.h
@@ -22,9 +22,11 @@
 #define GIMP_PATTERN_FILE_EXTENSION ".pat"
 
 
-GList * gimp_pattern_load        (const gchar  *filename,
+GList * gimp_pattern_load        (GimpContext  *context,
+                                  const gchar  *filename,
                                   GError      **error);
-GList * gimp_pattern_load_pixbuf (const gchar  *filename,
+GList * gimp_pattern_load_pixbuf (GimpContext  *context,
+                                  const gchar  *filename,
                                   GError      **error);
 
 
diff --git a/app/core/gimptoolpreset-load.c b/app/core/gimptoolpreset-load.c
index d3749ab..fd3c060 100644
--- a/app/core/gimptoolpreset-load.c
+++ b/app/core/gimptoolpreset-load.c
@@ -23,16 +23,19 @@
 
 #include "core-types.h"
 
+#include "gimpcontext.h"
 #include "gimptoolpreset.h"
 #include "gimptoolpreset-load.h"
 
 
 GList *
-gimp_tool_preset_load (const gchar  *filename,
+gimp_tool_preset_load (GimpContext  *context,
+                       const gchar  *filename,
                        GError      **error)
 {
   GimpToolPreset *tool_preset;
 
+  g_return_val_if_fail (GIMP_IS_CONTEXT (context), NULL);
   g_return_val_if_fail (filename != NULL, NULL);
   g_return_val_if_fail (g_path_is_absolute (filename), NULL);
   g_return_val_if_fail (error == NULL || *error == NULL, NULL);
diff --git a/app/core/gimptoolpreset-load.h b/app/core/gimptoolpreset-load.h
index 379ec2c..9fc4067 100644
--- a/app/core/gimptoolpreset-load.h
+++ b/app/core/gimptoolpreset-load.h
@@ -22,7 +22,8 @@
 #define GIMP_TOOL_PRESET_FILE_EXTENSION ".gtp"
 
 
-GList * gimp_tool_preset_load (const gchar  *filename,
+GList * gimp_tool_preset_load (GimpContext  *context,
+                               const gchar  *filename,
                                GError      **error);
 
 
diff --git a/app/pdb/brushes-cmds.c b/app/pdb/brushes-cmds.c
index 570d2a9..f2fd1ef 100644
--- a/app/pdb/brushes-cmds.c
+++ b/app/pdb/brushes-cmds.c
@@ -47,7 +47,7 @@ brushes_refresh_invoker (GimpProcedure      *procedure,
                          const GValueArray  *args,
                          GError            **error)
 {
-  gimp_data_factory_data_refresh (gimp->brush_factory);
+  gimp_data_factory_data_refresh (gimp->brush_factory, context);
 
   return gimp_procedure_get_return_values (procedure, TRUE, NULL);
 }
diff --git a/app/pdb/gradients-cmds.c b/app/pdb/gradients-cmds.c
index 260841d..0a36f03 100644
--- a/app/pdb/gradients-cmds.c
+++ b/app/pdb/gradients-cmds.c
@@ -46,7 +46,7 @@ gradients_refresh_invoker (GimpProcedure      *procedure,
                            const GValueArray  *args,
                            GError            **error)
 {
-  gimp_data_factory_data_refresh (gimp->gradient_factory);
+  gimp_data_factory_data_refresh (gimp->gradient_factory, context);
 
   return gimp_procedure_get_return_values (procedure, TRUE, NULL);
 }
diff --git a/app/pdb/palettes-cmds.c b/app/pdb/palettes-cmds.c
index c37cd05..b85fa4c 100644
--- a/app/pdb/palettes-cmds.c
+++ b/app/pdb/palettes-cmds.c
@@ -48,7 +48,7 @@ palettes_refresh_invoker (GimpProcedure      *procedure,
                           const GValueArray  *args,
                           GError            **error)
 {
-  gimp_data_factory_data_refresh (gimp->palette_factory);
+  gimp_data_factory_data_refresh (gimp->palette_factory, context);
 
   return gimp_procedure_get_return_values (procedure, TRUE, NULL);
 }
diff --git a/app/pdb/patterns-cmds.c b/app/pdb/patterns-cmds.c
index 60d7382..a4b8a93 100644
--- a/app/pdb/patterns-cmds.c
+++ b/app/pdb/patterns-cmds.c
@@ -47,7 +47,7 @@ patterns_refresh_invoker (GimpProcedure      *procedure,
                           const GValueArray  *args,
                           GError            **error)
 {
-  gimp_data_factory_data_refresh (gimp->pattern_factory);
+  gimp_data_factory_data_refresh (gimp->pattern_factory, context);
 
   return gimp_procedure_get_return_values (procedure, TRUE, NULL);
 }
diff --git a/tools/pdbgen/pdb/brushes.pdb b/tools/pdbgen/pdb/brushes.pdb
index 5eac2a3..da9e07c 100644
--- a/tools/pdbgen/pdb/brushes.pdb
+++ b/tools/pdbgen/pdb/brushes.pdb
@@ -29,7 +29,7 @@ HELP
     %invoke = (
 	code => <<'CODE'
 {
-  gimp_data_factory_data_refresh (gimp->brush_factory);
+  gimp_data_factory_data_refresh (gimp->brush_factory, context);
 }
 CODE
     );
diff --git a/tools/pdbgen/pdb/gradients.pdb b/tools/pdbgen/pdb/gradients.pdb
index 33e0c4f..a713aa4 100644
--- a/tools/pdbgen/pdb/gradients.pdb
+++ b/tools/pdbgen/pdb/gradients.pdb
@@ -29,7 +29,7 @@ HELP
     %invoke = (
         code => <<'CODE'
 {
-  gimp_data_factory_data_refresh (gimp->gradient_factory);
+  gimp_data_factory_data_refresh (gimp->gradient_factory, context);
 }
 CODE
     );
diff --git a/tools/pdbgen/pdb/palettes.pdb b/tools/pdbgen/pdb/palettes.pdb
index 37b6cc8..4a9288f 100644
--- a/tools/pdbgen/pdb/palettes.pdb
+++ b/tools/pdbgen/pdb/palettes.pdb
@@ -29,7 +29,7 @@ HELP
     %invoke = (
         code => <<'CODE'
 {
-  gimp_data_factory_data_refresh (gimp->palette_factory);
+  gimp_data_factory_data_refresh (gimp->palette_factory, context);
 }
 CODE
     );
diff --git a/tools/pdbgen/pdb/patterns.pdb b/tools/pdbgen/pdb/patterns.pdb
index eb7146a..713fa65 100644
--- a/tools/pdbgen/pdb/patterns.pdb
+++ b/tools/pdbgen/pdb/patterns.pdb
@@ -29,7 +29,7 @@ HELP
     %invoke = (
         code => <<'CODE'
 {
-  gimp_data_factory_data_refresh (gimp->pattern_factory);
+  gimp_data_factory_data_refresh (gimp->pattern_factory, context);
 }
 CODE
     );



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