[GB.GTK]
* 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:
parent
4abb054abb
commit
9f97b3eace
2 changed files with 4 additions and 1 deletions
|
@ -236,7 +236,9 @@ extern "C"
|
||||||
CLASS_Image = GB.FindClass("Image");
|
CLASS_Image = GB.FindClass("Image");
|
||||||
CLASS_SvgImage = GB.FindClass("SvgImage");
|
CLASS_SvgImage = GB.FindClass("SvgImage");
|
||||||
|
|
||||||
|
#if !defined(GLIB_VERSION_2_36)
|
||||||
g_type_init();
|
g_type_init();
|
||||||
|
#endif /* !defined(GLIB_VERSION_2_36) */
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,9 +39,10 @@ int EXPORT GB_INIT(void)
|
||||||
{
|
{
|
||||||
GB.GetInterface("gb.image", IMAGE_INTERFACE_VERSION, &IMAGE);
|
GB.GetInterface("gb.image", IMAGE_INTERFACE_VERSION, &IMAGE);
|
||||||
|
|
||||||
|
#if !defined(GLIB_VERSION_2_36)
|
||||||
// Bug in the gdk-pixbuf documentation: the following is mandatory.
|
// Bug in the gdk-pixbuf documentation: the following is mandatory.
|
||||||
g_type_init();
|
g_type_init();
|
||||||
|
#endif /* !defined(GLIB_VERSION_2_36) */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue