images.loader.gtk: remove call to deprecated g_type_init.

char-rename
John Benediktsson 2016-11-30 09:21:42 -08:00
parent cde510d69c
commit 6b1bb67ba6
1 changed files with 7 additions and 11 deletions

View File

@ -1,22 +1,18 @@
! Copyright (C) 2010 Philipp Brüschweiler. ! Copyright (C) 2010 Philipp Brüschweiler.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors alien.c-types alien.data alien.libraries alien.syntax USING: accessors alien.c-types alien.data alien.syntax arrays
arrays assocs combinators gdk.pixbuf.ffi glib.ffi gobject.ffi grouping assocs combinators gdk.pixbuf.ffi glib.ffi gobject.ffi grouping
images images.loader init io kernel locals math sequences images images.loader io kernel locals math sequences
specialized-arrays system unicode ; specialized-arrays system unicode ;
IN: images.loader.gtk IN: images.loader.gtk
SPECIALIZED-ARRAY: uchar SPECIALIZED-ARRAY: uchar
SINGLETON: gtk-image SINGLETON: gtk-image
[ os linux? [
os linux? "g_type_init" "gobject" dlsym? and [ { "png" "tif" "tiff" "gif" "jpg" "jpeg" "bmp" "ico" }
! Explicit type initialization needed for glib < 2.36. [ gtk-image register-image-class ] each
g_type_init ] when
{ "png" "tif" "tiff" "gif" "jpg" "jpeg" "bmp" "ico" }
[ gtk-image register-image-class ] each
] when
] "images.loader.gtk" add-startup-hook
<PRIVATE <PRIVATE