Commit dcb6a2c0 authored by Michael Natterer's avatar Michael Natterer 😴

app: re-use the generated gimp_enums_init() code from libgimp

In gimp_init(), call gimp_enums_init(). We need to make all enum types
known to the type system by name because the PDB is now based on enum
type names.
parent 3d935b0b
Pipeline #104003 passed with stages
in 15 minutes and 25 seconds
......@@ -23,6 +23,7 @@
#include <gegl.h>
#include "libgimpbase/gimpbase.h"
#include "libgimpbase/gimpbase-private.h"
#include "libgimpconfig/gimpconfig.h"
#include "core-types.h"
......@@ -75,6 +76,14 @@
#include "gimp-intl.h"
/* we need to register all enum types so they are known to the type
* system by name, re-use the files the pdb generated for libgimp
void gimp_enums_init (void);
const gchar ** gimp_enums_get_type_names (gint *n_type_names);
#include "libgimp/gimpenums.c.tail"
......@@ -227,6 +236,8 @@ gimp_init (Gimp *gimp)
gimp->parasites = gimp_parasite_list_new ();
gimp_enums_init ();
gimp_units_init (gimp);
gimp->images = gimp_list_new_weak (GIMP_TYPE_IMAGE, FALSE);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment