mirror of https://github.com/GNOME/gimp.git
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.
This commit is contained in:
parent
3d935b0bb0
commit
dcb6a2c064
|
@ -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"
|
||||
|
||||
|
||||
enum
|
||||
{
|
||||
INITIALIZE,
|
||||
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue