mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-18 13:53:46 +00:00
libgimpwidgets: don't babl_init() in gimp_color_scale_class_init()
Woohoo! We can actually inject this into the gtk-doc thingy!
This commit is contained in:
parent
731cc47a22
commit
1176482b4b
|
@ -10,7 +10,8 @@ DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.sgml
|
|||
DOC_SOURCE_DIR = $(top_srcdir)/$(DOC_MODULE)
|
||||
|
||||
# Extra options to pass to gtkdoc-scangobj
|
||||
SCANGOBJ_OPTIONS =
|
||||
# make sure babl is initialized, otherwise we segfault.
|
||||
SCANGOBJ_OPTIONS = --type-init-func="do { void babl_init (void); babl_init (); } while (0)"
|
||||
|
||||
# Extra options to supply to gtkdoc-scan
|
||||
SCAN_OPTIONS = --deprecated-guards="GIMP_DISABLE_DEPRECATED"
|
||||
|
|
|
@ -154,13 +154,6 @@ gimp_color_scale_class_init (GimpColorScaleClass *klass)
|
|||
|
||||
g_type_class_add_private (object_class, sizeof (GimpColorScalePrivate));
|
||||
|
||||
/* This is so ugly... we have to babl_init() here so the binary
|
||||
* generated by gtk-doc to scan libgimpwidgets' types won't crash.
|
||||
* I didn't find a way to inject this line of code into the
|
||||
* generated source.
|
||||
*/
|
||||
babl_init ();
|
||||
|
||||
fish_rgb_to_lch = babl_fish (babl_format ("R'G'B'A double"),
|
||||
babl_format ("CIE LCH(ab) double"));
|
||||
fish_lch_to_rgb = babl_fish (babl_format ("CIE LCH(ab) double"),
|
||||
|
|
Loading…
Reference in a new issue