[gimp/goat-invasion: 308/418] app: add gimp_context_get_foreground, background_pixel()



commit c6dcca7ade2bbcabba7b1c21bd9ba73246b218cc
Author: Michael Natterer <mitch gimp org>
Date:   Thu Mar 29 19:19:01 2012 +0200

    app: add gimp_context_get_foreground,background_pixel()
    
    which takes a Babl format to convert from/to.
    Include <gegl.h> in a million places.

 app/actions/brush-editor-actions.c        |    1 +
 app/actions/brushes-actions.c             |    1 +
 app/actions/buffers-actions.c             |    1 +
 app/actions/context-actions.c             |    1 +
 app/actions/context-commands.c            |    1 +
 app/actions/data-commands.c               |    1 +
 app/actions/documents-actions.c           |    1 +
 app/actions/documents-commands.c          |    1 +
 app/actions/dynamics-actions.c            |    1 +
 app/actions/dynamics-editor-actions.c     |    1 +
 app/actions/fonts-actions.c               |    1 +
 app/actions/fonts-commands.c              |    1 +
 app/actions/gradient-editor-actions.c     |    1 +
 app/actions/gradient-editor-commands.c    |    1 +
 app/actions/gradients-actions.c           |    1 +
 app/actions/gradients-commands.c          |    1 +
 app/actions/palette-editor-actions.c      |    1 +
 app/actions/palette-editor-commands.c     |    1 +
 app/actions/palettes-actions.c            |    1 +
 app/actions/palettes-commands.c           |    1 +
 app/actions/patterns-actions.c            |    1 +
 app/actions/templates-actions.c           |    1 +
 app/actions/templates-commands.c          |    1 +
 app/actions/tool-options-actions.c        |    1 +
 app/actions/tool-options-commands.c       |    1 +
 app/actions/tool-preset-editor-actions.c  |    1 +
 app/actions/tool-presets-actions.c        |    1 +
 app/actions/tools-actions.c               |    1 +
 app/core/gimp-contexts.c                  |    2 +-
 app/core/gimp-gradients.c                 |    2 +-
 app/core/gimpcontext.c                    |   64 +++++++++++++++++++++++++++++
 app/core/gimpcontext.h                    |   32 ++++++++++-----
 app/core/gimpdatafactory.c                |    2 +-
 app/core/gimpfilloptions.c                |    2 +-
 app/core/gimpgradient.c                   |    2 +-
 app/core/gimppaintinfo.c                  |    2 +-
 app/core/gimppdbprogress.c                |    2 +-
 app/core/gimpprogress.c                   |    2 +-
 app/core/gimpstrokeoptions.c              |    2 +-
 app/core/gimptoolinfo.c                   |    2 +-
 app/core/gimptooloptions.c                |    2 +-
 app/core/gimptoolpreset-load.c            |    2 +-
 app/dialogs/about-dialog.c                |    1 +
 app/dialogs/data-delete-dialog.c          |    1 +
 app/dialogs/dialogs.c                     |    1 +
 app/dialogs/file-open-location-dialog.c   |    1 +
 app/dialogs/quit-dialog.c                 |    1 +
 app/dialogs/template-options-dialog.c     |    1 +
 app/display/gimpdisplayshell-autoscroll.c |    1 +
 app/gui/gimpuiconfigurer.c                |    1 +
 app/menus/tool-options-menu.c             |    1 +
 app/paint/gimpairbrushoptions.c           |    2 +-
 app/paint/gimpcloneoptions.c              |    2 +-
 app/paint/gimpconvolveoptions.c           |    2 +-
 app/paint/gimpdodgeburnoptions.c          |    2 +-
 app/paint/gimperaseroptions.c             |    2 +-
 app/paint/gimppenciloptions.c             |    2 +-
 app/paint/gimpperspectivecloneoptions.c   |    2 +-
 app/paint/gimpsmudgeoptions.c             |    2 +-
 app/paint/gimpsourceoptions.c             |    2 +-
 app/plug-in/gimpplugin-context.c          |    2 +-
 app/plug-in/gimpplugin.c                  |    2 +-
 app/plug-in/gimppluginmanager-call.c      |    2 +-
 app/plug-in/gimppluginmanager-restore.c   |    2 +-
 app/plug-in/gimppluginprocframe.c         |    2 +-
 app/tools/gimpalignoptions.c              |    1 +
 app/tools/gimpblendoptions.c              |    1 +
 app/tools/gimpbucketfilloptions.c         |    1 +
 app/tools/gimpcoloroptions.c              |    1 +
 app/tools/gimpcolorpickeroptions.c        |    1 +
 app/tools/gimpcropoptions.c               |    1 +
 app/tools/gimpflipoptions.c               |    1 +
 app/tools/gimpforegroundselectoptions.c   |    1 +
 app/tools/gimphistogramoptions.c          |    1 +
 app/tools/gimpimagemapoptions.c           |    1 +
 app/tools/gimpinkoptions-gui.c            |    1 +
 app/tools/gimpiscissorsoptions.c          |    1 +
 app/tools/gimpmagnifyoptions.c            |    1 +
 app/tools/gimpmeasureoptions.c            |    1 +
 app/tools/gimpmoveoptions.c               |    1 +
 app/tools/gimprectangleoptions.c          |    1 +
 app/tools/gimprectangleselectoptions.c    |    1 +
 app/tools/gimpregionselectoptions.c       |    1 +
 app/tools/gimpselectionoptions.c          |    1 +
 app/tools/gimptextoptions.c               |    1 +
 app/tools/gimptooloptions-gui.c           |    1 +
 app/tools/gimpvectoroptions.c             |    1 +
 app/widgets/gimpaction.c                  |    1 +
 app/widgets/gimpbrusheditor.c             |    1 +
 app/widgets/gimpbrushfactoryview.c        |    1 +
 app/widgets/gimpbrushselect.c             |    1 +
 app/widgets/gimpcolordialog.c             |    1 +
 app/widgets/gimpcoloreditor.c             |    1 +
 app/widgets/gimpcolorpanel.c              |    1 +
 app/widgets/gimpcolorselectorpalette.c    |    1 +
 app/widgets/gimpcombotagentry.c           |    1 +
 app/widgets/gimpcontainerbox.c            |    1 +
 app/widgets/gimpcontainercombobox.c       |    1 +
 app/widgets/gimpcontainereditor.c         |    1 +
 app/widgets/gimpcontainerentry.c          |    1 +
 app/widgets/gimpcontainergridview.c       |    1 +
 app/widgets/gimpcontainericonview.c       |    1 +
 app/widgets/gimpcontainerpopup.c          |    1 +
 app/widgets/gimpcontainertreeview.c       |    1 +
 app/widgets/gimpcontainerview-utils.c     |    1 +
 app/widgets/gimpcontainerview.c           |    1 +
 app/widgets/gimpcontrollereditor.c        |    1 +
 app/widgets/gimpdasheditor.c              |    1 +
 app/widgets/gimpdataeditor.c              |    1 +
 app/widgets/gimpdatafactoryview.c         |    1 +
 app/widgets/gimpdeviceeditor.c            |    1 +
 app/widgets/gimpdeviceinfo-coords.c       |    1 +
 app/widgets/gimpdeviceinfo.c              |    1 +
 app/widgets/gimpdeviceinfoeditor.c        |    1 +
 app/widgets/gimpdevicemanager.c           |    1 +
 app/widgets/gimpdialogfactory.c           |    1 +
 app/widgets/gimpdock.c                    |    1 +
 app/widgets/gimpdockable.c                |    1 +
 app/widgets/gimpdockbook.c                |    1 +
 app/widgets/gimpdockcolumns.c             |    1 +
 app/widgets/gimpdocked.c                  |    1 +
 app/widgets/gimpdocumentview.c            |    1 +
 app/widgets/gimpdynamicseditor.c          |    1 +
 app/widgets/gimpdynamicsfactoryview.c     |    1 +
 app/widgets/gimpfgbgeditor.c              |    1 +
 app/widgets/gimpfgbgview.c                |    1 +
 app/widgets/gimpfilleditor.c              |    1 +
 app/widgets/gimpfontselect.c              |    1 +
 app/widgets/gimpfontview.c                |    1 +
 app/widgets/gimpgradienteditor.c          |    1 +
 app/widgets/gimpgradientselect.c          |    1 +
 app/widgets/gimpgrideditor.c              |    1 +
 app/widgets/gimpiconpicker.c              |    1 +
 app/widgets/gimppaletteeditor.c           |    1 +
 app/widgets/gimppaletteselect.c           |    1 +
 app/widgets/gimppanedbox.c                |    1 +
 app/widgets/gimppatternfactoryview.c      |    1 +
 app/widgets/gimppdbdialog.c               |    1 +
 app/widgets/gimppropwidgets.c             |    1 +
 app/widgets/gimpsessioninfo.c             |    3 +-
 app/widgets/gimpstrokeeditor.c            |    1 +
 app/widgets/gimptagpopup.c                |    1 +
 app/widgets/gimpthumbbox.c                |    1 +
 app/widgets/gimptoolbox-color-area.c      |    1 +
 app/widgets/gimptoolbox.c                 |    1 +
 app/widgets/gimptooleditor.c              |    1 +
 app/widgets/gimptooloptionseditor.c       |    1 +
 app/widgets/gimptoolpalette.c             |    1 +
 app/widgets/gimptoolpreseteditor.c        |    1 +
 app/widgets/gimptoolpresetfactoryview.c   |    1 +
 app/widgets/gimpview-popup.c              |    1 +
 app/widgets/gimpview.c                    |    1 +
 app/widgets/gimpviewablebox.c             |    1 +
 app/widgets/gimpviewablebutton.c          |    1 +
 app/widgets/gimpviewrenderer.c            |    1 +
 155 files changed, 240 insertions(+), 37 deletions(-)
---
diff --git a/app/actions/brush-editor-actions.c b/app/actions/brush-editor-actions.c
index 764369a..23071ce 100644
--- a/app/actions/brush-editor-actions.c
+++ b/app/actions/brush-editor-actions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/brushes-actions.c b/app/actions/brushes-actions.c
index 97d4d43..964e1a1 100644
--- a/app/actions/brushes-actions.c
+++ b/app/actions/brushes-actions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/buffers-actions.c b/app/actions/buffers-actions.c
index 3a852c7..d45c509 100644
--- a/app/actions/buffers-actions.c
+++ b/app/actions/buffers-actions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/context-actions.c b/app/actions/context-actions.c
index 5b17d7c..4605f1c 100644
--- a/app/actions/context-actions.c
+++ b/app/actions/context-actions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/context-commands.c b/app/actions/context-commands.c
index 98de785..d0e3d00 100644
--- a/app/actions/context-commands.c
+++ b/app/actions/context-commands.c
@@ -19,6 +19,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpbase/gimpbase.h"
diff --git a/app/actions/data-commands.c b/app/actions/data-commands.c
index f861d7c..c11c6fb 100644
--- a/app/actions/data-commands.c
+++ b/app/actions/data-commands.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/documents-actions.c b/app/actions/documents-actions.c
index 92a5573..79953a9 100644
--- a/app/actions/documents-actions.c
+++ b/app/actions/documents-actions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/documents-commands.c b/app/actions/documents-commands.c
index dcb3965..7a0758f 100644
--- a/app/actions/documents-commands.c
+++ b/app/actions/documents-commands.c
@@ -19,6 +19,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpthumb/gimpthumb.h"
diff --git a/app/actions/dynamics-actions.c b/app/actions/dynamics-actions.c
index c1de664..4151ddc 100644
--- a/app/actions/dynamics-actions.c
+++ b/app/actions/dynamics-actions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/dynamics-editor-actions.c b/app/actions/dynamics-editor-actions.c
index 391f594..bacab34 100644
--- a/app/actions/dynamics-editor-actions.c
+++ b/app/actions/dynamics-editor-actions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/fonts-actions.c b/app/actions/fonts-actions.c
index 00f1f06..83a70a9 100644
--- a/app/actions/fonts-actions.c
+++ b/app/actions/fonts-actions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/fonts-commands.c b/app/actions/fonts-commands.c
index 37db062..c0d33be 100644
--- a/app/actions/fonts-commands.c
+++ b/app/actions/fonts-commands.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "actions-types.h"
diff --git a/app/actions/gradient-editor-actions.c b/app/actions/gradient-editor-actions.c
index 2790141..268133a 100644
--- a/app/actions/gradient-editor-actions.c
+++ b/app/actions/gradient-editor-actions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/gradient-editor-commands.c b/app/actions/gradient-editor-commands.c
index a2a9f60..86a723a 100644
--- a/app/actions/gradient-editor-commands.c
+++ b/app/actions/gradient-editor-commands.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/gradients-actions.c b/app/actions/gradients-actions.c
index 98833bb..b9d4d89 100644
--- a/app/actions/gradients-actions.c
+++ b/app/actions/gradients-actions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/gradients-commands.c b/app/actions/gradients-commands.c
index d4f7347..10c5737 100644
--- a/app/actions/gradients-commands.c
+++ b/app/actions/gradients-commands.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/palette-editor-actions.c b/app/actions/palette-editor-actions.c
index e9e84ee..8f7d4c3 100644
--- a/app/actions/palette-editor-actions.c
+++ b/app/actions/palette-editor-actions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/palette-editor-commands.c b/app/actions/palette-editor-commands.c
index 43fe8c0..d4ee2d8 100644
--- a/app/actions/palette-editor-commands.c
+++ b/app/actions/palette-editor-commands.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/palettes-actions.c b/app/actions/palettes-actions.c
index 3f6eb21..c30b1cf 100644
--- a/app/actions/palettes-actions.c
+++ b/app/actions/palettes-actions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/palettes-commands.c b/app/actions/palettes-commands.c
index f04f941..2c5f2b3 100644
--- a/app/actions/palettes-commands.c
+++ b/app/actions/palettes-commands.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/patterns-actions.c b/app/actions/patterns-actions.c
index 3f16ac6..1100062 100644
--- a/app/actions/patterns-actions.c
+++ b/app/actions/patterns-actions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/templates-actions.c b/app/actions/templates-actions.c
index fe48143..bb894ec 100644
--- a/app/actions/templates-actions.c
+++ b/app/actions/templates-actions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/templates-commands.c b/app/actions/templates-commands.c
index c65546b..af7611a 100644
--- a/app/actions/templates-commands.c
+++ b/app/actions/templates-commands.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/actions/tool-options-actions.c b/app/actions/tool-options-actions.c
index 0380620..2eb0b4e 100644
--- a/app/actions/tool-options-actions.c
+++ b/app/actions/tool-options-actions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/tool-options-commands.c b/app/actions/tool-options-commands.c
index 78f2c7b..19c1d79 100644
--- a/app/actions/tool-options-commands.c
+++ b/app/actions/tool-options-commands.c
@@ -19,6 +19,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/actions/tool-preset-editor-actions.c b/app/actions/tool-preset-editor-actions.c
index 4dc059a..08b532b 100644
--- a/app/actions/tool-preset-editor-actions.c
+++ b/app/actions/tool-preset-editor-actions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/tool-presets-actions.c b/app/actions/tool-presets-actions.c
index 5ec943d..e2c02a2 100644
--- a/app/actions/tool-presets-actions.c
+++ b/app/actions/tool-presets-actions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/actions/tools-actions.c b/app/actions/tools-actions.c
index 0130396..1072178 100644
--- a/app/actions/tools-actions.c
+++ b/app/actions/tools-actions.c
@@ -19,6 +19,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/core/gimp-contexts.c b/app/core/gimp-contexts.c
index c4d0189..36e1405 100644
--- a/app/core/gimp-contexts.c
+++ b/app/core/gimp-contexts.c
@@ -25,8 +25,8 @@
 #include <unistd.h>
 #endif
 
+#include <gegl.h>
 #include <glib/gstdio.h>
-#include <glib-object.h>
 
 #include "libgimpbase/gimpbase.h"
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/core/gimp-gradients.c b/app/core/gimp-gradients.c
index faf6fa0..620012b 100644
--- a/app/core/gimp-gradients.c
+++ b/app/core/gimp-gradients.c
@@ -20,7 +20,7 @@
 
 #include "config.h"
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "core-types.h"
 
diff --git a/app/core/gimpcontext.c b/app/core/gimpcontext.c
index 250b9f8..d54130a 100644
--- a/app/core/gimpcontext.c
+++ b/app/core/gimpcontext.c
@@ -2215,6 +2215,20 @@ gimp_context_get_foreground (GimpContext *context,
 }
 
 void
+gimp_context_get_foreground_pixel (GimpContext *context,
+                                   const Babl  *pixel_format,
+                                   gpointer     pixel)
+{
+  g_return_if_fail (GIMP_IS_CONTEXT (context));
+  g_return_if_fail (pixel_format != NULL);
+  g_return_if_fail (pixel != NULL);
+
+  babl_process (babl_fish (babl_format ("R'G'B'A double"),
+                           pixel_format),
+                &context->foreground, pixel, 1);
+}
+
+void
 gimp_context_set_foreground (GimpContext   *context,
                              const GimpRGB *color)
 {
@@ -2226,6 +2240,24 @@ gimp_context_set_foreground (GimpContext   *context,
 }
 
 void
+gimp_context_set_foreground_pixel (GimpContext   *context,
+                                   const Babl    *pixel_format,
+                                   gconstpointer  pixel)
+{
+  GimpRGB color;
+
+  g_return_if_fail (GIMP_IS_CONTEXT (context));
+  g_return_if_fail (pixel_format != NULL);
+  g_return_if_fail (pixel != NULL);
+
+  babl_process (babl_fish (pixel_format,
+                           babl_format ("R'G'B'A double")),
+                pixel, &color, 1);
+
+  gimp_context_set_foreground (context, &color);
+}
+
+void
 gimp_context_foreground_changed (GimpContext *context)
 {
   g_return_if_fail (GIMP_IS_CONTEXT (context));
@@ -2265,6 +2297,20 @@ gimp_context_get_background (GimpContext *context,
 }
 
 void
+gimp_context_get_background_pixel (GimpContext *context,
+                                   const Babl  *pixel_format,
+                                   gpointer     pixel)
+{
+  g_return_if_fail (GIMP_IS_CONTEXT (context));
+  g_return_if_fail (pixel_format != NULL);
+  g_return_if_fail (pixel != NULL);
+
+  babl_process (babl_fish (babl_format ("R'G'B'A double"),
+                           pixel_format),
+                &context->background, pixel, 1);
+}
+
+void
 gimp_context_set_background (GimpContext   *context,
                              const GimpRGB *color)
 {
@@ -2276,6 +2322,24 @@ gimp_context_set_background (GimpContext   *context,
 }
 
 void
+gimp_context_set_background_pixel (GimpContext   *context,
+                                   const Babl    *pixel_format,
+                                   gconstpointer  pixel)
+{
+  GimpRGB color;
+
+  g_return_if_fail (GIMP_IS_CONTEXT (context));
+  g_return_if_fail (pixel_format != NULL);
+  g_return_if_fail (pixel != NULL);
+
+  babl_process (babl_fish (pixel_format,
+                           babl_format ("R'G'B'A double")),
+                pixel, &color, 1);
+
+  gimp_context_set_background (context, &color);
+}
+
+void
 gimp_context_background_changed (GimpContext *context)
 {
   g_return_if_fail (GIMP_IS_CONTEXT (context));
diff --git a/app/core/gimpcontext.h b/app/core/gimpcontext.h
index bcdabc3..48623ee 100644
--- a/app/core/gimpcontext.h
+++ b/app/core/gimpcontext.h
@@ -235,19 +235,31 @@ void             gimp_context_paint_info_changed  (GimpContext     *context);
 
 
 /*  foreground color  */
-void             gimp_context_get_foreground      (GimpContext     *context,
-                                                   GimpRGB         *color);
-void             gimp_context_set_foreground      (GimpContext     *context,
-                                                   const GimpRGB   *color);
-void             gimp_context_foreground_changed  (GimpContext     *context);
+void             gimp_context_get_foreground       (GimpContext     *context,
+                                                    GimpRGB         *color);
+void             gimp_context_get_foreground_pixel (GimpContext     *context,
+                                                    const Babl      *pixel_format,
+                                                    gpointer         pixel);
+void             gimp_context_set_foreground       (GimpContext     *context,
+                                                    const GimpRGB   *color);
+void             gimp_context_set_foreground_pixel (GimpContext     *context,
+                                                    const Babl      *pixel_format,
+                                                    gconstpointer    pixel);
+void             gimp_context_foreground_changed   (GimpContext     *context);
 
 
 /*  background color  */
-void             gimp_context_get_background      (GimpContext     *context,
-                                                   GimpRGB         *color);
-void             gimp_context_set_background      (GimpContext     *context,
-                                                   const GimpRGB   *color);
-void             gimp_context_background_changed  (GimpContext     *context);
+void             gimp_context_get_background       (GimpContext     *context,
+                                                    GimpRGB         *color);
+void             gimp_context_get_background_pixel (GimpContext     *context,
+                                                    const Babl      *pixel_format,
+                                                    gpointer         pixel);
+void             gimp_context_set_background       (GimpContext     *context,
+                                                    const GimpRGB   *color);
+void             gimp_context_set_background_pixel (GimpContext     *context,
+                                                    const Babl      *pixel_format,
+                                                    gconstpointer    pixel);
+void             gimp_context_background_changed   (GimpContext     *context);
 
 
 /*  color utility functions  */
diff --git a/app/core/gimpdatafactory.c b/app/core/gimpdatafactory.c
index 00e6419..10aea74 100644
--- a/app/core/gimpdatafactory.c
+++ b/app/core/gimpdatafactory.c
@@ -23,7 +23,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "libgimpbase/gimpbase.h"
 #include "libgimpmath/gimpmath.h"
diff --git a/app/core/gimpfilloptions.c b/app/core/gimpfilloptions.c
index 67470d9..6045d34 100644
--- a/app/core/gimpfilloptions.c
+++ b/app/core/gimpfilloptions.c
@@ -20,7 +20,7 @@
 
 #include "config.h"
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "libgimpbase/gimpbase.h"
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/core/gimpgradient.c b/app/core/gimpgradient.c
index 8cece7f..3b7be8d 100644
--- a/app/core/gimpgradient.c
+++ b/app/core/gimpgradient.c
@@ -20,7 +20,7 @@
 #include <string.h>
 
 #include <cairo.h>
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "libgimpcolor/gimpcolor.h"
 #include "libgimpmath/gimpmath.h"
diff --git a/app/core/gimppaintinfo.c b/app/core/gimppaintinfo.c
index 20b3ad3..1d81a1f 100644
--- a/app/core/gimppaintinfo.c
+++ b/app/core/gimppaintinfo.c
@@ -17,7 +17,7 @@
 
 #include "config.h"
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "core-types.h"
 
diff --git a/app/core/gimppdbprogress.c b/app/core/gimppdbprogress.c
index 043783b..648ea58 100644
--- a/app/core/gimppdbprogress.c
+++ b/app/core/gimppdbprogress.c
@@ -22,7 +22,7 @@
 
 #include <string.h>
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "core-types.h"
 
diff --git a/app/core/gimpprogress.c b/app/core/gimpprogress.c
index 0ab58eb..2510769 100644
--- a/app/core/gimpprogress.c
+++ b/app/core/gimpprogress.c
@@ -22,7 +22,7 @@
 
 #include <string.h>
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "core-types.h"
 
diff --git a/app/core/gimpstrokeoptions.c b/app/core/gimpstrokeoptions.c
index 832e99a..2785e80 100644
--- a/app/core/gimpstrokeoptions.c
+++ b/app/core/gimpstrokeoptions.c
@@ -21,7 +21,7 @@
 
 #include "config.h"
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "libgimpbase/gimpbase.h"
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/core/gimptoolinfo.c b/app/core/gimptoolinfo.c
index 2a80c7f..1b3d660 100644
--- a/app/core/gimptoolinfo.c
+++ b/app/core/gimptoolinfo.c
@@ -19,7 +19,7 @@
 
 #include <string.h>
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "libgimpbase/gimpbase.h"
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/core/gimptooloptions.c b/app/core/gimptooloptions.c
index 21ef6b2..6d3681c 100644
--- a/app/core/gimptooloptions.c
+++ b/app/core/gimptooloptions.c
@@ -23,8 +23,8 @@
 #include <unistd.h>
 #endif
 
+#include <gegl.h>
 #include <glib/gstdio.h>
-#include <glib-object.h>
 
 #include "libgimpbase/gimpbase.h"
 #ifdef G_OS_WIN32
diff --git a/app/core/gimptoolpreset-load.c b/app/core/gimptoolpreset-load.c
index 79df8ef..f2a5bd5 100644
--- a/app/core/gimptoolpreset-load.c
+++ b/app/core/gimptoolpreset-load.c
@@ -17,7 +17,7 @@
 
 #include "config.h"
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "libgimpconfig/gimpconfig.h"
 
diff --git a/app/dialogs/about-dialog.c b/app/dialogs/about-dialog.c
index 9226e23..85cde97 100644
--- a/app/dialogs/about-dialog.c
+++ b/app/dialogs/about-dialog.c
@@ -19,6 +19,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpbase/gimpbase.h"
diff --git a/app/dialogs/data-delete-dialog.c b/app/dialogs/data-delete-dialog.c
index 2ad6b07..99ef22a 100644
--- a/app/dialogs/data-delete-dialog.c
+++ b/app/dialogs/data-delete-dialog.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/dialogs/dialogs.c b/app/dialogs/dialogs.c
index b2533e6..b121708 100644
--- a/app/dialogs/dialogs.c
+++ b/app/dialogs/dialogs.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpbase/gimpbase.h"
diff --git a/app/dialogs/file-open-location-dialog.c b/app/dialogs/file-open-location-dialog.c
index 47dd49a..b1f4a78 100644
--- a/app/dialogs/file-open-location-dialog.c
+++ b/app/dialogs/file-open-location-dialog.c
@@ -20,6 +20,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/dialogs/quit-dialog.c b/app/dialogs/quit-dialog.c
index 802db10..7874372 100644
--- a/app/dialogs/quit-dialog.c
+++ b/app/dialogs/quit-dialog.c
@@ -19,6 +19,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/dialogs/template-options-dialog.c b/app/dialogs/template-options-dialog.c
index 14e307a..c18de98 100644
--- a/app/dialogs/template-options-dialog.c
+++ b/app/dialogs/template-options-dialog.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/display/gimpdisplayshell-autoscroll.c b/app/display/gimpdisplayshell-autoscroll.c
index 3428ce0..f8f850e 100644
--- a/app/display/gimpdisplayshell-autoscroll.c
+++ b/app/display/gimpdisplayshell-autoscroll.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "display-types.h"
diff --git a/app/gui/gimpuiconfigurer.c b/app/gui/gimpuiconfigurer.c
index 1f67224..a4db0f8 100644
--- a/app/gui/gimpuiconfigurer.c
+++ b/app/gui/gimpuiconfigurer.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "gui-types.h"
diff --git a/app/menus/tool-options-menu.c b/app/menus/tool-options-menu.c
index 6cd4e2b..78ec04b 100644
--- a/app/menus/tool-options-menu.c
+++ b/app/menus/tool-options-menu.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/paint/gimpairbrushoptions.c b/app/paint/gimpairbrushoptions.c
index b5e86ba..469a0de 100644
--- a/app/paint/gimpairbrushoptions.c
+++ b/app/paint/gimpairbrushoptions.c
@@ -17,7 +17,7 @@
 
 #include "config.h"
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "libgimpconfig/gimpconfig.h"
 
diff --git a/app/paint/gimpcloneoptions.c b/app/paint/gimpcloneoptions.c
index f1aa2bb..683ce87 100644
--- a/app/paint/gimpcloneoptions.c
+++ b/app/paint/gimpcloneoptions.c
@@ -19,7 +19,7 @@
 
 #include <string.h>
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "libgimpconfig/gimpconfig.h"
 
diff --git a/app/paint/gimpconvolveoptions.c b/app/paint/gimpconvolveoptions.c
index ef75e1b..3e60035 100644
--- a/app/paint/gimpconvolveoptions.c
+++ b/app/paint/gimpconvolveoptions.c
@@ -17,7 +17,7 @@
 
 #include "config.h"
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "libgimpconfig/gimpconfig.h"
 
diff --git a/app/paint/gimpdodgeburnoptions.c b/app/paint/gimpdodgeburnoptions.c
index 56c1691..e87dea3 100644
--- a/app/paint/gimpdodgeburnoptions.c
+++ b/app/paint/gimpdodgeburnoptions.c
@@ -17,7 +17,7 @@
 
 #include "config.h"
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "libgimpconfig/gimpconfig.h"
 
diff --git a/app/paint/gimperaseroptions.c b/app/paint/gimperaseroptions.c
index d93bb56..f001717 100644
--- a/app/paint/gimperaseroptions.c
+++ b/app/paint/gimperaseroptions.c
@@ -17,7 +17,7 @@
 
 #include "config.h"
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "libgimpconfig/gimpconfig.h"
 
diff --git a/app/paint/gimppenciloptions.c b/app/paint/gimppenciloptions.c
index 5a2364d..0262846 100644
--- a/app/paint/gimppenciloptions.c
+++ b/app/paint/gimppenciloptions.c
@@ -17,7 +17,7 @@
 
 #include "config.h"
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "libgimpconfig/gimpconfig.h"
 
diff --git a/app/paint/gimpperspectivecloneoptions.c b/app/paint/gimpperspectivecloneoptions.c
index 88fb444..9b87c32 100644
--- a/app/paint/gimpperspectivecloneoptions.c
+++ b/app/paint/gimpperspectivecloneoptions.c
@@ -17,7 +17,7 @@
 
 #include "config.h"
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "libgimpconfig/gimpconfig.h"
 
diff --git a/app/paint/gimpsmudgeoptions.c b/app/paint/gimpsmudgeoptions.c
index 73e36ef..7861294 100644
--- a/app/paint/gimpsmudgeoptions.c
+++ b/app/paint/gimpsmudgeoptions.c
@@ -17,7 +17,7 @@
 
 #include "config.h"
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "libgimpconfig/gimpconfig.h"
 
diff --git a/app/paint/gimpsourceoptions.c b/app/paint/gimpsourceoptions.c
index 58707b1..60a5d3d 100644
--- a/app/paint/gimpsourceoptions.c
+++ b/app/paint/gimpsourceoptions.c
@@ -17,7 +17,7 @@
 
 #include "config.h"
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "libgimpconfig/gimpconfig.h"
 
diff --git a/app/plug-in/gimpplugin-context.c b/app/plug-in/gimpplugin-context.c
index 5174961..434634a 100644
--- a/app/plug-in/gimpplugin-context.c
+++ b/app/plug-in/gimpplugin-context.c
@@ -19,7 +19,7 @@
 
 #include "config.h"
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "plug-in-types.h"
 
diff --git a/app/plug-in/gimpplugin.c b/app/plug-in/gimpplugin.c
index 40f2cdc..8de7c49 100644
--- a/app/plug-in/gimpplugin.c
+++ b/app/plug-in/gimpplugin.c
@@ -45,7 +45,7 @@
 #include <sys/param.h>
 #endif
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #if defined(G_OS_WIN32) || defined(G_WITH_CYGWIN)
 
diff --git a/app/plug-in/gimppluginmanager-call.c b/app/plug-in/gimppluginmanager-call.c
index 47d0a95..75c715c 100644
--- a/app/plug-in/gimppluginmanager-call.c
+++ b/app/plug-in/gimppluginmanager-call.c
@@ -19,7 +19,7 @@
 
 #include "config.h"
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "libgimpbase/gimpbase.h"
 #include "libgimpbase/gimpprotocol.h"
diff --git a/app/plug-in/gimppluginmanager-restore.c b/app/plug-in/gimppluginmanager-restore.c
index c82532b..43bca1c 100644
--- a/app/plug-in/gimppluginmanager-restore.c
+++ b/app/plug-in/gimppluginmanager-restore.c
@@ -21,7 +21,7 @@
 
 #include <string.h>
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "libgimpbase/gimpbase.h"
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/plug-in/gimppluginprocframe.c b/app/plug-in/gimppluginprocframe.c
index d9b4863..bec0dd2 100644
--- a/app/plug-in/gimppluginprocframe.c
+++ b/app/plug-in/gimppluginprocframe.c
@@ -21,7 +21,7 @@
 
 #include <string.h>
 
-#include <glib-object.h>
+#include <gegl.h>
 
 #include "plug-in-types.h"
 
diff --git a/app/tools/gimpalignoptions.c b/app/tools/gimpalignoptions.c
index 486e9ee..be1e250 100644
--- a/app/tools/gimpalignoptions.c
+++ b/app/tools/gimpalignoptions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpbase/gimpbase.h"
diff --git a/app/tools/gimpblendoptions.c b/app/tools/gimpblendoptions.c
index 8b59675..eac257d 100644
--- a/app/tools/gimpblendoptions.c
+++ b/app/tools/gimpblendoptions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/tools/gimpbucketfilloptions.c b/app/tools/gimpbucketfilloptions.c
index d09159c..f986d81 100644
--- a/app/tools/gimpbucketfilloptions.c
+++ b/app/tools/gimpbucketfilloptions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/tools/gimpcoloroptions.c b/app/tools/gimpcoloroptions.c
index 2ff2c8c..97d2ac0 100644
--- a/app/tools/gimpcoloroptions.c
+++ b/app/tools/gimpcoloroptions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/tools/gimpcolorpickeroptions.c b/app/tools/gimpcolorpickeroptions.c
index 3c142c3..ca9b595 100644
--- a/app/tools/gimpcolorpickeroptions.c
+++ b/app/tools/gimpcolorpickeroptions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/tools/gimpcropoptions.c b/app/tools/gimpcropoptions.c
index f2230e2..deccfd2 100644
--- a/app/tools/gimpcropoptions.c
+++ b/app/tools/gimpcropoptions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpbase/gimpbase.h"
diff --git a/app/tools/gimpflipoptions.c b/app/tools/gimpflipoptions.c
index 7092fa8..c40496a 100644
--- a/app/tools/gimpflipoptions.c
+++ b/app/tools/gimpflipoptions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/tools/gimpforegroundselectoptions.c b/app/tools/gimpforegroundselectoptions.c
index 53f2217..5f9f5c0 100644
--- a/app/tools/gimpforegroundselectoptions.c
+++ b/app/tools/gimpforegroundselectoptions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpcolor/gimpcolor.h"
diff --git a/app/tools/gimphistogramoptions.c b/app/tools/gimphistogramoptions.c
index 43b02a1..5d663d9 100644
--- a/app/tools/gimphistogramoptions.c
+++ b/app/tools/gimphistogramoptions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/tools/gimpimagemapoptions.c b/app/tools/gimpimagemapoptions.c
index 8ffb63d..f85659c 100644
--- a/app/tools/gimpimagemapoptions.c
+++ b/app/tools/gimpimagemapoptions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/tools/gimpinkoptions-gui.c b/app/tools/gimpinkoptions-gui.c
index 6daba3b..c054288 100644
--- a/app/tools/gimpinkoptions-gui.c
+++ b/app/tools/gimpinkoptions-gui.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/tools/gimpiscissorsoptions.c b/app/tools/gimpiscissorsoptions.c
index 7627e5a..213ad0c 100644
--- a/app/tools/gimpiscissorsoptions.c
+++ b/app/tools/gimpiscissorsoptions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/tools/gimpmagnifyoptions.c b/app/tools/gimpmagnifyoptions.c
index 12fc111..0a77d58 100644
--- a/app/tools/gimpmagnifyoptions.c
+++ b/app/tools/gimpmagnifyoptions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/tools/gimpmeasureoptions.c b/app/tools/gimpmeasureoptions.c
index 2c2c24b..20843fe 100644
--- a/app/tools/gimpmeasureoptions.c
+++ b/app/tools/gimpmeasureoptions.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/tools/gimpmoveoptions.c b/app/tools/gimpmoveoptions.c
index 06ed42e..b24c2d6 100644
--- a/app/tools/gimpmoveoptions.c
+++ b/app/tools/gimpmoveoptions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/tools/gimprectangleoptions.c b/app/tools/gimprectangleoptions.c
index 1b6c8a1..39bc351 100644
--- a/app/tools/gimprectangleoptions.c
+++ b/app/tools/gimprectangleoptions.c
@@ -19,6 +19,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpbase/gimpbase.h"
diff --git a/app/tools/gimprectangleselectoptions.c b/app/tools/gimprectangleselectoptions.c
index 45a7d22..2454610 100644
--- a/app/tools/gimprectangleselectoptions.c
+++ b/app/tools/gimprectangleselectoptions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/tools/gimpregionselectoptions.c b/app/tools/gimpregionselectoptions.c
index 0ba2a29..e95451d 100644
--- a/app/tools/gimpregionselectoptions.c
+++ b/app/tools/gimpregionselectoptions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/tools/gimpselectionoptions.c b/app/tools/gimpselectionoptions.c
index 78c145b..9406a54 100644
--- a/app/tools/gimpselectionoptions.c
+++ b/app/tools/gimpselectionoptions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/tools/gimptextoptions.c b/app/tools/gimptextoptions.c
index 324fa13..76d9fa5 100644
--- a/app/tools/gimptextoptions.c
+++ b/app/tools/gimptextoptions.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpbase/gimpbase.h"
diff --git a/app/tools/gimptooloptions-gui.c b/app/tools/gimptooloptions-gui.c
index 69c0f2c..f4d8047 100644
--- a/app/tools/gimptooloptions-gui.c
+++ b/app/tools/gimptooloptions-gui.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/tools/gimpvectoroptions.c b/app/tools/gimpvectoroptions.c
index 1a0b68f..1fcfea8 100644
--- a/app/tools/gimpvectoroptions.c
+++ b/app/tools/gimpvectoroptions.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/widgets/gimpaction.c b/app/widgets/gimpaction.c
index 0d0faa7..ff3db4c 100644
--- a/app/widgets/gimpaction.c
+++ b/app/widgets/gimpaction.c
@@ -22,6 +22,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpbase/gimpbase.h"
diff --git a/app/widgets/gimpbrusheditor.c b/app/widgets/gimpbrusheditor.c
index 2d3f5c0..9aae158 100644
--- a/app/widgets/gimpbrusheditor.c
+++ b/app/widgets/gimpbrusheditor.c
@@ -22,6 +22,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpmath/gimpmath.h"
diff --git a/app/widgets/gimpbrushfactoryview.c b/app/widgets/gimpbrushfactoryview.c
index 4ef1279..97d88ad 100644
--- a/app/widgets/gimpbrushfactoryview.c
+++ b/app/widgets/gimpbrushfactoryview.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpbrushselect.c b/app/widgets/gimpbrushselect.c
index 4ff0b71..24badf6 100644
--- a/app/widgets/gimpbrushselect.c
+++ b/app/widgets/gimpbrushselect.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpcolordialog.c b/app/widgets/gimpcolordialog.c
index e238280..06c36a4 100644
--- a/app/widgets/gimpcolordialog.c
+++ b/app/widgets/gimpcolordialog.c
@@ -19,6 +19,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpcolor/gimpcolor.h"
diff --git a/app/widgets/gimpcoloreditor.c b/app/widgets/gimpcoloreditor.c
index 43a7f5e..36d6d46 100644
--- a/app/widgets/gimpcoloreditor.c
+++ b/app/widgets/gimpcoloreditor.c
@@ -22,6 +22,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpcolor/gimpcolor.h"
diff --git a/app/widgets/gimpcolorpanel.c b/app/widgets/gimpcolorpanel.c
index dd67589..867d340 100644
--- a/app/widgets/gimpcolorpanel.c
+++ b/app/widgets/gimpcolorpanel.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpcolor/gimpcolor.h"
diff --git a/app/widgets/gimpcolorselectorpalette.c b/app/widgets/gimpcolorselectorpalette.c
index d0160d2..c869fdd 100644
--- a/app/widgets/gimpcolorselectorpalette.c
+++ b/app/widgets/gimpcolorselectorpalette.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpcolor/gimpcolor.h"
diff --git a/app/widgets/gimpcombotagentry.c b/app/widgets/gimpcombotagentry.c
index 11b5a0d..135936a 100644
--- a/app/widgets/gimpcombotagentry.c
+++ b/app/widgets/gimpcombotagentry.c
@@ -22,6 +22,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "widgets-types.h"
diff --git a/app/widgets/gimpcontainerbox.c b/app/widgets/gimpcontainerbox.c
index 685b195..262a3d6 100644
--- a/app/widgets/gimpcontainerbox.c
+++ b/app/widgets/gimpcontainerbox.c
@@ -22,6 +22,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpcontainercombobox.c b/app/widgets/gimpcontainercombobox.c
index df77be0..af4af35 100644
--- a/app/widgets/gimpcontainercombobox.c
+++ b/app/widgets/gimpcontainercombobox.c
@@ -22,6 +22,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "widgets-types.h"
diff --git a/app/widgets/gimpcontainereditor.c b/app/widgets/gimpcontainereditor.c
index 3f7d00b..afc038b 100644
--- a/app/widgets/gimpcontainereditor.c
+++ b/app/widgets/gimpcontainereditor.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpcontainerentry.c b/app/widgets/gimpcontainerentry.c
index c0d52b5..075ac6f 100644
--- a/app/widgets/gimpcontainerentry.c
+++ b/app/widgets/gimpcontainerentry.c
@@ -22,6 +22,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "widgets-types.h"
diff --git a/app/widgets/gimpcontainergridview.c b/app/widgets/gimpcontainergridview.c
index 88190ca..a24a694 100644
--- a/app/widgets/gimpcontainergridview.c
+++ b/app/widgets/gimpcontainergridview.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 #include <gdk/gdkkeysyms.h>
 
diff --git a/app/widgets/gimpcontainericonview.c b/app/widgets/gimpcontainericonview.c
index 0ccf154..a17f2bd 100644
--- a/app/widgets/gimpcontainericonview.c
+++ b/app/widgets/gimpcontainericonview.c
@@ -22,6 +22,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpcontainerpopup.c b/app/widgets/gimpcontainerpopup.c
index 21c585a..82ccd28 100644
--- a/app/widgets/gimpcontainerpopup.c
+++ b/app/widgets/gimpcontainerpopup.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 #include <gdk/gdkkeysyms.h>
 
diff --git a/app/widgets/gimpcontainertreeview.c b/app/widgets/gimpcontainertreeview.c
index f14eb28..f51ee45 100644
--- a/app/widgets/gimpcontainertreeview.c
+++ b/app/widgets/gimpcontainertreeview.c
@@ -22,6 +22,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gdk/gdkkeysyms.h>
 #include <gtk/gtk.h>
 
diff --git a/app/widgets/gimpcontainerview-utils.c b/app/widgets/gimpcontainerview-utils.c
index 9304151..4b92d9c 100644
--- a/app/widgets/gimpcontainerview-utils.c
+++ b/app/widgets/gimpcontainerview-utils.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "widgets-types.h"
diff --git a/app/widgets/gimpcontainerview.c b/app/widgets/gimpcontainerview.c
index 8b4f9ca..737284f 100644
--- a/app/widgets/gimpcontainerview.c
+++ b/app/widgets/gimpcontainerview.c
@@ -22,6 +22,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpcontrollereditor.c b/app/widgets/gimpcontrollereditor.c
index 25e9ade..564ceaf 100644
--- a/app/widgets/gimpcontrollereditor.c
+++ b/app/widgets/gimpcontrollereditor.c
@@ -22,6 +22,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpdasheditor.c b/app/widgets/gimpdasheditor.c
index f039b12..9248ae2 100644
--- a/app/widgets/gimpdasheditor.c
+++ b/app/widgets/gimpdasheditor.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpmath/gimpmath.h"
diff --git a/app/widgets/gimpdataeditor.c b/app/widgets/gimpdataeditor.c
index 2375175..a173195 100644
--- a/app/widgets/gimpdataeditor.c
+++ b/app/widgets/gimpdataeditor.c
@@ -22,6 +22,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 #include <gdk/gdkkeysyms.h>
 
diff --git a/app/widgets/gimpdatafactoryview.c b/app/widgets/gimpdatafactoryview.c
index 09fb678..29bcdd2 100644
--- a/app/widgets/gimpdatafactoryview.c
+++ b/app/widgets/gimpdatafactoryview.c
@@ -22,6 +22,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpdeviceeditor.c b/app/widgets/gimpdeviceeditor.c
index e74581e..02b4009 100644
--- a/app/widgets/gimpdeviceeditor.c
+++ b/app/widgets/gimpdeviceeditor.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpdeviceinfo-coords.c b/app/widgets/gimpdeviceinfo-coords.c
index dfb39f6..eb5ddbf 100644
--- a/app/widgets/gimpdeviceinfo-coords.c
+++ b/app/widgets/gimpdeviceinfo-coords.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "widgets-types.h"
diff --git a/app/widgets/gimpdeviceinfo.c b/app/widgets/gimpdeviceinfo.c
index 3f5d3a5..92a6258 100644
--- a/app/widgets/gimpdeviceinfo.c
+++ b/app/widgets/gimpdeviceinfo.c
@@ -21,6 +21,7 @@
 
 #undef GSEAL_ENABLE
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/widgets/gimpdeviceinfoeditor.c b/app/widgets/gimpdeviceinfoeditor.c
index d13dfda..ac60c14 100644
--- a/app/widgets/gimpdeviceinfoeditor.c
+++ b/app/widgets/gimpdeviceinfoeditor.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpdevicemanager.c b/app/widgets/gimpdevicemanager.c
index a7d2c46..df7ecf0 100644
--- a/app/widgets/gimpdevicemanager.c
+++ b/app/widgets/gimpdevicemanager.c
@@ -22,6 +22,7 @@
 
 #undef GSEAL_ENABLE
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "widgets-types.h"
diff --git a/app/widgets/gimpdialogfactory.c b/app/widgets/gimpdialogfactory.c
index ce057c2..b03c77b 100644
--- a/app/widgets/gimpdialogfactory.c
+++ b/app/widgets/gimpdialogfactory.c
@@ -23,6 +23,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/widgets/gimpdock.c b/app/widgets/gimpdock.c
index 19adb8e..1af97af 100644
--- a/app/widgets/gimpdock.c
+++ b/app/widgets/gimpdock.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpdockable.c b/app/widgets/gimpdockable.c
index 47afdb4..c2d99f9 100644
--- a/app/widgets/gimpdockable.c
+++ b/app/widgets/gimpdockable.c
@@ -22,6 +22,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpdockbook.c b/app/widgets/gimpdockbook.c
index bd27fcc..8a46fab 100644
--- a/app/widgets/gimpdockbook.c
+++ b/app/widgets/gimpdockbook.c
@@ -22,6 +22,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpdockcolumns.c b/app/widgets/gimpdockcolumns.c
index b28a4c1..13ebe59 100644
--- a/app/widgets/gimpdockcolumns.c
+++ b/app/widgets/gimpdockcolumns.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "widgets-types.h"
diff --git a/app/widgets/gimpdocked.c b/app/widgets/gimpdocked.c
index 14d8246..56d8cc6 100644
--- a/app/widgets/gimpdocked.c
+++ b/app/widgets/gimpdocked.c
@@ -22,6 +22,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "widgets-types.h"
diff --git a/app/widgets/gimpdocumentview.c b/app/widgets/gimpdocumentview.c
index b1e18e8..7543655 100644
--- a/app/widgets/gimpdocumentview.c
+++ b/app/widgets/gimpdocumentview.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpdynamicseditor.c b/app/widgets/gimpdynamicseditor.c
index 25fe738..014d8c7 100644
--- a/app/widgets/gimpdynamicseditor.c
+++ b/app/widgets/gimpdynamicseditor.c
@@ -18,6 +18,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/widgets/gimpdynamicsfactoryview.c b/app/widgets/gimpdynamicsfactoryview.c
index 02bc77f..6efc8e8 100644
--- a/app/widgets/gimpdynamicsfactoryview.c
+++ b/app/widgets/gimpdynamicsfactoryview.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpfgbgeditor.c b/app/widgets/gimpfgbgeditor.c
index bf49aed..09a3bdc 100644
--- a/app/widgets/gimpfgbgeditor.c
+++ b/app/widgets/gimpfgbgeditor.c
@@ -22,6 +22,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpcolor/gimpcolor.h"
diff --git a/app/widgets/gimpfgbgview.c b/app/widgets/gimpfgbgview.c
index e8f688d..dcfa61d 100644
--- a/app/widgets/gimpfgbgview.c
+++ b/app/widgets/gimpfgbgview.c
@@ -22,6 +22,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpcolor/gimpcolor.h"
diff --git a/app/widgets/gimpfilleditor.c b/app/widgets/gimpfilleditor.c
index e6cf3c3..028c506 100644
--- a/app/widgets/gimpfilleditor.c
+++ b/app/widgets/gimpfilleditor.c
@@ -25,6 +25,7 @@
 #include "libgimpbase/gimpbase.h"
 #include "libgimpwidgets/gimpwidgets.h"
 
+#include <gegl.h>
 #include "widgets-types.h"
 
 #include "core/gimpfilloptions.h"
diff --git a/app/widgets/gimpfontselect.c b/app/widgets/gimpfontselect.c
index d012ff2..8dbe44f 100644
--- a/app/widgets/gimpfontselect.c
+++ b/app/widgets/gimpfontselect.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpfontview.c b/app/widgets/gimpfontview.c
index c040f59..fdbb5b2 100644
--- a/app/widgets/gimpfontview.c
+++ b/app/widgets/gimpfontview.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpgradienteditor.c b/app/widgets/gimpgradienteditor.c
index fbafe12..d1c05cd 100644
--- a/app/widgets/gimpgradienteditor.c
+++ b/app/widgets/gimpgradienteditor.c
@@ -47,6 +47,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpcolor/gimpcolor.h"
diff --git a/app/widgets/gimpgradientselect.c b/app/widgets/gimpgradientselect.c
index edb9fea..71986c6 100644
--- a/app/widgets/gimpgradientselect.c
+++ b/app/widgets/gimpgradientselect.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpgrideditor.c b/app/widgets/gimpgrideditor.c
index e61e7f8..585ca49 100644
--- a/app/widgets/gimpgrideditor.c
+++ b/app/widgets/gimpgrideditor.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpbase/gimpbase.h"
diff --git a/app/widgets/gimpiconpicker.c b/app/widgets/gimpiconpicker.c
index b1e4111..dddc32e 100644
--- a/app/widgets/gimpiconpicker.c
+++ b/app/widgets/gimpiconpicker.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimppaletteeditor.c b/app/widgets/gimppaletteeditor.c
index 04914f4..4657567 100644
--- a/app/widgets/gimppaletteeditor.c
+++ b/app/widgets/gimppaletteeditor.c
@@ -19,6 +19,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpbase/gimpbase.h"
diff --git a/app/widgets/gimppaletteselect.c b/app/widgets/gimppaletteselect.c
index 9503a70..a6b44c6 100644
--- a/app/widgets/gimppaletteselect.c
+++ b/app/widgets/gimppaletteselect.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimppanedbox.c b/app/widgets/gimppanedbox.c
index de4515e..5751231 100644
--- a/app/widgets/gimppanedbox.c
+++ b/app/widgets/gimppanedbox.c
@@ -21,6 +21,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimppatternfactoryview.c b/app/widgets/gimppatternfactoryview.c
index 5f6181f..3e75488 100644
--- a/app/widgets/gimppatternfactoryview.c
+++ b/app/widgets/gimppatternfactoryview.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimppdbdialog.c b/app/widgets/gimppdbdialog.c
index 4755372..cbf8386 100644
--- a/app/widgets/gimppdbdialog.c
+++ b/app/widgets/gimppdbdialog.c
@@ -22,6 +22,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimppropwidgets.c b/app/widgets/gimppropwidgets.c
index 416797d..7e2730c 100644
--- a/app/widgets/gimppropwidgets.c
+++ b/app/widgets/gimppropwidgets.c
@@ -24,6 +24,7 @@
 #include <string.h>
 #include <stdlib.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpcolor/gimpcolor.h"
diff --git a/app/widgets/gimpsessioninfo.c b/app/widgets/gimpsessioninfo.c
index d55c0e4..c62e8b9 100644
--- a/app/widgets/gimpsessioninfo.c
+++ b/app/widgets/gimpsessioninfo.c
@@ -22,6 +22,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
@@ -44,7 +45,7 @@
 #include "gimpsessioninfo-dock.h"
 #include "gimpsessioninfo-private.h"
 #include "gimpsessionmanaged.h"
- 
+
 #include "gimp-log.h"
 
 
diff --git a/app/widgets/gimpstrokeeditor.c b/app/widgets/gimpstrokeeditor.c
index 1a46539..901df57 100644
--- a/app/widgets/gimpstrokeeditor.c
+++ b/app/widgets/gimpstrokeeditor.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpbase/gimpbase.h"
diff --git a/app/widgets/gimptagpopup.c b/app/widgets/gimptagpopup.c
index c4db0bb..a00789a 100644
--- a/app/widgets/gimptagpopup.c
+++ b/app/widgets/gimptagpopup.c
@@ -23,6 +23,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "widgets-types.h"
diff --git a/app/widgets/gimpthumbbox.c b/app/widgets/gimpthumbbox.c
index 04b005f..53ad0d0 100644
--- a/app/widgets/gimpthumbbox.c
+++ b/app/widgets/gimpthumbbox.c
@@ -19,6 +19,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpbase/gimpbase.h"
diff --git a/app/widgets/gimptoolbox-color-area.c b/app/widgets/gimptoolbox-color-area.c
index b1eeb88..641f420 100644
--- a/app/widgets/gimptoolbox-color-area.c
+++ b/app/widgets/gimptoolbox-color-area.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimptoolbox.c b/app/widgets/gimptoolbox.c
index 17d9625..00f4057 100644
--- a/app/widgets/gimptoolbox.c
+++ b/app/widgets/gimptoolbox.c
@@ -21,6 +21,7 @@
 
 #undef GSEAL_ENABLE
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpbase/gimpbase.h"
diff --git a/app/widgets/gimptooleditor.c b/app/widgets/gimptooleditor.c
index a52af04..7379f2b 100644
--- a/app/widgets/gimptooleditor.c
+++ b/app/widgets/gimptooleditor.c
@@ -21,6 +21,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimptooloptionseditor.c b/app/widgets/gimptooloptionseditor.c
index 6f459ab..763ed65 100644
--- a/app/widgets/gimptooloptionseditor.c
+++ b/app/widgets/gimptooloptionseditor.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimptoolpalette.c b/app/widgets/gimptoolpalette.c
index 61d4a1e..1608cf3 100644
--- a/app/widgets/gimptoolpalette.c
+++ b/app/widgets/gimptoolpalette.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimptoolpreseteditor.c b/app/widgets/gimptoolpreseteditor.c
index aa4c116..c5e486d 100644
--- a/app/widgets/gimptoolpreseteditor.c
+++ b/app/widgets/gimptoolpreseteditor.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpconfig/gimpconfig.h"
diff --git a/app/widgets/gimptoolpresetfactoryview.c b/app/widgets/gimptoolpresetfactoryview.c
index 0b5b094..9552e81 100644
--- a/app/widgets/gimptoolpresetfactoryview.c
+++ b/app/widgets/gimptoolpresetfactoryview.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpview-popup.c b/app/widgets/gimpview-popup.c
index 9fea027..ef8b9c6 100644
--- a/app/widgets/gimpview-popup.c
+++ b/app/widgets/gimpview-popup.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpview.c b/app/widgets/gimpview.c
index d4f53cd..2d81b86 100644
--- a/app/widgets/gimpview.c
+++ b/app/widgets/gimpview.c
@@ -22,6 +22,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpcolor/gimpcolor.h"
diff --git a/app/widgets/gimpviewablebox.c b/app/widgets/gimpviewablebox.c
index c0de8c9..a86d51c 100644
--- a/app/widgets/gimpviewablebox.c
+++ b/app/widgets/gimpviewablebox.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpviewablebutton.c b/app/widgets/gimpviewablebutton.c
index c97d496..512c1a5 100644
--- a/app/widgets/gimpviewablebutton.c
+++ b/app/widgets/gimpviewablebutton.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpwidgets/gimpwidgets.h"
diff --git a/app/widgets/gimpviewrenderer.c b/app/widgets/gimpviewrenderer.c
index 1852e95..6c57866 100644
--- a/app/widgets/gimpviewrenderer.c
+++ b/app/widgets/gimpviewrenderer.c
@@ -23,6 +23,7 @@
 
 #include <string.h>
 
+#include <gegl.h>
 #include <gtk/gtk.h>
 
 #include "libgimpcolor/gimpcolor.h"



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