* BUG: Remove deprecated call to gb_type_init()

[GB.IMAGE.IO]
* BUG: Remove deprecated call to gb_type_init()

This call is deprecated since glib 2.36


git-svn-id: svn://localhost/gambas/trunk@5656 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Laurent Carlier 2013-05-14 16:58:20 +00:00
parent 4abb054abb
commit 9f97b3eace
2 changed files with 4 additions and 1 deletions

View file

@ -236,7 +236,9 @@ extern "C"
CLASS_Image = GB.FindClass("Image");
CLASS_SvgImage = GB.FindClass("SvgImage");
#if !defined(GLIB_VERSION_2_36)
g_type_init();
#endif /* !defined(GLIB_VERSION_2_36) */
return -1;
}

View file

@ -39,9 +39,10 @@ int EXPORT GB_INIT(void)
{
GB.GetInterface("gb.image", IMAGE_INTERFACE_VERSION, &IMAGE);
#if !defined(GLIB_VERSION_2_36)
// Bug in the gdk-pixbuf documentation: the following is mandatory.
g_type_init();
#endif /* !defined(GLIB_VERSION_2_36) */
return 0;
}