libgimp, plug-ins: let's just call gegl_init() in gimp_ui_init().

bootchk had the case in commit 6781a35668. I again had it with gfig. I think it
just makes sense to init GEGL, especially as the errors are not that explicit
and that the plug-in code may not even call GEGL code directly (so it makes it
harder to guess).
This commit is contained in:
Jehan 2023-10-05 22:36:40 +02:00
parent 192c043d7b
commit bdcd9cd38a
2 changed files with 3 additions and 1 deletions

View file

@ -176,6 +176,9 @@ gimp_ui_init (const gchar *prog_name)
g_idle_add (gimp_osx_focus_window, NULL); g_idle_add (gimp_osx_focus_window, NULL);
#endif #endif
/* Some widgets use GEGL buffers for thumbnails, previews, etc. */
gegl_init (NULL, NULL);
gimp_ui_initialized = TRUE; gimp_ui_initialized = TRUE;
} }

View file

@ -196,7 +196,6 @@ script_fu_interface (SFScript *script,
if (!gtk_initted) if (!gtk_initted)
{ {
gimp_ui_init ("script-fu"); gimp_ui_init ("script-fu");
gegl_init (NULL, NULL);
gtk_initted = TRUE; gtk_initted = TRUE;
} }