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.
! See http://factorcode.org/license.txt for BSD license.
USING: accessors alien.c-types alien.data alien.libraries alien.syntax
arrays assocs combinators gdk.pixbuf.ffi glib.ffi gobject.ffi grouping
images images.loader init io kernel locals math sequences
USING: accessors alien.c-types alien.data alien.syntax arrays
assocs combinators gdk.pixbuf.ffi glib.ffi gobject.ffi grouping
images images.loader io kernel locals math sequences
specialized-arrays system unicode ;
IN: images.loader.gtk
SPECIALIZED-ARRAY: uchar
SINGLETON: gtk-image
[
os linux? "g_type_init" "gobject" dlsym? and [
! Explicit type initialization needed for glib < 2.36.
g_type_init
{ "png" "tif" "tiff" "gif" "jpg" "jpeg" "bmp" "ico" }
[ gtk-image register-image-class ] each
] when
] "images.loader.gtk" add-startup-hook
os linux? [
{ "png" "tif" "tiff" "gif" "jpg" "jpeg" "bmp" "ico" }
[ gtk-image register-image-class ] each
] when
<PRIVATE