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.
This commit is contained in:
Michael Natterer 2017-05-28 16:32:52 +02:00
parent f16ba7d1a7
commit 937900d618
1 changed files with 3 additions and 0 deletions

View File

@ -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);