[gimp] Bug 783166 - Script-Fu color selector crashes
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 783166 - Script-Fu color selector crashes
- Date: Sun, 28 May 2017 14:34:37 +0000 (UTC)
commit 937900d6187ce21ed0ce395d27aa7c2d966be3be
Author: Michael Natterer <mitch gimp org>
Date: Sun May 28 16:32:52 2017 +0200
Bug 783166 - Script-Fu color selector crashes
libgimpwidgets now needs an initialized babl if color selectors are
used, call babl_init() in gimp_widgets_init(). It can be safely called
redundantly.
libgimpwidgets/gimpwidgets-private.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libgimpwidgets/gimpwidgets-private.c b/libgimpwidgets/gimpwidgets-private.c
index 1ae1e5d..c508be1 100644
--- a/libgimpwidgets/gimpwidgets-private.c
+++ b/libgimpwidgets/gimpwidgets-private.c
@@ -21,6 +21,7 @@
#include "config.h"
+#include <babl/babl.h>
#include <gtk/gtk.h>
#include "libgimpbase/gimpbase.h"
@@ -74,6 +75,8 @@ gimp_widgets_init (GimpHelpFunc standard_help_func,
_gimp_get_background_func = get_background_func;
_gimp_ensure_modules_func = ensure_modules_func;
+ babl_init (); /* color selectors use babl */
+
gimp_icons_init ();
gtk_window_set_default_icon_name (GIMP_ICON_WILBER);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]